summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-11 00:16:34 +0100
committerwm4 <wm4@nowhere>2013-04-21 04:39:58 +0200
commit79797181598facbdb055e16fc7c13abbb1aa7db9 (patch)
tree037e17871dcf2dacb651f9dfead4bcc79b74e5f2 /video/filter/vf.c
parent778e9c06336e77909a2e2bc87aec85dc8cb08811 (diff)
downloadmpv-79797181598facbdb055e16fc7c13abbb1aa7db9.tar.bz2
mpv-79797181598facbdb055e16fc7c13abbb1aa7db9.tar.xz
vf_lavfi: add libavfilter bridge
Requires recent FFmpeg/Libav git versions. Earlier versions will not be supported, as the API is different. (A libavfilter version that uses AVFrame instead of AVFilterBuffer is needed.) Note that this is sort of useless, because the option parser prevents you from making use of the full libavfilter graph syntax. This has to be fixed later. Most of the filter creation code (half of the config() function) has been taken from avplay.c. This code is not based on MPlayer's vf_lavfi. The MPlayer code doesn't compile as it hasn't been updated through multiple libavfilter API changes, making it completely useless as a starting point.
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 aa1de0848b..257d65e58b 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -69,6 +69,7 @@ extern const vf_info_t vf_info_sub;
extern const vf_info_t vf_info_yadif;
extern const vf_info_t vf_info_stereo3d;
extern const vf_info_t vf_info_dlopen;
+extern const vf_info_t vf_info_lavfi;
// list of available filters:
static const vf_info_t *const filter_list[] = {
@@ -85,6 +86,9 @@ static const vf_info_t *const filter_list[] = {
#ifdef CONFIG_LIBPOSTPROC
&vf_info_pp,
#endif
+#ifdef CONFIG_VF_LAVFI
+ &vf_info_lavfi,
+#endif
&vf_info_screenshot,