mirror of
https://github.com/mpv-player/mpv
synced 2024-11-11 00:15:33 +01:00
filter_kernels: rename ginseng to ewa_ginseng
This is done mainly for consistency, since all of the EWA filters share similar properties and it's important to distinguish them for documentation purposes.
This commit is contained in:
parent
c2c96f9b10
commit
99dfd3368d
@ -337,7 +337,7 @@ Available video output drivers are:
|
||||
Set radius for filters listed below, must be a float number between 1.0
|
||||
and 16.0. Defaults to be 3.0 if not specified.
|
||||
|
||||
``sinc``, ``lanczos``, ``ewa_lanczos``, ``ginseng``, ``blackman``, ``gaussian``
|
||||
``sinc``, ``lanczos``, ``ewa_lanczos``, ``ewa_ginseng``, ``blackman``, ``gaussian``
|
||||
|
||||
Note that depending on filter implementation details and video scaling
|
||||
ratio, the radius that actually being used might be different
|
||||
|
@ -294,7 +294,7 @@ static double lanczos(kernel *k, double x)
|
||||
return radius * sin(pix) * sin(pix / radius) / (pix * pix);
|
||||
}
|
||||
|
||||
static double ginseng(kernel *k, double x)
|
||||
static double ewa_ginseng(kernel *k, double x)
|
||||
{
|
||||
double radius = k->radius;
|
||||
if (fabs(x) >= radius)
|
||||
@ -352,7 +352,7 @@ const struct filter_kernel mp_filter_kernels[] = {
|
||||
{"sinc", -1, sinc},
|
||||
{"ewa_lanczos", -1, ewa_lanczos, .polar = true},
|
||||
{"ewa_hanning", -1, ewa_hanning, .polar = true},
|
||||
{"ginseng", -1, ginseng, .polar = true},
|
||||
{"ewa_ginseng", -1, ewa_ginseng, .polar = true},
|
||||
{"lanczos", -1, lanczos},
|
||||
{"blackman", -1, blackman},
|
||||
{0}
|
||||
|
Loading…
Reference in New Issue
Block a user