aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/dct-test.c11
-rw-r--r--libavcodec/fft-test.c2
-rw-r--r--libavcodec/motion_test.c1
3 files changed, 5 insertions, 9 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index e36a9a07f0..c13a1ed65a 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -6,13 +6,16 @@
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
-#include <getopt.h>
#include "dsputil.h"
#include "i386/mmx.h"
#include "simple_idct.h"
+#ifndef MAX
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
+#endif
+
/* reference fdct/idct */
extern void fdct(DCTELEM *block);
extern void idct(DCTELEM *block);
@@ -24,12 +27,6 @@ extern void ff_mmxext_idct(DCTELEM *data);
extern void odivx_idct_c (short *block);
-void (*add_pixels_clamped)(const DCTELEM *block/*align 16*/,
- UINT8 *pixels/*align 8*/, int line_size);
-
-void (*put_pixels_clamped)(const DCTELEM *block/*align 16*/,
- UINT8 *pixels/*align 8*/, int line_size);
-
#define AANSCALE_BITS 12
static const unsigned short aanscales[64] = {
/* precomputed values scaled up by 14 bits */
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 55bcd8a188..98a38e1f95 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -1,7 +1,7 @@
/* FFT and MDCT tests */
#include "dsputil.h"
#include <math.h>
-#include <getopt.h>
+#include <unistd.h>
#include <sys/time.h>
int mm_flags;
diff --git a/libavcodec/motion_test.c b/libavcodec/motion_test.c
index 14df28e8ea..6151ef9896 100644
--- a/libavcodec/motion_test.c
+++ b/libavcodec/motion_test.c
@@ -4,7 +4,6 @@
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
-#include <getopt.h>
#include "dsputil.h"