summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-09-15 12:27:48 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2023-09-16 14:33:45 +0200
commita24aa6b8f7a30c5ac767c1a44b4c973372a79be5 (patch)
treec3edbce2a88b61489bef69893a66916239cadbb2 /video
parent93ff7554acbf40d309b9464f6fa86d3e758527b0 (diff)
downloadmpv-a24aa6b8f7a30c5ac767c1a44b4c973372a79be5.tar.bz2
mpv-a24aa6b8f7a30c5ac767c1a44b4c973372a79be5.tar.xz
filter_kernels: add ewa_lanczos4sharpest
Mainly for vo_gpu_next.
Diffstat (limited to 'video')
-rw-r--r--video/out/filter_kernels.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c
index 78413bc35e..edd2afe6cd 100644
--- a/video/out/filter_kernels.c
+++ b/video/out/filter_kernels.c
@@ -363,6 +363,7 @@ const struct filter_window mp_filter_windows[] = {
};
#define JINC_R3 3.2383154841662362
+#define JINC_R4 4.2410628637960699
const struct filter_kernel mp_filter_kernels[] = {
// Spline filters
@@ -382,6 +383,11 @@ const struct filter_kernel mp_filter_kernels[] = {
// preserve horizontal/vertical lines)
{{"ewa_lanczossharp", JINC_R3, jinc, .blur = 0.9812505837223707, .resizable = true},
.polar = true, .window = "jinc"},
+ // Similar to the above, but sharpened substantially to the point of
+ // minimizing the total impulse response error on an integer grid. Tends
+ // to preserve hash patterns well. Very sharp but rings a lot.
+ {{"ewa_lanczos4sharpest", JINC_R4, jinc, .blur = 0.8845120932605005, .resizable = true},
+ .polar = true, .window = "jinc"},
// Similar to the above, but softened instead, to make even/odd integer
// contributions exactly symmetrical. Designed to smooth out hash patterns.
{{"ewa_lanczossoft", JINC_R3, jinc, .blur = 1.0164667662867047, .resizable = true},