videoscale: use math-compat.h here as well

Hopefully the powers that be don't mind the gst/glib include here
too much.
This commit is contained in:
Tim-Philipp Müller 2010-10-05 19:15:47 +01:00
parent 383f7edaf4
commit a86613a487

View file

@ -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