0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

filter_kernels: add hermite filter

Matches HermiteFilter from Imagemagick (B=C=0, R=1)
This commit is contained in:
llyyr 2023-09-17 05:07:43 +05:30 committed by Niklas Haas
parent 5efc04006b
commit faf5a4bc8d

View File

@ -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),