summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-10-05 19:15:47 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-10-05 19:15:47 +0100
commita86613a4878cac9e21fe205b9bd59217144568d9 (patch)
treea7f63c6fd4399341425a4f09796984c19eae2b42 /gst
parent383f7edaf40577ea1d452fa0b14facf04946ce14 (diff)
videoscale: use math-compat.h here as well
Hopefully the powers that be don't mind the gst/glib include here too much.
Diffstat (limited to 'gst')
-rw-r--r--gst/videoscale/vs_4tap.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gst/videoscale/vs_4tap.c b/gst/videoscale/vs_4tap.c
index 87e16aa6c..a210371d8 100644
--- a/gst/videoscale/vs_4tap.c
+++ b/gst/videoscale/vs_4tap.c
@@ -31,22 +31,10 @@
#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