diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-02-24 00:52:17 +0100 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2015-02-24 00:52:17 +0100 |
commit | d27563cb14b9dc20f729470ef5e3d49ca869aebf (patch) | |
tree | 496d0c5405df53e3081b0f9bbb9484cbca0bdd55 /video/out/filter_kernels.c | |
parent | eb70e31cc73093025e091eaebfcc218841d8588c (diff) | |
download | mpv-d27563cb14b9dc20f729470ef5e3d49ca869aebf.tar.bz2 mpv-d27563cb14b9dc20f729470ef5e3d49ca869aebf.tar.xz |
filter_kernels: add ewa_lanczossharp alias
This is essentially a preconfigured version of ewa_lanczos, with the
"best" parameters for general purpose usage.
Diffstat (limited to 'video/out/filter_kernels.c')
-rw-r--r-- | video/out/filter_kernels.c | 4 |
1 files changed, 4 insertions, 0 deletions
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} |