changeset 8350:583f32e6f4b5 libavcodec

dct-test: add PARTTRANS permutation
author mru
date Tue, 16 Dec 2008 19:59:50 +0000
parents 920ded20b469
children 91b681b7b6be
files dct-test.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dct-test.c	Tue Dec 16 19:39:01 2008 +0000
+++ b/dct-test.c	Tue Dec 16 19:59:50 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, PARTTRANS_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 == PARTTRANS_PERM) {
+            for(i=0; i<64; i++)
+                block[(i&0x24) | ((i&3)<<3) | ((i>>3)&3)] = block1[i];
         } else {
             for(i=0; i<64; i++)
                 block[i]= block1[i];