# HG changeset patch # User mru # Date 1214442796 0 # Node ID 3664894594e5ec07036b2d0cae1a3f1c0d372434 # Parent 8e25ae9f1c4ae35989580befa851a2e3140622b7 add libmpeg2 permutation to dct-test diff -r 8e25ae9f1c4a -r 3664894594e5 dct-test.c --- a/dct-test.c Wed Jun 25 23:57:06 2008 +0000 +++ b/dct-test.c Thu Jun 26 01:13:16 2008 +0000 @@ -69,7 +69,7 @@ enum { FDCT, IDCT } is_idct; void (* func) (DCTELEM *block); void (* ref) (DCTELEM *block); - enum formattag { NO_PERM,MMX_PERM, MMX_SIMPLE_PERM, SCALE_PERM, SSE2_PERM } format; + enum formattag { NO_PERM,MMX_PERM, MMX_SIMPLE_PERM, SCALE_PERM, SSE2_PERM, LIBMPEG2_PERM } format; int mm_support; }; @@ -235,6 +235,9 @@ } else if (form == SSE2_PERM) { for(i=0; i<64; i++) block[(i&0x38) | idct_sse2_row_perm[i&7]] = block1[i]; + } else if (form == LIBMPEG2_PERM) { + for(i=0; i<64; i++) + block[(i&0x38) | ((i&6) >> 1) | ((i&1) << 2)] = block1[i]; } else { for(i=0; i<64; i++) block[i]= block1[i];