[vlc-devel] [PATCH 1/3] opengl: add a helper telling if the module uses a custom picture pool
Thomas Guillem
thomas at gllm.fr
Wed Jun 26 09:16:32 CEST 2019
OK with the set.
On Tue, Jun 25, 2019, at 14:59, Steve Lhomme wrote:
> ---
> modules/video_output/opengl/vout_helper.c | 6 ++++++
> modules/video_output/opengl/vout_helper.h | 1 +
> 2 files changed, 7 insertions(+)
>
> diff --git a/modules/video_output/opengl/vout_helper.c
> b/modules/video_output/opengl/vout_helper.c
> index b59343f7b5..f4c9e5dd83 100644
> --- a/modules/video_output/opengl/vout_helper.c
> +++ b/modules/video_output/opengl/vout_helper.c
> @@ -1024,6 +1024,12 @@ void
> vout_display_opengl_Viewport(vout_display_opengl_t *vgl, int x, int y,
> vgl->vt.Viewport(x, y, width, height);
> }
>
> +bool vout_display_opengl_HasPool(const vout_display_opengl_t *vgl)
> +{
> + opengl_tex_converter_t *tc = vgl->prgm->tc;
> + return tc->pf_get_pool != NULL;
> +}
> +
> picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t
> *vgl, unsigned requested_count)
> {
> GL_ASSERT_NOERROR();
> diff --git a/modules/video_output/opengl/vout_helper.h
> b/modules/video_output/opengl/vout_helper.h
> index 332f63c79e..2910f82001 100644
> --- a/modules/video_output/opengl/vout_helper.h
> +++ b/modules/video_output/opengl/vout_helper.h
> @@ -92,6 +92,7 @@ vout_display_opengl_t
> *vout_display_opengl_New(video_format_t *fmt,
> const vlc_viewpoint_t
> *viewpoint,
> vlc_video_context
> *context);
> void vout_display_opengl_Delete(vout_display_opengl_t *vgl);
> +bool vout_display_opengl_HasPool(const vout_display_opengl_t *);
>
> picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t
> *vgl, unsigned);
>
> --
> 2.17.1
>
> _______________________________________________
> 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