[FFmpeg-cvslog] r26028 - trunk/libavcodec/ac3enc.c

jbr subversion
Thu Dec 16 04:13:45 CET 2010


Author: jbr
Date: Thu Dec 16 04:13:45 2010
New Revision: 26028

Log:
Write results of post-rotation complex multiply directly to output.
2% faster in function mdct512().

Modified:
   trunk/libavcodec/ac3enc.c

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	Thu Dec 16 04:13:41 2010	(r26027)
+++ trunk/libavcodec/ac3enc.c	Thu Dec 16 04:13:45 2010	(r26028)
@@ -332,7 +332,7 @@ static void fft(IComplex *z, int ln)
  */
 static void mdct512(int32_t *out, int16_t *in)
 {
-    int i, re, im, re1, im1;
+    int i, re, im;
     int16_t rot[MDCT_SAMPLES];
     IComplex x[MDCT_SAMPLES/4];
 
@@ -354,9 +354,7 @@ static void mdct512(int32_t *out, int16_
     for (i = 0; i < MDCT_SAMPLES/4; i++) {
         re = x[i].re;
         im = x[i].im;
-        CMUL(re1, im1, re, im, xsin1[i], xcos1[i]);
-        out[                 2*i] = im1;
-        out[MDCT_SAMPLES/2-1-2*i] = re1;
+        CMUL(out[MDCT_SAMPLES/2-1-2*i], out[2*i], re, im, xsin1[i], xcos1[i]);
     }
 }
 



More information about the ffmpeg-cvslog mailing list