diff options
author | wm4 <wm4@nowhere> | 2017-04-02 17:59:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-02 18:00:16 +0200 |
commit | 3a9e661e929c34d25810fa903abbd9961f73ecef (patch) | |
tree | 2d559b17bba2402d430c34f6dd7832ea8068885c /video/filter/vf_yadif.c | |
parent | 6b9d3f4f7bcc51c9b0ec6407b5df33106b028285 (diff) | |
download | mpv-3a9e661e929c34d25810fa903abbd9961f73ecef.tar.bz2 mpv-3a9e661e929c34d25810fa903abbd9961f73ecef.tar.xz |
video: deprecate almost all video filters
The plan is to nuke the custom filter chain completely. It's not clear
what will happen to the still needed builtin filters (mostly hardware
deinterlacing and vf_vapoursynth). Most likely we'll replace them with
different filter chain concept (whose main purpose will be providing
builtin things and bridging to libavfilter).
The undocumented "warn" options are there to disable deprecation
warnings when the player inserts filter automatically.
The same will be done to audio filters, at a later point.
Diffstat (limited to 'video/filter/vf_yadif.c')
-rw-r--r-- | video/filter/vf_yadif.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/filter/vf_yadif.c b/video/filter/vf_yadif.c index d1e1ffbac0..e044dcc6d7 100644 --- a/video/filter/vf_yadif.c +++ b/video/filter/vf_yadif.c @@ -32,12 +32,16 @@ struct vf_priv_s { int mode; int interlaced_only; struct vf_lw_opts *lw_opts; + int warn; }; static int vf_open(vf_instance_t *vf) { struct vf_priv_s *p = vf->priv; + if (p->warn) + MP_WARN(vf, "%s", VF_LW_REPLACE); + #if LIBAVFILTER_VERSION_MICRO >= 100 const char *mode[] = {"send_frame", "send_field", "send_frame_nospatial", "send_field_nospatial"}; @@ -69,6 +73,7 @@ static const m_option_t vf_opts_fields[] = { {"frame-nospatial", 2}, {"field-nospatial", 3})), OPT_FLAG("interlaced-only", interlaced_only, 0), + OPT_FLAG("warn", warn, 0), OPT_SUBSTRUCT("", lw_opts, vf_lw_conf, 0), {0} }; @@ -81,6 +86,7 @@ const vf_info_t vf_info_yadif = { .priv_defaults = &(const struct vf_priv_s){ .mode = 1, .interlaced_only = 1, + .warn = 1, }, .options = vf_opts_fields, }; |