csputils: use M_PI

This commit is contained in:
wm4 2015-01-06 16:50:33 +01:00
parent d42d60bc1e
commit 941eff85a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;