[vlc-commits] opengl: converter_cvpx: don't handle color space

Victorien Le Couviour--Tuffet git at videolan.org
Thu Jul 27 19:14:14 CEST 2017


vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Thu Jul 27 12:06:34 2017 +0200| [e818a9b141d588f0582af2555a3c45065ae84992] | committer: Jean-Baptiste Kempf

opengl: converter_cvpx: don't handle color space

VideoToolbox already handles it.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 7864d3f25b..e388551b2e 100644
--- a/modules/video_output/opengl/converter_cvpx.c
+++ b/modules/video_output/opengl/converter_cvpx.c
@@ -196,7 +196,7 @@ opengl_tex_converter_cvpx_init(opengl_tex_converter_t *tc)
         case VLC_CODEC_CVPX_UYVY:
             fragment_shader =
                 opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_UYVY,
-                                            tc->fmt.space);
+                                            COLOR_SPACE_UNDEF);
             tc->texs[0].internal = GL_RGB;
             tc->texs[0].format = GL_RGB_422_APPLE;
             tc->texs[0].type = GL_UNSIGNED_SHORT_8_8_APPLE;
@@ -205,13 +205,13 @@ opengl_tex_converter_cvpx_init(opengl_tex_converter_t *tc)
         {
             fragment_shader =
                 opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_NV12,
-                                            tc->fmt.space);
+                                            COLOR_SPACE_UNDEF);
             break;
         }
         case VLC_CODEC_CVPX_I420:
             fragment_shader =
                 opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_I420,
-                                            tc->fmt.space);
+                                            COLOR_SPACE_UNDEF);
             break;
         case VLC_CODEC_CVPX_BGRA:
             fragment_shader =



More information about the vlc-commits mailing list