1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-23 11:47:45 +00:00

filter_kernels: add ewa_lanczossharp alias

This is essentially a preconfigured version of ewa_lanczos, with the
"best" parameters for general purpose usage.
This commit is contained in:
Niklas Haas 2015-02-24 00:52:17 +01:00
parent eb70e31cc7
commit d27563cb14
No known key found for this signature in database
GPG Key ID: 3BA77D4BFDB10BCE
2 changed files with 14 additions and 2 deletions

View File

@ -310,12 +310,20 @@ Available video output drivers are:
``ewa_lanczos``
Elliptic weighted average Lanczos scaling. Also known as Jinc.
Relatively slow, but very good quality. The number of taps can
be controlled with ``scale-radius``. Adding extra taps makes the
Relatively slow, but very good quality. The radius can be
controlled with ``scale-radius``. Increasing the radius makes the
filter sharper but adds more ringing.
This filter supports antiringing (see ``scale-antiring``).
``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.
Note: This filter has a fixed radius. Use ``ewa_lanczos`` if you
want to adjust it.
``mitchell``
Mitchell-Netravali. The ``B`` and ``C`` parameters can be set with
``scale-param1`` and ``scale-param2``. This filter is very good at

View File

@ -348,6 +348,10 @@ const struct filter_kernel mp_filter_kernels[] = {
{"ewa_lanczos", -1, ewa_lanczos, .params = {1.0, NAN}, .polar = true},
{"ewa_hanning", -1, ewa_hanning, .params = {1.0, NAN}, .polar = true},
{"ewa_ginseng", -1, ewa_ginseng, .params = {1.0, NAN}, .polar = true},
// Radius is based on the true jinc radius, slightly sharpened as per
// calculations by Nicolas Robidoux. Source: Imagemagick's magick/resize.c
{"ewa_lanczossharp", 3.2383154841662362, ewa_lanczos,
.params = {0.9812505644269356, NAN}, .polar = true},
{"lanczos", -1, lanczos},
{"blackman", -1, blackman},
{0}