From 6bd673c1d29e3214de41c88d1aae15cc7f9fa432 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 27 Mar 2015 07:22:36 +0100 Subject: filter_kernels: add haasnsoft This is a peculiar filter I stumbled upon while playing around with windows, it removes aliasing almost completely while not ringing at all. The downside is that it's quite blurry, but at high resolutions it's not so noticeable. --- video/out/filter_kernels.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index 48c9b3017a..d7163893ed 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -358,6 +358,10 @@ const struct filter_kernel mp_filter_kernels[] = { // disappear completely. Blur determined by trial and error. {{"ewa_lanczossoft", 3.2383154841662362, jinc, .blur = 1.015}, .polar = true, .window = "jinc"}, + // Very soft (blurred) hanning-windowed jinc; removes almost all aliasing. + // Blur paramater picked to match orthogonal and diagonal contributions + {{"haasnsoft", 3.2383154841662362, jinc, .blur = 1.11}, .polar = true, + .window = "hanning"}, // Cubic filters {{"bicubic", 2, bicubic}}, {{"bcspline", 2, cubic_bc, .params = {0.5, 0.5} }}, -- cgit v1.2.3