0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vo_gpu: match libplacebo debanding defaults

The defaults were awful and horribly regressed many files while also not
fixing banding on files that actually needed it, sometimes even
*increasing* banding due to the low threshold.

Fixes: 12ffce0f22
See-Also: haasn/libplacebo@e1e43376d1
This commit is contained in:
Niklas Haas 2023-09-20 18:30:23 +02:00 committed by Niklas Haas
parent e7bd330ed0
commit 2fd5b9b4dd
3 changed files with 5 additions and 4 deletions

View File

@ -71,6 +71,7 @@ Interface changes
- change `--dscale` default to `hermite` - change `--dscale` default to `hermite`
- update defaults to `--hdr-peak-decay-rate=20`, `--hdr-scene-threshold-low=1.0`, - update defaults to `--hdr-peak-decay-rate=20`, `--hdr-scene-threshold-low=1.0`,
`--hdr-scene-threshold-high=3.0` `--hdr-scene-threshold-high=3.0`
- update defaults to `--deband-threshold=48`, `--deband-grain=32`
--- mpv 0.36.0 --- --- mpv 0.36.0 ---
- add `--target-contrast` - add `--target-contrast`
- Target luminance value is now also applied when ICC profile is used. - Target luminance value is now also applied when ICC profile is used.

View File

@ -6070,7 +6070,7 @@ them.
``--deband-threshold=<0..4096>`` ``--deband-threshold=<0..4096>``
The debanding filter's cut-off threshold. Higher numbers increase the The debanding filter's cut-off threshold. Higher numbers increase the
debanding strength dramatically but progressively diminish image details. debanding strength dramatically but progressively diminish image details.
(Default 32) (Default 48)
``--deband-range=<1..64>`` ``--deband-range=<1..64>``
The debanding filter's initial radius. The radius increases linearly for The debanding filter's initial radius. The radius increases linearly for
@ -6083,7 +6083,7 @@ them.
``--deband-grain=<0..4096>`` ``--deband-grain=<0..4096>``
Add some extra noise to the image. This significantly helps cover up Add some extra noise to the image. This significantly helps cover up
remaining quantization artifacts. Higher numbers add more noise. (Default remaining quantization artifacts. Higher numbers add more noise. (Default
48) 32)
``--corner-rounding=<0..1>`` ``--corner-rounding=<0..1>``
If set to a value above 0.0, the output will be rendered with rounded If set to a value above 0.0, the output will be rendered with rounded

View File

@ -942,9 +942,9 @@ static void prng_init(struct gl_shader_cache *sc, AVLFG *lfg)
const struct deband_opts deband_opts_def = { const struct deband_opts deband_opts_def = {
.iterations = 1, .iterations = 1,
.threshold = 32.0, .threshold = 48.0,
.range = 16.0, .range = 16.0,
.grain = 48.0, .grain = 32.0,
}; };
#define OPT_BASE_STRUCT struct deband_opts #define OPT_BASE_STRUCT struct deband_opts