[FFmpeg-soc] [soc]: r700 - dirac/libavcodec/dirac.c
marco
subversion at mplayerhq.hu
Sat Aug 11 21:59:46 CEST 2007
Author: marco
Date: Sat Aug 11 21:59:46 2007
New Revision: 700
Log:
merge loop to copy out coefficients and the loop to shift away a bit
Modified:
dirac/libavcodec/dirac.c
Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c (original)
+++ dirac/libavcodec/dirac.c Sat Aug 11 21:59:46 2007
@@ -1730,17 +1730,14 @@ START_TIMER
synthline += synth_width;
}
- /* Shift away one bit that was use for additional precision. */
- for (y = 0; y < synth_height; y++)
- for (x = 0; x < synth_width; x++)
- synth[x + y * synth_width] =
- (synth[x + y * synth_width] + (1 << (1-1))) >> 1;
-
- /* Make the LL subband for level+1 */
+ /* Shift away one bit that was use for additional precision and
+ copy back to the coefficients buffer. */
+ synthline = synth;
for (y = 0; y < synth_height; y++) {
- for (x = 0; x < synth_width; x++) {
- data[x + y * s->padded_width] = synth[x + y * synth_width];
- }
+ for (x = 0; x < synth_width; x++)
+ data[x] = (synthline[x] + 1) >> 1;
+ synthline += synth_width;
+ data += s->padded_width;
}
STOP_TIMER("idwt53")
More information about the FFmpeg-soc
mailing list