Mercurial > libavcodec.hg
diff jrevdct.c @ 36:23723a0ebd24 libavcodec
permuted coefs in normal IDCT to avoid having different cases there
author | glantau |
---|---|
date | Tue, 07 Aug 2001 22:45:35 +0000 |
parents | 986e461dc072 |
children | 000aeeac27a2 |
line wrap: on
line diff
--- a/jrevdct.c Tue Aug 07 22:43:37 2001 +0000 +++ b/jrevdct.c Tue Aug 07 22:45:35 2001 +0000 @@ -197,16 +197,18 @@ register int *idataptr = (int*)dataptr; + /* WARNING: we do the same permutation as MMX idct to simplify the + video core */ d0 = dataptr[0]; - d1 = dataptr[1]; - d2 = dataptr[2]; - d3 = dataptr[3]; - d4 = dataptr[4]; - d5 = dataptr[5]; - d6 = dataptr[6]; + d2 = dataptr[1]; + d4 = dataptr[2]; + d6 = dataptr[3]; + d1 = dataptr[4]; + d3 = dataptr[5]; + d5 = dataptr[6]; d7 = dataptr[7]; - if ((d1 == 0) && (idataptr[1] | idataptr[2] | idataptr[3]) == 0) { + if ((d1 | d2 | d3 | d4 | d5 | d6 | d7) == 0) { /* AC terms all zero */ if (d0) { /* Compute a 32 bit value to assign. */