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

Rémi Denis-Courmont remi at remlab.net
Sat Apr 16 16:08:36 CEST 2016


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?

>          vlc_mutex_lock( &p_owner->lock );
>
>          p_vout = p_owner->p_vout;

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list