[FFmpeg-cvslog] r22826 - in trunk/libavcodec: dca.c dcadata.h
mru
subversion
Sat Apr 10 18:27:48 CEST 2010
Author: mru
Date: Sat Apr 10 18:27:47 2010
New Revision: 22826
Log:
DCA: align some arrays
Optimised implementations of the synth filter will require these
arrays 16-byte aligned.
Modified:
trunk/libavcodec/dca.c
trunk/libavcodec/dcadata.h
Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c Sat Apr 10 01:29:47 2010 (r22825)
+++ trunk/libavcodec/dca.c Sat Apr 10 18:27:47 2010 (r22826)
@@ -230,7 +230,7 @@ typedef struct {
/* Subband samples history (for ADPCM) */
float subband_samples_hist[DCA_PRIM_CHANNELS_MAX][DCA_SUBBANDS][4];
DECLARE_ALIGNED(16, float, subband_fir_hist)[DCA_PRIM_CHANNELS_MAX][512];
- float subband_fir_noidea[DCA_PRIM_CHANNELS_MAX][32];
+ DECLARE_ALIGNED(16, float, subband_fir_noidea)[DCA_PRIM_CHANNELS_MAX][32];
int hist_index[DCA_PRIM_CHANNELS_MAX];
DECLARE_ALIGNED(16, float, raXin)[32];
Modified: trunk/libavcodec/dcadata.h
==============================================================================
--- trunk/libavcodec/dcadata.h Sat Apr 10 01:29:47 2010 (r22825)
+++ trunk/libavcodec/dcadata.h Sat Apr 10 18:27:47 2010 (r22826)
@@ -6282,7 +6282,7 @@ static const int8_t high_freq_vq[1024][3
/* FIR filter coefficients, they can be cut on half and maybe use float instead of double*/
-static const float fir_32bands_perfect[] =
+DECLARE_ALIGNED(16, static const float, fir_32bands_perfect)[] =
{
+1.135985195E-010,
+7.018770981E-011,
@@ -6798,7 +6798,7 @@ static const float fir_32bands_perfect[]
-1.135985195E-010
};
-static const float fir_32bands_nonperfect[] =
+DECLARE_ALIGNED(16, static const float, fir_32bands_nonperfect)[] =
{
-1.390191784E-007,
-1.693738625E-007,
More information about the ffmpeg-cvslog
mailing list