diff options
author | Niklas Haas <git@haasn.dev> | 2021-05-04 13:12:58 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-05-04 13:18:43 +0200 |
commit | f6f9b1e8db044629937df0d93cc5deb99fd02bce (patch) | |
tree | 5dc0bb0dffb1d9fc8849bf9b27ff0c89dc118779 /video/out | |
parent | b6aedaa7262781bdc763cf2886d27c37659f7729 (diff) | |
download | mpv-f6f9b1e8db044629937df0d93cc5deb99fd02bce.tar.bz2 mpv-f6f9b1e8db044629937df0d93cc5deb99fd02bce.tar.xz |
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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/filter_kernels.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |