Mercurial > libavcodec.hg
comparison wma.h @ 4737:99d9dd34903b libavcodec
Optimize by building the mdct window and multipying/adding at the same time.
Patch by Ian Braithwaite ian .. braithwaite . dk
[Ffmpeg-devel] WMA decoder speedup 2007-03-22 22:56
author | banan |
---|---|
date | Mon, 26 Mar 2007 10:03:57 +0000 |
parents | 7b9ce6f729ae |
children | 4ae9ab738aec |
comparison
equal
deleted
inserted
replaced
4736:59649ebd5ed8 | 4737:99d9dd34903b |
---|---|
110 DECLARE_ALIGNED_16(float, exponents[MAX_CHANNELS][BLOCK_MAX_SIZE]); | 110 DECLARE_ALIGNED_16(float, exponents[MAX_CHANNELS][BLOCK_MAX_SIZE]); |
111 float max_exponent[MAX_CHANNELS]; | 111 float max_exponent[MAX_CHANNELS]; |
112 int16_t coefs1[MAX_CHANNELS][BLOCK_MAX_SIZE]; | 112 int16_t coefs1[MAX_CHANNELS][BLOCK_MAX_SIZE]; |
113 DECLARE_ALIGNED_16(float, coefs[MAX_CHANNELS][BLOCK_MAX_SIZE]); | 113 DECLARE_ALIGNED_16(float, coefs[MAX_CHANNELS][BLOCK_MAX_SIZE]); |
114 DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]); | 114 DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]); |
115 DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]); | |
116 MDCTContext mdct_ctx[BLOCK_NB_SIZES]; | 115 MDCTContext mdct_ctx[BLOCK_NB_SIZES]; |
117 float *windows[BLOCK_NB_SIZES]; | 116 float *windows[BLOCK_NB_SIZES]; |
118 DECLARE_ALIGNED_16(FFTSample, mdct_tmp[BLOCK_MAX_SIZE]); ///< temporary storage for imdct | 117 DECLARE_ALIGNED_16(FFTSample, mdct_tmp[BLOCK_MAX_SIZE]); ///< temporary storage for imdct |
119 /* output buffer for one frame and the last for IMDCT windowing */ | 118 /* output buffer for one frame and the last for IMDCT windowing */ |
120 DECLARE_ALIGNED_16(float, frame_out[MAX_CHANNELS][BLOCK_MAX_SIZE * 2]); | 119 DECLARE_ALIGNED_16(float, frame_out[MAX_CHANNELS][BLOCK_MAX_SIZE * 2]); |