mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
vo_opengl: make jinc presets resizable
No real reason this is disabled with the new configuration API.
This commit is contained in:
parent
34caa8b01c
commit
8876572e2c
@ -323,9 +323,6 @@ Available video output drivers are:
|
||||
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
|
||||
|
@ -352,16 +352,16 @@ const struct filter_kernel mp_filter_kernels[] = {
|
||||
{{"ewa_ginseng", 3, 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", 3.2383154841662362, jinc, .blur = 0.9812505644269356},
|
||||
.polar = true, .window = "jinc"},
|
||||
{{"ewa_lanczossharp", 3.2383154841662362, jinc, .blur = 0.9812505644269356,
|
||||
.resizable = true}, .polar = true, .window = "jinc"},
|
||||
// Similar to the above, but softened instead. This one makes hash patterns
|
||||
// disappear completely. Blur determined by trial and error.
|
||||
{{"ewa_lanczossoft", 3.2383154841662362, jinc, .blur = 1.015},
|
||||
.polar = true, .window = "jinc"},
|
||||
{{"ewa_lanczossoft", 3.2383154841662362, jinc, .blur = 1.015,
|
||||
.resizable = true}, .polar = true, .window = "jinc"},
|
||||
// Very soft (blurred) hanning-windowed jinc; removes almost all aliasing.
|
||||
// Blur paramater picked to match orthogonal and diagonal contributions
|
||||
{{"haasnsoft", 3.2383154841662362, jinc, .blur = 1.11}, .polar = true,
|
||||
.window = "hanning"},
|
||||
{{"haasnsoft", 3.2383154841662362, jinc, .blur = 1.11, .resizable = true},
|
||||
.polar = true, .window = "hanning"},
|
||||
// Cubic filters
|
||||
{{"bicubic", 2, bicubic}},
|
||||
{{"bcspline", 2, cubic_bc, .params = {0.5, 0.5} }},
|
||||
|
Loading…
Reference in New Issue
Block a user