# HG changeset patch # User michaelni # Date 1031215714 0 # Node ID 641708b5c33cebfe94ec10d83ac54179001de886 # Parent 3db611caee559de1deb0e67015c72e782e1ce412 fixing tests diff -r 3db611caee55 -r 641708b5c33c Makefile --- a/Makefile Tue Sep 03 20:15:34 2002 +0000 +++ b/Makefile Thu Sep 05 08:48:34 2002 +0000 @@ -139,14 +139,14 @@ # testing progs imgresample-test: imgresample.c - $(CC) $(CFLAGS) -DTEST -o $@ $^ + $(CC) $(CFLAGS) -DTEST -o $@ $^ -lm dct-test: dct-test.o jfdctfst.o jfdctint.o i386/fdct_mmx.o\ fdctref.o jrevdct.o i386/idct_mmx.o simple_idct.o i386/simple_idct_mmx.o $(CC) -o $@ $^ -lm motion-test: motion_test.o $(LIB) - $(CC) -o $@ $^ + $(CC) -o $@ $^ -lm install: all ifeq ($(BUILD_SHARED),yes) diff -r 3db611caee55 -r 641708b5c33c imgresample.c --- a/imgresample.c Tue Sep 03 20:15:34 2002 +0000 +++ b/imgresample.c Thu Sep 05 08:48:34 2002 +0000 @@ -539,7 +539,7 @@ } #ifdef HAVE_MMX -extern int mm_flags; +int mm_flags; #endif int main(int argc, char **argv) @@ -598,7 +598,7 @@ fact = factors[i]; xsize = (int)(XSIZE * fact); ysize = (int)((YSIZE - 100) * fact); - s = img_resample_full_init(xsize, ysize, XSIZE, YSIZE, 50 ,50); + s = img_resample_full_init(xsize, ysize, XSIZE, YSIZE, 50 ,50, 0, 0); printf("Factor=%0.2f\n", fact); dump_filter(&s->h_filters[0][0]); component_resample(s, img1, xsize, xsize, ysize, diff -r 3db611caee55 -r 641708b5c33c motion_test.c --- a/motion_test.c Tue Sep 03 20:15:34 2002 +0000 +++ b/motion_test.c Thu Sep 05 08:48:34 2002 +0000 @@ -10,19 +10,19 @@ #include "i386/mmx.h" -int pix_abs16x16_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_mmx1(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_x2_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_x2_mmx1(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_x2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_y2_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_y2_mmx1(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_y2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_xy2_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_xy2_mmx1(UINT8 *blk1, UINT8 *blk2, int lx, int h); -int pix_abs16x16_xy2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); +int pix_abs16x16_mmx(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_mmx1(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_x2_mmx(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_x2_mmx1(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_x2_c(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_y2_mmx(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_y2_mmx1(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_y2_c(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_xy2_mmx(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_xy2_mmx1(UINT8 *blk1, UINT8 *blk2, int lx); +int pix_abs16x16_xy2_c(UINT8 *blk1, UINT8 *blk2, int lx); -typedef int motion_func(UINT8 *blk1, UINT8 *blk2, int lx, int h); +typedef int motion_func(UINT8 *blk1, UINT8 *blk2, int lx); #define WIDTH 64 #define HEIGHT 64 @@ -77,8 +77,8 @@ for(y=0;y