summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-09-17 05:07:43 +0530
committerNiklas Haas <github-daiK1o@haasn.dev>2023-09-18 17:44:18 +0200
commitfaf5a4bc8d620d879dc4313d14f3a41fb2c9c9b9 (patch)
tree54c56975175c58737fee50b1ec2aa9840e48e11f /video
parent5efc04006b6aef151af70c63bf32c5e34a2a3709 (diff)
downloadmpv-faf5a4bc8d620d879dc4313d14f3a41fb2c9c9b9.tar.bz2
mpv-faf5a4bc8d620d879dc4313d14f3a41fb2c9c9b9.tar.xz
filter_kernels: add hermite filter
Matches HermiteFilter from Imagemagick (B=C=0, R=1)
Diffstat (limited to 'video')
-rw-r--r--video/out/filter_kernels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/filter_kernels.c b/video/out/filter_kernels.c
index edd2afe6cd..9b6cd337ce 100644
--- a/video/out/filter_kernels.c
+++ b/video/out/filter_kernels.c
@@ -399,6 +399,7 @@ const struct filter_kernel mp_filter_kernels[] = {
// Cubic filters
{{"bicubic", 2, bicubic}},
{{"bcspline", 2, cubic_bc, .params = {0.5, 0.5} }},
+ {{"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} }},
{{"robidoux", 2, cubic_bc, .params = {12 / (19 + 9 * M_SQRT2),