vo_gpu: default to dscale=hermite

This new filter is slightly sharper, and significantly faster, than
mitchell. It also tends to preserve detail better. All in all, there is
no reason not to use it by default, especially from a performance PoV.
(In vo_gpu_next, hermite is implemented efficiently using hardware
accelerated bilinear interpolation)

See-Also: 75b3947b2c
This commit is contained in:
Niklas Haas 2023-09-20 02:09:05 +02:00 committed by Niklas Haas
parent 87baed0b0f
commit c172a650c4
3 changed files with 5 additions and 4 deletions

View File

@ -68,6 +68,7 @@ Interface changes
- change `--tscale` default to `oversample`
- change `--dither-depth` to `auto`
- deprecate `--profile=gpu-hq`, add `--profile=<fast|high-quality>`
- change `--dscale` default to `hermite`
--- mpv 0.36.0 ---
- add `--target-contrast`
- Target luminance value is now also applied when ICC profile is used.

View File

@ -5282,13 +5282,13 @@ them.
``mitchell``
Mitchell-Netravali. The ``B`` and ``C`` parameters can be set with
``--scale-param1`` and ``--scale-param2``. This is the default for
``--dscale``.
``--scale-param1`` and ``--scale-param2``.
``hermite``
Hermite spline. Similar to ``bicubic`` but with ``B`` set to ``0.0``.
This filter has the special property of having a support of radius 1.0,
making it very fast in comparison, but prone to blocking.
making it very fast in comparison, but prone to blocking. This is the
default for ``--dscale``.
``catmull_rom``
Catmull-Rom. A Cubic filter in the same vein as ``mitchell``, where

View File

@ -304,7 +304,7 @@ static const struct gl_video_opts gl_video_opts_def = {
.scaler = {
{{"lanczos", .params={NAN, NAN}}, {.params = {NAN, NAN}},
.cutoff = 0.001}, // scale
{{"mitchell", .params={NAN, NAN}}, {.params = {NAN, NAN}},
{{"hermite", .params={NAN, NAN}}, {.params = {NAN, NAN}},
.cutoff = 0.001}, // dscale
{{NULL, .params={NAN, NAN}}, {.params = {NAN, NAN}},
.cutoff = 0.001}, // cscale