summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-02-24 00:52:17 +0100
committerNiklas Haas <git@nand.wakku.to>2015-02-24 00:52:17 +0100
commitd27563cb14b9dc20f729470ef5e3d49ca869aebf (patch)
tree496d0c5405df53e3081b0f9bbb9484cbca0bdd55 /video
parenteb70e31cc73093025e091eaebfcc218841d8588c (diff)
downloadmpv-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')
-rw-r--r--video/out/filter_kernels.c4
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}