[vlc-commits] vdpau: remove the VDPAU OpenGL pool

Steve Lhomme git at videolan.org
Wed Jan 8 11:46:58 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Nov 18 14:57:32 2019 +0100| [43a6eac4c35eacf8a8024061b78fc60dc3cd9a16] | committer: Steve Lhomme

vdpau: remove the VDPAU OpenGL pool

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43a6eac4c35eacf8a8024061b78fc60dc3cd9a16
---

 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 e5b3794e84..837df39568 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;
 



More information about the vlc-commits mailing list