[FFmpeg-soc] [soc]: r743 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Mon Aug 13 15:14:28 CEST 2007


Author: marco
Date: Mon Aug 13 15:14:28 2007
New Revision: 743

Log:
Fix regressions in the 5/3 IDWT

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Mon Aug 13 15:14:28 2007
@@ -1721,7 +1721,7 @@ START_TIMER
     /* Vertical synthesis: Lifting stage 2.  */
     synthline = synth + synth_width;
     for (x = 0; x < synth_width; x++)
-        synthline[x] += (synthline[x]
+        synthline[x] += (synthline[x - synth_width]
                        + synthline[x + synth_width]
                        + 1) >> 1;
     synthline = synth + (synth_width << 1);
@@ -1745,7 +1745,10 @@ START_TIMER
     for (y = 0; y < synth_height; y++) {
 
         /* Lifting stage 1.  */
-        for (x = 0; x < width - 1; x++) {
+        synthline[0] -= (synthline[1]
+                       + synthline[1]
+                       + 2) >> 2;
+        for (x = 1; x < width - 1; x++) {
             synthline[2*x] -= (synthline[2*x - 1]
                              + synthline[2*x + 1]
                              + 2) >> 2;



More information about the FFmpeg-soc mailing list