[gst-cvs] gst-plugins-base: videoscale: use math-compat.h here as well

Tim Müller tpm at kemper.freedesktop.org
Tue Oct 5 11:26:27 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: a86613a4878cac9e21fe205b9bd59217144568d9
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=a86613a4878cac9e21fe205b9bd59217144568d9

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Tue Oct  5 19:15:47 2010 +0100

videoscale: use math-compat.h here as well

Hopefully the powers that be don't mind the gst/glib include here
too much.

---

 gst/videoscale/vs_4tap.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/gst/videoscale/vs_4tap.c b/gst/videoscale/vs_4tap.c
index 87e16aa..a210371 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





More information about the Gstreamer-commits mailing list