[vlc-devel] [PATCH] decoder: adjust the unknown colorimetry values because getting a vout

Vittorio Giovara vittorio.giovara at gmail.com
Sat Apr 16 16:11:46 CEST 2016


On Sat, Apr 16, 2016 at 10:08 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2016-04-16 16:00, Steve Lhomme a écrit :
>>
>> +        if ( fmt.space == COLOR_SPACE_UNDEF )
>> +        {
>> +            if ( ( fmt.i_bits_per_pixel == 0 || fmt.i_bits_per_pixel
>> >= 10) &&
>> +                 ( fmt.i_visible_height >= UHD_MIN_HEIGHT ||
>> fmt.i_visible_width >= UHD_MIN_WIDTH ) )
>> +                fmt.space = COLOR_SPACE_BT2020_LIMITED;
>> +            else if ( fmt.i_visible_height > HD_MIN_HEIGHT )
>> +                fmt.space = COLOR_SPACE_BT709_LIMITED;
>> +            else
>> +                fmt.space = COLOR_SPACE_BT601_LIMITED;
>> +            msg_Info( p_dec, "Forcing color range to %d", fmt.space  );
>> +        }
>> +
>
>
> Maybe the color space should default to undefined for RGB pixel formats?

imho this is a safe default
-- 
Vittorio


More information about the vlc-devel mailing list