From d27563cb14b9dc20f729470ef5e3d49ca869aebf Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 24 Feb 2015 00:52:17 +0100 Subject: filter_kernels: add ewa_lanczossharp alias This is essentially a preconfigured version of ewa_lanczos, with the "best" parameters for general purpose usage. --- video/out/filter_kernels.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video') diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index e6fa8aa24a..c7c28466b0 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -348,6 +348,10 @@ const struct filter_kernel mp_filter_kernels[] = { {"ewa_lanczos", -1, ewa_lanczos, .params = {1.0, NAN}, .polar = true}, {"ewa_hanning", -1, ewa_hanning, .params = {1.0, NAN}, .polar = true}, {"ewa_ginseng", -1, ewa_ginseng, .params = {1.0, NAN}, .polar = true}, + // Radius is based on the true jinc radius, slightly sharpened as per + // calculations by Nicolas Robidoux. Source: Imagemagick's magick/resize.c + {"ewa_lanczossharp", 3.2383154841662362, ewa_lanczos, + .params = {0.9812505644269356, NAN}, .polar = true}, {"lanczos", -1, lanczos}, {"blackman", -1, blackman}, {0} -- cgit v1.2.3