videoscale: use math-compat.h here as well
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 Oct 2010 18:15:47 +0000 (19:15 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 Oct 2010 18:15:47 +0000 (19:15 +0100)
Hopefully the powers that be don't mind the gst/glib include here
too much.

gst/videoscale/vs_4tap.c

index 87e16aa..a210371 100644 (file)
 
 #include "vs_4tap.h"
 
-#include <math.h>
+#include <gst/math-compat.h>
 
 #define SHIFT 10
 
-#define MAX(a,b) (((a) > (b)) ? (a) : (b))
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#define CLAMP(x,a,b) MAX(MIN((x),(b)),(a))
-
-#ifndef M_PI
-#define M_PI  3.14159265358979323846
-#endif
-
-#ifdef _MSC_VER
-#define rint(x) (floor((x)+0.5))
-#endif
-
 static int16_t vs_4tap_taps[256][4];
 
 static double