[vlc-devel] [PATCH 3/6] vdpau: remove the VDPAU OpenGL pool

Steve Lhomme robux4 at ycbcr.xyz
Mon Dec 23 14:04:22 CET 2019


We can handle VDPAU pictures created by the decoder or filters.

We only request pictures in "VLC_CODEC_VDPAU_OUTPUT" format. This pool of
VDP_RGBA_FORMAT_B8G8R8A8 is likely not used at all.
---
 modules/video_output/opengl/converter_vdpau.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/modules/video_output/opengl/converter_vdpau.c b/modules/video_output/opengl/converter_vdpau.c
index e5b3794e841..837df39568b 100644
--- a/modules/video_output/opengl/converter_vdpau.c
+++ b/modules/video_output/opengl/converter_vdpau.c
@@ -62,17 +62,6 @@ typedef struct {
     vlc_decoder_device *dec_device;
 } converter_sys_t;
 
-static picture_pool_t *
-tc_vdpau_gl_get_pool(opengl_tex_converter_t const *tc,
-                     unsigned int requested_count)
-{
-    converter_sys_t *sys = tc->priv;
-    vlc_decoder_device *dec_device = sys->dec_device;
-    return vlc_vdp_output_pool_create(GetVDPAUOpaqueDevice(dec_device),
-                                      VDP_RGBA_FORMAT_B8G8R8A8,
-                                      &tc->fmt, requested_count);
-}
-
 static int
 tc_vdpau_gl_update(opengl_tex_converter_t const *tc, GLuint textures[],
                    GLsizei const tex_widths[], GLsizei const tex_heights[],
@@ -194,7 +183,6 @@ Open(vlc_object_t *obj)
         return VLC_EGENERIC;
     }
 
-    tc->pf_get_pool = tc_vdpau_gl_get_pool;
     tc->pf_update = tc_vdpau_gl_update;
     tc->priv = sys;
 
-- 
2.17.1



More information about the vlc-devel mailing list