From f6f9b1e8db044629937df0d93cc5deb99fd02bce Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 4 May 2021 13:12:58 +0200 Subject: filter_kernels: fix quadric window 3909e4cdfcb9 seems to have replaced this 0.5 constant by 0.75, using its presence in glumpy as justification. 0.75 is clearly a bug in glumpy, as its own source code doesn't even match the comment immediately above it. Every other implementation of this window I could find uses 0.5, including e.g. ImageMagick. --- video/out/filter_kernels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index bfbd4e9465..4ebc033eec 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -199,7 +199,7 @@ static double hamming(params *p, double x) static double quadric(params *p, double x) { - if (x < 0.75) { + if (x < 0.5) { return 0.75 - x * x; } else if (x < 1.5) { double t = x - 1.5; -- cgit v1.2.3