diff options
author | llyyr <llyyr.public@gmail.com> | 2023-09-17 05:30:16 +0530 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-09-18 17:44:18 +0200 |
commit | 1c09ee44c3b0d1001b38ca3dfd030fca644ac5ff (patch) | |
tree | aa8ef54b94150a7641a01cc1f3256a250e48a948 /video | |
parent | 816de3f0647edc325b2b2075e5dcf46e58f205a1 (diff) | |
download | mpv-1c09ee44c3b0d1001b38ca3dfd030fca644ac5ff.tar.bz2 mpv-1c09ee44c3b0d1001b38ca3dfd030fca644ac5ff.tar.xz |
filter_kernels: remove bcspline filter
After fixing the B and C params for bcspline, it ended up being the same
thing as bicubic. There's no reason to have two names for the same
filter, so remove bcspline and keep bicubic to match libplacebo.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/filter_kernels.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c index d285935431..ed17650854 100644 --- a/video/out/filter_kernels.c +++ b/video/out/filter_kernels.c @@ -216,15 +216,6 @@ static double quadric(params *p, double x) return 0.0; } -#define POW3(x) ((x) <= 0 ? 0 : (x) * (x) * (x)) -static double bicubic(params *p, double x) -{ - return (1.0/6.0) * ( POW3(x + 2) - - 4 * POW3(x + 1) - + 6 * POW3(x) - - 4 * POW3(x - 1)); -} - static double bessel_i0(double x) { double s = 1.0; @@ -397,8 +388,7 @@ const struct filter_kernel mp_filter_kernels[] = { {{"haasnsoft", JINC_R3, jinc, .blur = 1.11, .resizable = true}, .polar = true, .window = "hanning"}, // Cubic filters - {{"bicubic", 2, bicubic}}, - {{"bcspline", 2, cubic_bc, .params = {1.0, 0.0} }}, + {{"bicubic", 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} }}, |