diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-09-05 08:48:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-05 08:48:34 +0000 |
commit | 6acce86bdd565b40c1b11f6f02c9b2774b7e31ea (patch) | |
tree | 43856989218c51af597bc08d4939bddee5b3c9bb /libavcodec/motion_test.c | |
parent | 64a7a8af14b4fce3c5352a3ed5e07838c5cf363e (diff) | |
download | ffmpeg-6acce86bdd565b40c1b11f6f02c9b2774b7e31ea.tar.gz |
fixing tests
Originally committed as revision 905 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/motion_test.c')
-rw-r--r-- | libavcodec/motion_test.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libavcodec/motion_test.c b/libavcodec/motion_test.c index b0426a2089..14df28e8ea 100644 --- a/libavcodec/motion_test.c +++ b/libavcodec/motion_test.c @@ -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); - -typedef int motion_func(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); #define WIDTH 64 #define HEIGHT 64 @@ -77,8 +77,8 @@ void test_motion(const char *name, for(y=0;y<HEIGHT-17;y++) { for(x=0;x<WIDTH-17;x++) { ptr = img2 + y * WIDTH + x; - d1 = test_func(img1, ptr, WIDTH, 16); - d2 = ref_func(img1, ptr, WIDTH, 16); + d1 = test_func(img1, ptr, WIDTH); + d2 = ref_func(img1, ptr, WIDTH); if (d1 != d2) { printf("error: mmx=%d c=%d\n", d1, d2); } @@ -94,7 +94,7 @@ void test_motion(const char *name, for(y=0;y<HEIGHT-17;y++) { for(x=0;x<WIDTH-17;x++) { ptr = img2 + y * WIDTH + x; - d1 += test_func(img1, ptr, WIDTH, 16); + d1 += test_func(img1, ptr, WIDTH); } } } |