summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-03-27 07:22:36 +0100
committerNiklas Haas <git@nand.wakku.to>2015-04-04 15:36:14 +0200
commit6bd673c1d29e3214de41c88d1aae15cc7f9fa432 (patch)
treee32050e5fb99c6fabd98cea046290cb13a0daaa3 /video
parent1984e3170633e1b258de4b1b6d98782d7bde0cf2 (diff)
downloadmpv-6bd673c1d29e3214de41c88d1aae15cc7f9fa432.tar.bz2
mpv-6bd673c1d29e3214de41c88d1aae15cc7f9fa432.tar.xz
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.
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 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} }},