- Moderator
- #21
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,
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";
}