AC3DecodeContext Struct Reference


Public Member Functions

 DECLARE_ALIGNED_16 (float, transform_coeffs[AC3_MAX_CHANNELS][256])
 transform coefficients
 DECLARE_ALIGNED_16 (float, output[AC3_MAX_CHANNELS-1][256])
 output after imdct transform and windowing
 DECLARE_ALIGNED_16 (short, int_output[AC3_MAX_CHANNELS-1][256])
 final 16-bit integer output
 DECLARE_ALIGNED_16 (float, delay[AC3_MAX_CHANNELS-1][256])
 delay - added to the next block
 DECLARE_ALIGNED_16 (float, tmp_imdct[256])
 temporary storage for imdct transform
 DECLARE_ALIGNED_16 (float, tmp_output[512])
 temporary storage for output before windowing
 DECLARE_ALIGNED_16 (float, window[256])
 window coefficients

Data Fields

int channel_mode
 channel mode (acmod)
int block_switch [AC3_MAX_CHANNELS]
 block switch flags
int dither_flag [AC3_MAX_CHANNELS]
 dither flags
int dither_all
 true if all channels are dithered
int cpl_in_use
 coupling in use
int channel_in_cpl [AC3_MAX_CHANNELS]
 channel in coupling
int phase_flags_in_use
 phase flags in use
int phase_flags [18]
 phase flags
int cpl_band_struct [18]
 coupling band structure
int num_rematrixing_bands
 number of rematrixing bands
int rematrixing_flags [4]
 rematrixing flags
int exp_strategy [AC3_MAX_CHANNELS]
 exponent strategies
int snr_offset [AC3_MAX_CHANNELS]
 signal-to-noise ratio offsets
int fast_gain [AC3_MAX_CHANNELS]
 fast gain values (signal-to-mask ratio)
int dba_mode [AC3_MAX_CHANNELS]
 delta bit allocation mode
int dba_nsegs [AC3_MAX_CHANNELS]
 number of delta segments
uint8_t dba_offsets [AC3_MAX_CHANNELS][8]
 delta segment offsets
uint8_t dba_lengths [AC3_MAX_CHANNELS][8]
 delta segment lengths
uint8_t dba_values [AC3_MAX_CHANNELS][8]
 delta values for each segment
int sample_rate
 sample frequency, in Hz
int bit_rate
 stream bit rate, in bits-per-second
int frame_size
 current frame size, in bytes
int channels
 number of total channels
int fbw_channels
 number of full-bandwidth channels
int lfe_on
 lfe channel in use
int lfe_ch
 index of LFE channel
int output_mode
 output channel configuration
int out_channels
 number of output channels
int center_mix_level
 Center mix level index.
int surround_mix_level
 Surround mix level index.
float downmix_coeffs [AC3_MAX_CHANNELS][2]
 stereo downmix coefficients
float dynamic_range [2]
 dynamic range
float cpl_coords [AC3_MAX_CHANNELS][18]
 coupling coordinates
int num_cpl_bands
 number of coupling bands
int num_cpl_subbands
 number of coupling sub bands
int start_freq [AC3_MAX_CHANNELS]
 start frequency bin
int end_freq [AC3_MAX_CHANNELS]
 end frequency bin
AC3BitAllocParameters bit_alloc_params
 bit allocation parameters
int8_t dexps [AC3_MAX_CHANNELS][256]
 decoded exponents
uint8_t bap [AC3_MAX_CHANNELS][256]
 bit allocation pointers
int16_t psd [AC3_MAX_CHANNELS][256]
 scaled exponents
int16_t band_psd [AC3_MAX_CHANNELS][50]
 interpolated exponents
int16_t mask [AC3_MAX_CHANNELS][50]
 masking curve values
MDCTContext imdct_512
 for 512 sample IMDCT
MDCTContext imdct_256
 for 256 sample IMDCT
DSPContext dsp
 for optimization
float add_bias
 offset for float_to_int16 conversion
float mul_bias
 scaling for float_to_int16 conversion
GetBitContext gbc
 bitstream reader
AVRandomState dith_state
 for dither generation
AVCodecContextavctx
 parent context

