1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

filter_kernels: use true jinc radius

For all filters. For consistency between vo_gpu and vo_gpu_next. Also
makes ewa_lanczossharp less special.
This commit is contained in:
Niklas Haas 2023-09-16 13:12:38 +02:00 committed by Niklas Haas
parent aef62063f7
commit 2ec79f8bb7
2 changed files with 6 additions and 7 deletions

View File

@ -5275,9 +5275,8 @@ them.
(This filter is an alias for ``jinc``-windowed ``jinc``)
``ewa_lanczossharp``
A slightly sharpened version of ewa_lanczos, preconfigured to use an
ideal radius and parameter. If your hardware can run it, this is
probably what you should use by default.
A slightly sharpened version of ewa_lanczos. If your hardware can run
it, this is probably what you should use by default.
``mitchell``
Mitchell-Netravali. The ``B`` and ``C`` parameters can be set with

View File

@ -374,10 +374,10 @@ const struct filter_kernel mp_filter_kernels[] = {
{{"lanczos", 3, sinc, .resizable = true}, .window = "sinc"},
{{"ginseng", 3, sinc, .resizable = true}, .window = "jinc"},
// Jinc filters
{{"jinc", 3, jinc, .resizable = true}, .polar = true},
{{"ewa_lanczos", 3, jinc, .resizable = true}, .polar = true, .window = "jinc"},
{{"ewa_hanning", 3, jinc, .resizable = true}, .polar = true, .window = "hanning" },
{{"ewa_ginseng", 3, jinc, .resizable = true}, .polar = true, .window = "sinc"},
{{"jinc", JINC_R3, jinc, .resizable = true}, .polar = true},
{{"ewa_lanczos", JINC_R3, jinc, .resizable = true}, .polar = true, .window = "jinc"},
{{"ewa_hanning", JINC_R3, jinc, .resizable = true}, .polar = true, .window = "hanning" },
{{"ewa_ginseng", JINC_R3, jinc, .resizable = true}, .polar = true, .window = "sinc"},
// Radius is based on the true jinc radius, slightly sharpened as per
// calculations by Nicolas Robidoux. Source: Imagemagick's magick/resize.c
{{"ewa_lanczossharp", JINC_R3, jinc, .blur = 0.9812505644269356, .resizable = true},