diff options
author | Niklas Haas <git@haasn.dev> | 2022-01-04 01:50:00 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-01-07 06:28:14 +0100 |
commit | d09c73c7b2b0135cb24ab2173b3c4ee1c55840b0 (patch) | |
tree | 02b33ac09f5720cfa328c747d2481a6a82d7d09b /video/out/gpu/video.h | |
parent | f3fccfc395ddb7a504ab2aae48452178fa92d907 (diff) | |
download | mpv-d09c73c7b2b0135cb24ab2173b3c4ee1c55840b0.tar.bz2 mpv-d09c73c7b2b0135cb24ab2173b3c4ee1c55840b0.tar.xz |
vo_gpu: add --tone-mapping-mode
This merges the old desaturation control options into a single
enumeration, with the goal of both simplifying how these options work
and also making this list more extensible (including, notably, new
options only supported by vo_gpu_next).
For the hybrid option, I decided to port the (slightly tweaked) values
from libplacebo's pre-refactor defaults, rather than the old values we
had in mpv, to more visually match the look of the vo_gpu_next hybrid.
Diffstat (limited to 'video/out/gpu/video.h')
-rw-r--r-- | video/out/gpu/video.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h index adeadaba65..0bb180e514 100644 --- a/video/out/gpu/video.h +++ b/video/out/gpu/video.h @@ -100,6 +100,14 @@ enum tone_mapping { TONE_MAPPING_BT_2446A, }; +enum tone_mapping_mode { + TONE_MAP_MODE_AUTO, + TONE_MAP_MODE_RGB, + TONE_MAP_MODE_MAX, + TONE_MAP_MODE_HYBRID, + TONE_MAP_MODE_LUMA, +}; + enum gamut_mode { GAMUT_AUTO, GAMUT_CLIP, @@ -114,12 +122,11 @@ struct gl_tone_map_opts { float max_boost; int inverse; float crosstalk; + int mode; int compute_peak; float decay_rate; float scene_threshold_low; float scene_threshold_high; - float desat; - float desat_exp; int gamut_mode; }; |