aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/dct-test.c
diff options
context:
space:
mode:
authorMåns Rullgård2008-06-26 01:13:16 +0000
committerMåns Rullgård2008-06-26 01:13:16 +0000
commitfb9464e807190bcc15abafbc85ee684f053f9875 (patch)
tree0653cfe6da89846c082bffca174a120a43de1074 /libavcodec/dct-test.c
parentfc658cfe2b84ef98f4ff4f3349e2bed8ae28b407 (diff)
add libmpeg2 permutation to dct-test
Originally committed as revision 13985 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r--libavcodec/dct-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 0868c2e3f8..3653676187 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -69,7 +69,7 @@ struct algo {
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 @@ void dct_error(const char *name, int is_idct,
} 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];