comparison ac3dec.c @ 5516:da33495f0621 libavcodec

cosmetics: vertical alignment
author jbr
date Thu, 09 Aug 2007 00:39:35 +0000
parents b499866a3397
children b031d95d8fae
comparison
equal deleted inserted replaced
5515:b499866a3397 5516:da33495f0621
154 int frame_size; ///< current frame size, in bytes 154 int frame_size; ///< current frame size, in bytes
155 155
156 int nchans; ///< number of total channels 156 int nchans; ///< number of total channels
157 int nfchans; ///< number of full-bandwidth channels 157 int nfchans; ///< number of full-bandwidth channels
158 int lfeon; ///< lfe channel in use 158 int lfeon; ///< lfe channel in use
159 int lfe_ch; ///< index of LFE channel 159 int lfe_ch; ///< index of LFE channel
160 int output_mode; ///< output channel configuration 160 int output_mode; ///< output channel configuration
161 int out_channels; ///< number of output channels 161 int out_channels; ///< number of output channels
162 162
163 float downmix_coeffs[AC3_MAX_CHANNELS][2]; ///< stereo downmix coefficients 163 float downmix_coeffs[AC3_MAX_CHANNELS][2]; ///< stereo downmix coefficients
164 float dialnorm[2]; ///< dialogue normalization 164 float dialnorm[2]; ///< dialogue normalization
165 float dynrng[2]; ///< dynamic range 165 float dynrng[2]; ///< dynamic range
166 float cplco[AC3_MAX_CHANNELS][18]; ///< coupling coordinates 166 float cplco[AC3_MAX_CHANNELS][18]; ///< coupling coordinates
167 int ncplbnd; ///< number of coupling bands 167 int ncplbnd; ///< number of coupling bands
168 int ncplsubnd; ///< number of coupling sub bands 168 int ncplsubnd; ///< number of coupling sub bands
169 int startmant[AC3_MAX_CHANNELS]; ///< start frequency bin 169 int startmant[AC3_MAX_CHANNELS]; ///< start frequency bin
170 int endmant[AC3_MAX_CHANNELS]; ///< end frequency bin 170 int endmant[AC3_MAX_CHANNELS]; ///< end frequency bin
171 AC3BitAllocParameters bit_alloc_params; ///< bit allocation parameters 171 AC3BitAllocParameters bit_alloc_params; ///< bit allocation parameters
172 172
173 int8_t dexps[AC3_MAX_CHANNELS][256]; ///< decoded exponents 173 int8_t dexps[AC3_MAX_CHANNELS][256]; ///< decoded exponents
174 uint8_t bap[AC3_MAX_CHANNELS][256]; ///< bit allocation pointers 174 uint8_t bap[AC3_MAX_CHANNELS][256]; ///< bit allocation pointers
175 int16_t psd[AC3_MAX_CHANNELS][256]; ///< scaled exponents 175 int16_t psd[AC3_MAX_CHANNELS][256]; ///< scaled exponents
176 int16_t bndpsd[AC3_MAX_CHANNELS][50]; ///< interpolated exponents 176 int16_t bndpsd[AC3_MAX_CHANNELS][50]; ///< interpolated exponents
177 int16_t mask[AC3_MAX_CHANNELS][50]; ///< masking curve values 177 int16_t mask[AC3_MAX_CHANNELS][50]; ///< masking curve values
178 178
179 DECLARE_ALIGNED_16(float, transform_coeffs[AC3_MAX_CHANNELS][256]); ///< transform coefficients 179 DECLARE_ALIGNED_16(float, transform_coeffs[AC3_MAX_CHANNELS][256]); ///< transform coefficients
180 180
181 /* For IMDCT. */ 181 /* For IMDCT. */
182 MDCTContext imdct_512; ///< for 512 sample IMDCT 182 MDCTContext imdct_512; ///< for 512 sample IMDCT
183 MDCTContext imdct_256; ///< for 256 sample IMDCT 183 MDCTContext imdct_256; ///< for 256 sample IMDCT
184 DSPContext dsp; ///< for optimization 184 DSPContext dsp; ///< for optimization
185 float add_bias; ///< offset for float_to_int16 conversion 185 float add_bias; ///< offset for float_to_int16 conversion
186 float mul_bias; ///< scaling for float_to_int16 conversion 186 float mul_bias; ///< scaling for float_to_int16 conversion
187 187
188 DECLARE_ALIGNED_16(float, output[AC3_MAX_CHANNELS-1][256]); ///< output after imdct transform and windowing 188 DECLARE_ALIGNED_16(float, output[AC3_MAX_CHANNELS-1][256]); ///< output after imdct transform and windowing
189 DECLARE_ALIGNED_16(short, int_output[AC3_MAX_CHANNELS-1][256]); ///< final 16-bit integer output 189 DECLARE_ALIGNED_16(short, int_output[AC3_MAX_CHANNELS-1][256]); ///< final 16-bit integer output
190 DECLARE_ALIGNED_16(float, delay[AC3_MAX_CHANNELS-1][256]); ///< delay - added to the next block 190 DECLARE_ALIGNED_16(float, delay[AC3_MAX_CHANNELS-1][256]); ///< delay - added to the next block
191 DECLARE_ALIGNED_16(float, tmp_imdct[256]); ///< temporary storage for imdct transform 191 DECLARE_ALIGNED_16(float, tmp_imdct[256]); ///< temporary storage for imdct transform
193 DECLARE_ALIGNED_16(float, window[256]); ///< window coefficients 193 DECLARE_ALIGNED_16(float, window[256]); ///< window coefficients
194 194
195 /* Miscellaneous. */ 195 /* Miscellaneous. */
196 GetBitContext gb; ///< bitstream reader 196 GetBitContext gb; ///< bitstream reader
197 AVRandomState dith_state; ///< for dither generation 197 AVRandomState dith_state; ///< for dither generation
198 AVCodecContext *avctx; ///< parent context 198 AVCodecContext *avctx; ///< parent context
199 } AC3DecodeContext; 199 } AC3DecodeContext;
200 200
201 /** 201 /**
202 * Generate a Kaiser-Bessel Derived Window. 202 * Generate a Kaiser-Bessel Derived Window.
203 */ 203 */