summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-09-17 05:23:51 +0530
committerNiklas Haas <github-daiK1o@haasn.dev>2023-09-18 17:44:18 +0200
commit816de3f0647edc325b2b2075e5dcf46e58f205a1 (patch)
treea52c6f5eea02e7332debf65285cf3e656cd22280
parentfaf5a4bc8d620d879dc4313d14f3a41fb2c9c9b9 (diff)
downloadmpv-816de3f0647edc325b2b2075e5dcf46e58f205a1.tar.bz2
mpv-816de3f0647edc325b2b2075e5dcf46e58f205a1.tar.xz
filter_kernels: fix bcspline params
bcspline is defined as B=1, C=0 in ImageMagick (as CubicFilter) and libplacebo, so we should match that.
-rw-r--r--video/out/filter_kernels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c
index 9b6cd337ce..d285935431 100644
--- a/video/out/filter_kernels.c
+++ b/video/out/filter_kernels.c
@@ -398,7 +398,7 @@ const struct filter_kernel mp_filter_kernels[] = {
.polar = true, .window = "hanning"},
// Cubic filters
{{"bicubic", 2, bicubic}},
- {{"bcspline", 2, cubic_bc, .params = {0.5, 0.5} }},
+ {{"bcspline", 2, cubic_bc, .params = {1.0, 0.0} }},
{{"hermite", 1, cubic_bc, .params = {0.0, 0.0} }},
{{"catmull_rom", 2, cubic_bc, .params = {0.0, 0.5} }},
{{"mitchell", 2, cubic_bc, .params = {1.0/3.0, 1.0/3.0} }},