diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-02-15 21:01:50 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-02-24 13:55:29 +0100 |
commit | fb48722234e94539c269d2f0034be8a87ca32ccb (patch) | |
tree | 6b8d47723f4b1b92f9b84c1e427eaf60f57e5132 /video/csputils.h | |
parent | 0d991eba7242f1f7df6d62151305939c57956fe4 (diff) | |
download | mpv-fb48722234e94539c269d2f0034be8a87ca32ccb.tar.bz2 mpv-fb48722234e94539c269d2f0034be8a87ca32ccb.tar.xz |
video: make csp equalizer params float
This allows more precise adjustments.
Fixes #11316
Diffstat (limited to 'video/csputils.h')
-rw-r--r-- | video/csputils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/csputils.h b/video/csputils.h index 323468260f..49b61c4963 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -210,15 +210,15 @@ enum mp_csp_equalizer_param { MP_CSP_EQ_HUE, MP_CSP_EQ_SATURATION, MP_CSP_EQ_GAMMA, - MP_CSP_EQ_OUTPUT_LEVELS, MP_CSP_EQ_COUNT, }; // Default initialization with 0 is enough, except for the capabilities field struct mp_csp_equalizer_opts { - // Value for each property is in the range [-100, 100]. - // 0 is default, meaning neutral or no change. - int values[MP_CSP_EQ_COUNT]; + // Value for each property is in the range [-100.0, 100.0]. + // 0.0 is default, meaning neutral or no change. + float values[MP_CSP_EQ_COUNT]; + int output_levels; }; void mp_csp_copy_equalizer_values(struct mp_csp_params *params, |