mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
opengl: don't shift the range for P016
Just like P010
This commit is contained in:
parent
513c814194
commit
71d333b483
@ -128,7 +128,7 @@ tc_yuv_base_init(opengl_tex_converter_t *tc, GLenum tex_target,
|
|||||||
return VLC_EGENERIC;
|
return VLC_EGENERIC;
|
||||||
|
|
||||||
/* Do a bit shift if samples are stored on LSB */
|
/* Do a bit shift if samples are stored on LSB */
|
||||||
if (chroma != VLC_CODEC_P010)
|
if (chroma != VLC_CODEC_P010 && chroma != VLC_CODEC_P016)
|
||||||
yuv_range_correction = (float)((1 << 16) - 1)
|
yuv_range_correction = (float)((1 << 16) - 1)
|
||||||
/ ((1 << desc->pixel_bits) - 1);
|
/ ((1 << desc->pixel_bits) - 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user