mirror of https://github.com/mpv-player/mpv
csputils: use M_PI
This commit is contained in:
parent
d42d60bc1e
commit
941eff85a6
|
@ -693,7 +693,7 @@ void mp_csp_copy_equalizer_values(struct mp_csp_params *params,
|
|||
{
|
||||
params->brightness = eq->values[MP_CSP_EQ_BRIGHTNESS] / 100.0;
|
||||
params->contrast = (eq->values[MP_CSP_EQ_CONTRAST] + 100) / 100.0;
|
||||
params->hue = eq->values[MP_CSP_EQ_HUE] / 100.0 * 3.1415927;
|
||||
params->hue = eq->values[MP_CSP_EQ_HUE] / 100.0 * M_PI;
|
||||
params->saturation = (eq->values[MP_CSP_EQ_SATURATION] + 100) / 100.0;
|
||||
float gamma = exp(log(8.0) * eq->values[MP_CSP_EQ_GAMMA] / 100.0);
|
||||
params->rgamma = gamma;
|
||||
|
|
Loading…
Reference in New Issue