mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 14:18:34 +00:00
videobalance: Check for HAVE_RINT instead
Also change M_PI to G_PI for giggles.
This commit is contained in:
parent
954a04e2b5
commit
cdaf72b614
1 changed files with 3 additions and 7 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue