[vlc-commits] opengl: cvpx: use GL_RGB_422_APPLE for UYVY

Thomas Guillem git at videolan.org
Thu Feb 16 14:34:09 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 16 11:30:40 2017 +0100| [d284a2edefe14278568343cb639b606d6afc7fee] | committer: Thomas Guillem

opengl: cvpx: use GL_RGB_422_APPLE for UYVY

GL_YCBCR_422_APPLE is deprecated (and not supported by ios) and force a BT.601
color conversion.
With GL_RGB_422_APPLE, we can use our own yuv color conversion.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d284a2edefe14278568343cb639b606d6afc7fee
---

 modules/video_output/opengl/converter_cvpx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/opengl/converter_cvpx.c b/modules/video_output/opengl/converter_cvpx.c
index 75f2124..31ed3fe 100644
--- a/modules/video_output/opengl/converter_cvpx.c
+++ b/modules/video_output/opengl/converter_cvpx.c
@@ -175,10 +175,10 @@ opengl_tex_converter_cvpx_init(const video_format_t *fmt,
     {
         case VLC_CODEC_CVPX_UYVY:
             fragment_shader =
-                opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_RGB32,
-                                            COLOR_SPACE_UNDEF);
+                opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_UYVY,
+                                            fmt->space);
             tc->texs[0].internal = GL_RGB;
-            tc->texs[0].format = GL_YCBCR_422_APPLE;
+            tc->texs[0].format = GL_RGB_422_APPLE;
             tc->texs[0].type = GL_UNSIGNED_SHORT_8_8_APPLE;
             break;
         case VLC_CODEC_CVPX_NV12:



More information about the vlc-commits mailing list