MediaInfo Logos for blue3wide (2 Viewers)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    What about videos with strange resolutions e.g. 1918x1078...from code that would fall into SD category when it should be HD.

    720p,1080p, 1080i are only set if the exact dimensions are matched.

    I think there should be a check before setting the HD resolutions (720p,1080p/i) for height > 720 e.g,

    Code:
    _videoResolution = "SD";
    if (_height >= 720)
    {
     _videoResolution = "HD";
    }
    if ((_width == 1280 || _height == 720) && !_isInterlaced)
    {
      _videoResolution = "720P";
    }
    if ((_width == 1920 || _height == 1080) && !_isInterlaced)
    {
      _videoResolution = "1080P";
    } 
    if ((_width == 1920 || _height == 1080) && _isInterlaced)
    {
      _videoResolution = "1080I";
    }
     

    Users who are viewing this thread

    Top Bottom