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

Marvin Scholz epirat07 at gmail.com
Thu Sep 10 12:27:51 CEST 2020


Verified it fixes the issue and the issue I had with some 360° images.

On 10 Sep 2020, at 12:21, Alexandre Janniaux wrote:

> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list