Detailed Description

Definition at line 128 of file ac3dec.c.


Member Function Documentation

AC3DecodeContext::DECLARE_ALIGNED_16 ( float  ,
transform_coeffs  [AC3_MAX_CHANNELS][256] 
)

transform coefficients

AC3DecodeContext::DECLARE_ALIGNED_16 ( float  ,
output  [AC3_MAX_CHANNELS-1][256] 
)

output after imdct transform and windowing

AC3DecodeContext::DECLARE_ALIGNED_16 ( short  ,
int_output  [AC3_MAX_CHANNELS-1][256] 
)

final 16-bit integer output

AC3DecodeContext::DECLARE_ALIGNED_16 ( float  ,
delay  [AC3_MAX_CHANNELS-1][256] 
)

delay - added to the next block

AC3DecodeContext::DECLARE_ALIGNED_16 ( float  ,
tmp_imdct  [256] 
)

temporary storage for imdct transform

AC3DecodeContext::DECLARE_ALIGNED_16 ( float  ,
tmp_output  [512] 
)

temporary storage for output before windowing

AC3DecodeContext::DECLARE_ALIGNED_16 ( float  ,
window  [256] 
)

window coefficients


Field Documentation

channel mode (acmod)

Definition at line 129 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), ac3_parse_header(), and set_downmix_coeffs().

int AC3DecodeContext::block_switch[AC3_MAX_CHANNELS]

block switch flags

Definition at line 130 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and do_imdct().

int AC3DecodeContext::dither_flag[AC3_MAX_CHANNELS]

dither flags

Definition at line 131 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and remove_dithering().

true if all channels are dithered

Definition at line 132 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and get_transform_coeffs().

coupling in use

Definition at line 133 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int AC3DecodeContext::channel_in_cpl[AC3_MAX_CHANNELS]

channel in coupling

Definition at line 134 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), get_transform_coeffs(), remove_dithering(), and uncouple_channels().

phase flags in use

Definition at line 135 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

phase flags

Definition at line 136 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and uncouple_channels().

coupling band structure

Definition at line 137 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and uncouple_channels().

number of rematrixing bands

Definition at line 138 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and do_rematrixing().

rematrixing flags

Definition at line 139 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and do_rematrixing().

int AC3DecodeContext::exp_strategy[AC3_MAX_CHANNELS]

exponent strategies

Definition at line 140 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int AC3DecodeContext::snr_offset[AC3_MAX_CHANNELS]

signal-to-noise ratio offsets

Definition at line 141 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int AC3DecodeContext::fast_gain[AC3_MAX_CHANNELS]

fast gain values (signal-to-mask ratio)

Definition at line 142 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int AC3DecodeContext::dba_mode[AC3_MAX_CHANNELS]

delta bit allocation mode

Definition at line 143 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int AC3DecodeContext::dba_nsegs[AC3_MAX_CHANNELS]

number of delta segments

Definition at line 144 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

uint8_t AC3DecodeContext::dba_offsets[AC3_MAX_CHANNELS][8]

delta segment offsets

Definition at line 145 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

uint8_t AC3DecodeContext::dba_lengths[AC3_MAX_CHANNELS][8]

delta segment lengths

Definition at line 146 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

uint8_t AC3DecodeContext::dba_values[AC3_MAX_CHANNELS][8]

delta values for each segment

Definition at line 147 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

sample frequency, in Hz

Definition at line 149 of file ac3dec.c.

Referenced by ac3_decode_frame(), and ac3_parse_header().

stream bit rate, in bits-per-second

Definition at line 150 of file ac3dec.c.

Referenced by ac3_decode_frame(), and ac3_parse_header().

current frame size, in bytes

Definition at line 151 of file ac3dec.c.

Referenced by ac3_decode_frame(), and ac3_parse_header().

number of total channels

Definition at line 153 of file ac3dec.c.

Referenced by ac3_decode_frame(), ac3_parse_audio_block(), ac3_parse_header(), and get_transform_coeffs().

lfe channel in use

Definition at line 155 of file ac3dec.c.

Referenced by ac3_parse_header().

