[FFmpeg-devel] [PATCH] avfilter/vf_scale: change the default scaler to bicubic
Stefano Sabatini
stefasab at gmail.com
Tue Oct 1 10:10:03 CEST 2013
On date Monday 2013-09-30 23:51:00 +0200, Michael Niedermayer encoded:
> See: [FFmpeg-devel] [PATCH] swscale/options: switch default to bicubic
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavfilter/vf_scale.c | 2 +-
> tests/ref/fate/filter-alphaextract_alphamerge_rgb | 100 ++++++++++-----------
> tests/ref/fate/filter-lavd-scalenorm | 20 ++---
> tests/ref/fate/filter-overlay | 100 ++++++++++-----------
> tests/ref/fate/filter-overlay_rgb | 100 ++++++++++-----------
> tests/ref/fate/filter-overlay_yuv420 | 100 ++++++++++-----------
> tests/ref/fate/filter-overlay_yuv444 | 100 ++++++++++-----------
> tests/ref/fate/sub2video | 100 ++++++++++-----------
> 8 files changed, 311 insertions(+), 311 deletions(-)
>
> diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
> index 21c9d13..f808fcc 100644
> --- a/libavfilter/vf_scale.c
> +++ b/libavfilter/vf_scale.c
> @@ -140,7 +140,7 @@ static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
> av_log(ctx, AV_LOG_VERBOSE, "w:%s h:%s flags:'%s' interl:%d\n",
> scale->w_expr, scale->h_expr, (char *)av_x_if_null(scale->flags_str, ""), scale->interlaced);
>
> - scale->flags = SWS_BILINEAR;
> + scale->flags = SWS_BICUBIC;
This or you keep the default value (after bicubic is set as the
default in sws).
Possibly also update scale filter docs.
--
FFmpeg = Funny & Free Mere Pacific Educated Gargoyle
More information about the ffmpeg-devel
mailing list