summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-12 17:51:19 +0200
committerwm4 <wm4@nowhere>2014-04-12 19:31:50 +0200
commit33f822b7154b8035984bd41607c0c2b1edd0c9fa (patch)
tree7392f47dd082c1eb51f29c7fac9c5a62ceda6b04 /video/filter/vf.c
parent839c3ae64b184ba9d37621507d74cb6052582d0b (diff)
downloadmpv-33f822b7154b8035984bd41607c0c2b1edd0c9fa.tar.bz2
mpv-33f822b7154b8035984bd41607c0c2b1edd0c9fa.tar.xz
video: add VapourSynth filter bridge
Mainly meant to apply simple VapourSynth filters to video at runtime. This has various restrictions, which are listed in the manpage. Additionally, this actually copies video frames when converting frame references from mpv to VapourSynth, and a second time when going from VapourSynth to mpv. This is inefficient and could probably be easily improved. But for now, this is simpler, and in fact I'm not sure if we even can references VapourSynth frames after the core has been destroyed.
Diffstat (limited to 'video/filter/vf.c')
-rw-r--r--video/filter/vf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index 0ab5a2c651..118587766d 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -69,6 +69,7 @@ extern const vf_info_t vf_info_stereo3d;
extern const vf_info_t vf_info_dlopen;
extern const vf_info_t vf_info_lavfi;
extern const vf_info_t vf_info_vaapi;
+extern const vf_info_t vf_info_vapoursynth;
// list of available filters:
static const vf_info_t *const filter_list[] = {
@@ -109,6 +110,9 @@ static const vf_info_t *const filter_list[] = {
#if HAVE_DLOPEN
&vf_info_dlopen,
#endif
+#if HAVE_VAPOURSYNTH
+ &vf_info_vapoursynth,
+#endif
#if HAVE_VAAPI_VPP
&vf_info_vaapi,
#endif