mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
video: make csp option definitions private
This commit is contained in:
parent
fb48722234
commit
16f0cd546d
@ -875,6 +875,23 @@ bool mp_colorspace_equal(struct mp_colorspace c1, struct mp_colorspace c2)
|
||||
c1.sig_peak == c2.sig_peak;
|
||||
}
|
||||
|
||||
enum mp_csp_equalizer_param {
|
||||
MP_CSP_EQ_BRIGHTNESS,
|
||||
MP_CSP_EQ_CONTRAST,
|
||||
MP_CSP_EQ_HUE,
|
||||
MP_CSP_EQ_SATURATION,
|
||||
MP_CSP_EQ_GAMMA,
|
||||
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.0, 100.0].
|
||||
// 0.0 is default, meaning neutral or no change.
|
||||
float values[MP_CSP_EQ_COUNT];
|
||||
int output_levels;
|
||||
};
|
||||
|
||||
#define OPT_BASE_STRUCT struct mp_csp_equalizer_opts
|
||||
|
||||
const struct m_sub_options mp_csp_equalizer_conf = {
|
||||
@ -897,8 +914,8 @@ const struct m_sub_options mp_csp_equalizer_conf = {
|
||||
};
|
||||
|
||||
// Copy settings from eq into params.
|
||||
void mp_csp_copy_equalizer_values(struct mp_csp_params *params,
|
||||
const struct mp_csp_equalizer_opts *eq)
|
||||
static void mp_csp_copy_equalizer_values(struct mp_csp_params *params,
|
||||
const struct mp_csp_equalizer_opts *eq)
|
||||
{
|
||||
params->brightness = eq->values[MP_CSP_EQ_BRIGHTNESS] / 100.0;
|
||||
params->contrast = (eq->values[MP_CSP_EQ_CONTRAST] + 100) / 100.0;
|
||||
|
@ -204,26 +204,6 @@ extern const struct m_opt_choice_alternatives mp_alpha_names[];
|
||||
|
||||
extern const struct m_sub_options mp_csp_equalizer_conf;
|
||||
|
||||
enum mp_csp_equalizer_param {
|
||||
MP_CSP_EQ_BRIGHTNESS,
|
||||
MP_CSP_EQ_CONTRAST,
|
||||
MP_CSP_EQ_HUE,
|
||||
MP_CSP_EQ_SATURATION,
|
||||
MP_CSP_EQ_GAMMA,
|
||||
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.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,
|
||||
const struct mp_csp_equalizer_opts *eq);
|
||||
|
||||
struct mpv_global;
|
||||
struct mp_csp_equalizer_state *mp_csp_equalizer_create(void *ta_parent,
|
||||
struct mpv_global *global);
|
||||
|
Loading…
Reference in New Issue
Block a user