summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2015-07-08 16:50:38 -0700
committerwm4 <wm4@nowhere>2015-07-11 10:44:34 +0200
commit4b0b9b515bee4a589ed74b4f5de86401f1745e69 (patch)
tree8a6f305325334562cedf4e93c077b2369c238f61 /video/filter/vf.c
parent8e82a64f5665dfeec2b0ae34b52f1870720f049e (diff)
downloadmpv-4b0b9b515bee4a589ed74b4f5de86401f1745e69.tar.bz2
mpv-4b0b9b515bee4a589ed74b4f5de86401f1745e69.tar.xz
vf_vdpaurb: Add a new filter for reading back vdpau decoded frames
Normally, vdpau decoded frames are passed directly to a suitable vo (vo_vdpau or vo_opengl) without ever touching system memory. This is efficient for output purposes, but prevents any of the regular filters from being used with such frames. This new filter implements a read-back step to pull the frames back into system memory where they can be acted on by other filters. Eventually the frames will be sent to the vo as if they were normal software-decoded frames. Note that a vdpau compatible vo must still be used to ensure that the decoder is properly initialised. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/filter/vf.c')
-rw-r--r--video/filter/vf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index 6b963e3117..4139492c52 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -63,6 +63,7 @@ extern const vf_info_t vf_info_vaapi;
extern const vf_info_t vf_info_vapoursynth;
extern const vf_info_t vf_info_vapoursynth_lazy;
extern const vf_info_t vf_info_vdpaupp;
+extern const vf_info_t vf_info_vdpaurb;
extern const vf_info_t vf_info_buffer;
// list of available filters:
@@ -106,6 +107,7 @@ static const vf_info_t *const filter_list[] = {
#endif
#if HAVE_VDPAU
&vf_info_vdpaupp,
+ &vf_info_vdpaurb,
#endif
NULL
};