[vlc-commits] [Git][videolan/vlc][master] 2 commits: opengl: initialize the subpicture format to VLC_CODEC_RGBA
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Aug 25 04:48:12 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
b392f532 by Steve Lhomme at 2023-08-25T04:32:46+00:00
opengl: initialize the subpicture format to VLC_CODEC_RGBA
Since the subpicture_chromas is set to gl_subpicture_chromas which only
supports VLC_CODEC_RGBA, it's more logical to use that.
- - - - -
430ff233 by Steve Lhomme at 2023-08-25T04:32:46+00:00
opengl/subrender: remove write-only video format
- - - - -
2 changed files:
- modules/video_output/opengl/interop.c
- modules/video_output/opengl/sub_renderer.c
Changes:
=====================================
modules/video_output/opengl/interop.c
=====================================
@@ -215,7 +215,7 @@ vlc_gl_interop_NewForSubpictures(struct vlc_gl_t *gl)
interop->ops = NULL;
interop->gl = gl;
- video_format_Init(&interop->fmt_in, VLC_CODEC_RGB32);
+ video_format_Init(&interop->fmt_in, VLC_CODEC_RGBA);
interop->fmt_out = interop->fmt_in;
#define LOAD_SYMBOL(type, name) \
=====================================
modules/video_output/opengl/sub_renderer.c
=====================================
@@ -121,9 +121,6 @@ vlc_gl_sub_renderer_New(vlc_gl_t *gl, const struct vlc_gl_api *api,
if (!sr)
return NULL;
- video_format_t fmt;
- video_format_Init(&fmt, VLC_CODEC_RGB32);
-
/* Allocates our textures */
assert(!interop->handle_texs_gen);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0eedb80ae6bc6887c133efebcc85d4cb79ba11b8...430ff233c4c05cc481cfc76720840adf8245f91c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0eedb80ae6bc6887c133efebcc85d4cb79ba11b8...430ff233c4c05cc481cfc76720840adf8245f91c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list