comparison ac3dec.h @ 7564:7cf793954871 libavcodec

simd int->float 20% faster ac3 if downmixing, 15% if not
author lorenm
date Wed, 13 Aug 2008 23:35:40 +0000
parents 96d57e3b78e5
children 69d5f318275f
comparison
equal deleted inserted replaced
7563:8390efaa0c03 7564:7cf793954871
156 DSPContext dsp; ///< for optimization 156 DSPContext dsp; ///< for optimization
157 float add_bias; ///< offset for float_to_int16 conversion 157 float add_bias; ///< offset for float_to_int16 conversion
158 float mul_bias; ///< scaling for float_to_int16 conversion 158 float mul_bias; ///< scaling for float_to_int16 conversion
159 ///@} 159 ///@}
160 160
161 int fixed_coeffs[AC3_MAX_CHANNELS][AC3_MAX_COEFS]; ///> fixed-point transform coefficients 161 DECLARE_ALIGNED_16(int, fixed_coeffs[AC3_MAX_CHANNELS][AC3_MAX_COEFS]); ///> fixed-point transform coefficients
162 162
163 ///@defgroup arrays aligned arrays 163 ///@defgroup arrays aligned arrays
164 DECLARE_ALIGNED_16(float, transform_coeffs[AC3_MAX_CHANNELS][AC3_MAX_COEFS]); ///< transform coefficients 164 DECLARE_ALIGNED_16(float, transform_coeffs[AC3_MAX_CHANNELS][AC3_MAX_COEFS]); ///< transform coefficients
165 DECLARE_ALIGNED_16(float, delay[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE]); ///< delay - added to the next block 165 DECLARE_ALIGNED_16(float, delay[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE]); ///< delay - added to the next block
166 DECLARE_ALIGNED_16(float, window[AC3_BLOCK_SIZE]); ///< window coefficients 166 DECLARE_ALIGNED_16(float, window[AC3_BLOCK_SIZE]); ///< window coefficients