changeset 2872:062b2d5d1eba libavcodec

add xvid idcts to dct-test
author michael
date Sat, 10 Sep 2005 23:00:13 +0000
parents f4afa3812818
children 55809f38eb63
files Makefile dct-test.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Sep 10 19:30:40 2005 +0000
+++ b/Makefile	Sat Sep 10 23:00:13 2005 +0000
@@ -465,7 +465,7 @@
 	$(CC) $(CFLAGS) -DTEST -o $@ $^ -lm
 
 dct-test: dct-test.o fdctref.o $(LIB)
-	$(CC) -o $@ $^ -lm
+	$(CC) -o $@ $^ -lm $(LIBAVUTIL)
 
 motion-test: motion_test.o $(LIB)
 	$(CC) -o $@ $^ -lm
--- a/dct-test.c	Sat Sep 10 19:30:40 2005 +0000
+++ b/dct-test.c	Sat Sep 10 23:00:13 2005 +0000
@@ -20,9 +20,15 @@
 #define MAX(a, b)  (((a) > (b)) ? (a) : (b))
 #endif
 
+#undef printf
+
+void *fast_memcpy(void *a, const void *b, size_t c){return memcpy(a,b,c);};
+
 /* reference fdct/idct */
 extern void fdct(DCTELEM *block);
 extern void idct(DCTELEM *block);
+extern void ff_idct_xvid_mmx(DCTELEM *block);
+extern void ff_idct_xvid_mmx2(DCTELEM *block);
 extern void init_fdct();
 
 extern void j_rev_dct(DCTELEM *data);
@@ -493,6 +499,8 @@
             dct_error("LIBMPEG2-MMXEXT", 1, ff_mmxext_idct, idct, test);
             dct_error("SIMPLE-C", 1, simple_idct, idct, test);
             dct_error("SIMPLE-MMX", 1, ff_simple_idct_mmx, idct, test);
+            dct_error("XVID-MMX", 1, ff_idct_xvid_mmx, idct, test);
+            dct_error("XVID-MMX2", 1, ff_idct_xvid_mmx2, idct, test);
             //        dct_error("ODIVX-C", 1, odivx_idct_c, idct);
             //printf(" test against odivx idct\n");
             //	dct_error("REF", 1, idct, odivx_idct_c);