diff options
author | David Schleef <ds@schleef.org> | 2010-12-30 14:30:27 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-12-30 14:34:43 -0800 |
commit | cdaf72b614f93f355ea4615dd0313d4a848b4f6a (patch) | |
tree | 451ea9318511eeb19dd1800665b5339862df8803 | |
parent | 954a04e2b57d98c4fd5dd004470abfa603a077ef (diff) |
videobalance: Check for HAVE_RINT instead
Also change M_PI to G_PI for giggles.
-rw-r--r-- | gst/videofilter/gstvideobalance.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c index 379330bf3..136acaea3 100644 --- a/gst/videofilter/gstvideobalance.c +++ b/gst/videofilter/gstvideobalance.c @@ -51,11 +51,7 @@ #include <gst/controller/gstcontroller.h> #include <gst/interfaces/colorbalance.h> -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif - -#ifdef G_OS_WIN32 +#ifndef HAVE_RINT #define rint(x) (floor((x)+0.5)) #endif @@ -170,8 +166,8 @@ gst_video_balance_update_tables (GstVideoBalance * vb) vb->tabley[i] = rint (y); } - hue_cos = cos (M_PI * vb->hue); - hue_sin = sin (M_PI * vb->hue); + hue_cos = cos (G_PI * vb->hue); + hue_sin = sin (G_PI * vb->hue); /* U/V lookup tables are 2D, since we need both U/V for each table * separately. */ |