1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00

Use M_PI for pi.

Suggested by Reimar.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28764 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2009-02-28 15:45:24 +00:00
parent f099431791
commit 40fb81669a

View File

@ -49,6 +49,7 @@
#include "gui/interface.h" #include "gui/interface.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "libass/ass.h" #include "libass/ass.h"
#include "libass/ass_mp.h" #include "libass/ass_mp.h"
@ -1041,7 +1042,7 @@ static int get_equalizer(char *name, int *value) {
else if (!strcasecmp(name, "saturation")) else if (!strcasecmp(name, "saturation"))
*value = (procamp.saturation-1.0) * 100; *value = (procamp.saturation-1.0) * 100;
else if (!strcasecmp(name, "hue")) else if (!strcasecmp(name, "hue"))
*value = procamp.hue * 100 / 3.141592; *value = procamp.hue * 100 / M_PI;
else else
return VO_NOTIMPL; return VO_NOTIMPL;
return VO_TRUE; return VO_TRUE;
@ -1060,7 +1061,7 @@ static int set_equalizer(char *name, int value) {
else if (!strcasecmp(name, "saturation")) else if (!strcasecmp(name, "saturation"))
procamp.saturation = value / 100.0 + 1.0; procamp.saturation = value / 100.0 + 1.0;
else if (!strcasecmp(name, "hue")) else if (!strcasecmp(name, "hue"))
procamp.hue = value / 100.0 * 3.141592; procamp.hue = value / 100.0 * M_PI;
else else
return VO_NOTIMPL; return VO_NOTIMPL;