[vlc-devel] [PATCH] opengl: interop: add support for RGB24

Alexandre Janniaux ajanni at videolabs.io
Thu Sep 10 12:21:51 CEST 2020


Fix #25077
---
 modules/video_output/opengl/interop.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/video_output/opengl/interop.c b/modules/video_output/opengl/interop.c
index 4c0252e998..96d548519e 100644
--- a/modules/video_output/opengl/interop.c
+++ b/modules/video_output/opengl/interop.c
@@ -314,6 +314,12 @@ interop_rgb_base_init(struct vlc_gl_interop *interop, GLenum tex_target,
 
     switch (chroma)
     {
+        case VLC_CODEC_RGB24:
+            interop->texs[0] = (struct vlc_gl_tex_cfg) {
+                { 1, 1 }, { 1, 1 }, GL_RGB, GL_RGB, GL_UNSIGNED_BYTE
+            };
+            break;
+
         case VLC_CODEC_RGB32:
         case VLC_CODEC_RGBA:
             interop->texs[0] = (struct vlc_gl_tex_cfg) {
-- 
2.28.0



More information about the vlc-devel mailing list