vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Sep 10 10:27:13 2019 +0200| [71d333b483a4c7bca72d81b7f4d0a1403fb4f8c5] | committer: Steve Lhomme
opengl: don't shift the range for P016 Just like P010 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71d333b483a4c7bca72d81b7f4d0a1403fb4f8c5 --- modules/video_output/opengl/fragment_shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c index 79bba13912..9294ab6283 100644 --- a/modules/video_output/opengl/fragment_shaders.c +++ b/modules/video_output/opengl/fragment_shaders.c @@ -128,7 +128,7 @@ tc_yuv_base_init(opengl_tex_converter_t *tc, GLenum tex_target, return VLC_EGENERIC; /* 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) / ((1 << desc->pixel_bits) - 1); } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits