[vlc-commits] opengl: interop: add support for RGB24
Alexandre Janniaux
git at videolan.org
Mon Sep 14 23:05:46 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Sep 10 12:21:51 2020 +0200| [82b6190e68c4de79a0c14a3b29233994dc146e31] | committer: Alexandre Janniaux
opengl: interop: add support for RGB24
Fix #25077
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82b6190e68c4de79a0c14a3b29233994dc146e31
---
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) {
More information about the vlc-commits
mailing list