index of LFE channel

Definition at line 156 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and ac3_parse_header().

output channel configuration

Definition at line 157 of file ac3dec.c.

Referenced by ac3_decode_frame(), ac3_downmix(), ac3_parse_audio_block(), ac3_parse_header(), and do_imdct().

number of output channels

Definition at line 158 of file ac3dec.c.

Referenced by ac3_decode_frame(), ac3_parse_audio_block(), and ac3_parse_header().

Center mix level index.

Definition at line 160 of file ac3dec.c.

Referenced by ac3_parse_header(), and set_downmix_coeffs().

Surround mix level index.

Definition at line 161 of file ac3dec.c.

Referenced by ac3_parse_header(), and set_downmix_coeffs().

float AC3DecodeContext::downmix_coeffs[AC3_MAX_CHANNELS][2]

stereo downmix coefficients

Definition at line 162 of file ac3dec.c.

Referenced by ac3_downmix(), and set_downmix_coeffs().

dynamic range

Definition at line 163 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

float AC3DecodeContext::cpl_coords[AC3_MAX_CHANNELS][18]

coupling coordinates

Definition at line 164 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and uncouple_channels().

number of coupling bands

Definition at line 165 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and uncouple_channels().

number of coupling sub bands

Definition at line 166 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int AC3DecodeContext::start_freq[AC3_MAX_CHANNELS]

start frequency bin

Definition at line 167 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), get_transform_coeffs_ch(), remove_dithering(), and uncouple_channels().

int AC3DecodeContext::end_freq[AC3_MAX_CHANNELS]

end frequency bin

Definition at line 168 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), do_rematrixing(), get_transform_coeffs(), get_transform_coeffs_ch(), and remove_dithering().

bit allocation parameters

Definition at line 169 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and ac3_parse_header().

int8_t AC3DecodeContext::dexps[AC3_MAX_CHANNELS][256]

decoded exponents

Definition at line 171 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), and get_transform_coeffs_ch().

uint8_t AC3DecodeContext::bap[AC3_MAX_CHANNELS][256]

bit allocation pointers

Definition at line 172 of file ac3dec.c.

Referenced by ac3_parse_audio_block(), get_transform_coeffs_ch(), and remove_dithering().

int16_t AC3DecodeContext::psd[AC3_MAX_CHANNELS][256]

scaled exponents

Definition at line 173 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int16_t AC3DecodeContext::band_psd[AC3_MAX_CHANNELS][50]

interpolated exponents

Definition at line 174 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

int16_t AC3DecodeContext::mask[AC3_MAX_CHANNELS][50]

masking curve values

Definition at line 175 of file ac3dec.c.

Referenced by ac3_parse_audio_block().

for 512 sample IMDCT

Definition at line 180 of file ac3dec.c.

Referenced by ac3_decode_end(), ac3_decode_init(), and do_imdct().

for 256 sample IMDCT

Definition at line 181 of file ac3dec.c.

Referenced by ac3_decode_end(), ac3_decode_init(), and do_imdct_256().

for optimization

Definition at line 182 of file ac3dec.c.

Referenced by ac3_decode_init(), ac3_parse_audio_block(), and do_imdct().

offset for float_to_int16 conversion

Definition at line 183 of file ac3dec.c.

Referenced by ac3_decode_init(), and ac3_parse_audio_block().

scaling for float_to_int16 conversion

Definition at line 184 of file ac3dec.c.

Referenced by ac3_decode_init(), and ac3_parse_audio_block().

bitstream reader

Definition at line 194 of file ac3dec.c.

Referenced by ac3_decode_frame(), ac3_parse_audio_block(), ac3_parse_header(), and get_transform_coeffs_ch().

for dither generation

Definition at line 195 of file ac3dec.c.

Referenced by ac3_decode_init(), and get_transform_coeffs_ch().

parent context

Definition at line 196 of file ac3dec.c.

Referenced by ac3_decode_init(), ac3_parse_audio_block(), and get_transform_coeffs().


The documentation for this struct was generated from the following file:

Generated on Wed Feb 9 19:10:14 2011 for ffmpeg by  doxygen 1.5.6