diff options
author | Niklas Haas <git@haasn.dev> | 2023-09-16 13:12:38 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-09-16 14:33:45 +0200 |
commit | 2ec79f8bb71b013af795a85f018417fbd28e8763 (patch) | |
tree | 6497e5985a4ecb0cc231babc1ac6187a4a0f1cd9 /video | |
parent | aef62063f7017dbe35b6739cd8996afd0d5d357b (diff) | |
download | mpv-2ec79f8bb71b013af795a85f018417fbd28e8763.tar.bz2 mpv-2ec79f8bb71b013af795a85f018417fbd28e8763.tar.xz |
filter_kernels: use true jinc radius
For all filters. For consistency between vo_gpu and vo_gpu_next. Also
makes ewa_lanczossharp less special.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/filter_kernels.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index 8929b6246e..9a9d7ae46c 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -374,10 +374,10 @@ const struct filter_kernel mp_filter_kernels[] = { {{"lanczos", 3, sinc, .resizable = true}, .window = "sinc"}, {{"ginseng", 3, sinc, .resizable = true}, .window = "jinc"}, // Jinc filters - {{"jinc", 3, jinc, .resizable = true}, .polar = true}, - {{"ewa_lanczos", 3, jinc, .resizable = true}, .polar = true, .window = "jinc"}, - {{"ewa_hanning", 3, jinc, .resizable = true}, .polar = true, .window = "hanning" }, - {{"ewa_ginseng", 3, jinc, .resizable = true}, .polar = true, .window = "sinc"}, + {{"jinc", JINC_R3, jinc, .resizable = true}, .polar = true}, + {{"ewa_lanczos", JINC_R3, jinc, .resizable = true}, .polar = true, .window = "jinc"}, + {{"ewa_hanning", JINC_R3, jinc, .resizable = true}, .polar = true, .window = "hanning" }, + {{"ewa_ginseng", JINC_R3, jinc, .resizable = true}, .polar = true, .window = "sinc"}, // Radius is based on the true jinc radius, slightly sharpened as per // calculations by Nicolas Robidoux. Source: Imagemagick's magick/resize.c {{"ewa_lanczossharp", JINC_R3, jinc, .blur = 0.9812505644269356, .resizable = true}, |