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_scale.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_scale.c')
-rw-r--r-- | video/filter/vf_scale.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c index 8b1f0a1116..0759d28723 100644 --- a/video/filter/vf_scale.c +++ b/video/filter/vf_scale.c @@ -39,6 +39,8 @@ #include "options/m_option.h" +#include "vf_lavfi.h" + static struct vf_priv_s { int w, h; int cfg_w, cfg_h; @@ -47,11 +49,13 @@ static struct vf_priv_s { struct mp_sws_context *sws; int noup; int accurate_rnd; + int warn; } const vf_priv_dflt = { 0, 0, -1, -1, 0, {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT}, + .warn = 1, }; static int find_best_out(vf_instance_t *vf, int in_format) @@ -238,6 +242,8 @@ static int vf_open(vf_instance_t *vf) vf->priv->sws->log = vf->log; vf->priv->sws->params[0] = vf->priv->param[0]; vf->priv->sws->params[1] = vf->priv->param[1]; + if (vf->priv->warn) + MP_WARN(vf, "%s", VF_LW_REPLACE); return 1; } @@ -250,6 +256,7 @@ static const m_option_t vf_opts_fields[] = { OPT_INTRANGE("chr-drop", v_chr_drop, 0, 0, 3), OPT_INTRANGE("noup", noup, 0, 0, 2), OPT_FLAG("arnd", accurate_rnd, 0), + OPT_FLAG("warn", warn, 0), {0} }; |