[vlc-devel] [PATCH 3/4] opengl: don't shift the range for P016
Steve Lhomme
robux4 at ycbcr.xyz
Tue Sep 10 11:26:19 CEST 2019
Just like P010
---
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 79bba139120..9294ab62838 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);
}
--
2.17.1
More information about the vlc-devel
mailing list