Skip to content
Snippets Groups Projects
Commit 13b54752 authored by Fabrice Bellard's avatar Fabrice Bellard
Browse files

permuted coefs in normal IDCT to avoid having different cases there

Originally committed as revision 47 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent dc541ee7
No related branches found
No related tags found
No related merge requests found
...@@ -197,16 +197,18 @@ void j_rev_dct(DCTBLOCK data) ...@@ -197,16 +197,18 @@ void j_rev_dct(DCTBLOCK data)
register int *idataptr = (int*)dataptr; register int *idataptr = (int*)dataptr;
/* WARNING: we do the same permutation as MMX idct to simplify the
video core */
d0 = dataptr[0]; d0 = dataptr[0];
d1 = dataptr[1]; d2 = dataptr[1];
d2 = dataptr[2]; d4 = dataptr[2];
d3 = dataptr[3]; d6 = dataptr[3];
d4 = dataptr[4]; d1 = dataptr[4];
d5 = dataptr[5]; d3 = dataptr[5];
d6 = dataptr[6]; d5 = dataptr[6];
d7 = dataptr[7]; 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 */ /* AC terms all zero */
if (d0) { if (d0) {
/* Compute a 32 bit value to assign. */ /* Compute a 32 bit value to assign. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment