AC3EncodeContext Struct Reference

AC-3 encoder private context. More...


Data Fields

PutBitContext pb
 bitstream writer context
DSPContext dsp
AC3DSPContext ac3dsp
 AC-3 optimized functions.
AC3MDCTContext mdct
 MDCT context.
AC3Block blocks [AC3_MAX_BLOCKS]
 per-block info
int bitstream_id
 bitstream id (bsid)
int bitstream_mode
 bitstream mode (bsmod)
int bit_rate
 target bit rate, in bits-per-second
int sample_rate
 sampling frequency, in Hz
int frame_size_min
 minimum frame size in case rounding is necessary
int frame_size
 current frame size in bytes
int frame_size_code
 frame size code (frmsizecod)
uint16_t crc_inv [2]
int bits_written
 bit count (used to avg. bitrate)
int samples_written
 sample count (used to avg. bitrate)
int fbw_channels
 number of full-bandwidth channels (nfchans)
int channels
 total number of channels (nchans)
int lfe_on
 indicates if there is an LFE channel (lfeon)
int lfe_channel
 channel index of the LFE channel
int channel_mode
 channel mode (acmod)
const uint8_t * channel_map
 channel map used to reorder channels
int cutoff
 user-specified cutoff frequency, in Hz
int bandwidth_code [AC3_MAX_CHANNELS]
 bandwidth code (0 to 60) (chbwcod)
int nb_coefs [AC3_MAX_CHANNELS]
int rematrixing
 determines how rematrixing strategy is calculated
int num_rematrixing_bands
 number of rematrixing bands
int slow_gain_code
 slow gain code (sgaincod)
int slow_decay_code
 slow decay code (sdcycod)
int fast_decay_code
 fast decay code (fdcycod)
int db_per_bit_code
 dB/bit code (dbpbcod)
int floor_code
 floor code (floorcod)
AC3BitAllocParameters bit_alloc
 bit allocation parameters
int coarse_snr_offset
 coarse SNR offsets (csnroffst)
int fast_gain_code [AC3_MAX_CHANNELS]
 fast gain codes (signal-to-mask ratio) (fgaincod)
int fine_snr_offset [AC3_MAX_CHANNELS]
 fine SNR offsets (fsnroffst)
int frame_bits_fixed
 number of non-coefficient bits for fixed parameters
int frame_bits
 all frame bits except exponents and mantissas
int exponent_bits
 number of bits used for exponents
int mant1_cnt
int mant2_cnt
int mant4_cnt
 mantissa counts for bap=1,2,4
uint16_t * qmant1_ptr
uint16_t * qmant2_ptr
uint16_t * qmant4_ptr
 mantissa pointers for bap=1,2,4
SampleType ** planar_samples
uint8_t * bap_buffer
uint8_t * bap1_buffer
CoefTypemdct_coef_buffer
int32_t * fixed_coef_buffer
uint8_t * exp_buffer
uint8_t * grouped_exp_buffer
int16_t * psd_buffer
int16_t * band_psd_buffer
int16_t * mask_buffer
uint16_t * qmant_buffer
uint8_t exp_strategy [AC3_MAX_CHANNELS][AC3_MAX_BLOCKS]
 exponent strategies


Detailed Description

AC-3 encoder private context.

Definition at line 89 of file ac3enc.c.


Field Documentation

bitstream writer context

Definition at line 90 of file ac3enc.c.

Referenced by output_audio_block(), output_frame(), output_frame_end(), and output_frame_header().

Definition at line 91 of file ac3enc.c.

Referenced by ac3_encode_init(), apply_mdct(), and compute_exp_strategy_ch().

AC-3 optimized functions.

Definition at line 92 of file ac3enc.c.

Referenced by ac3_encode_init(), encode_exponents(), and log2_tab().

MDCT context.

Definition at line 93 of file ac3enc.c.

Referenced by ac3_encode_close(), ac3_encode_init(), and apply_mdct().

bitstream id (bsid)

Definition at line 97 of file ac3enc.c.

Referenced by ac3_encode_init(), and output_frame_header().

bitstream mode (bsmod)

Definition at line 98 of file ac3enc.c.

Referenced by ac3_encode_init(), and output_frame_header().

target bit rate, in bits-per-second

Definition at line 100 of file ac3enc.c.

Referenced by adjust_frame_size(), and validate_options().

sampling frequency, in Hz

Definition at line 101 of file ac3enc.c.

Referenced by adjust_frame_size(), set_bandwidth(), and validate_options().

minimum frame size in case rounding is necessary

Definition at line 103 of file ac3enc.c.

Referenced by ac3_encode_init(), adjust_frame_size(), output_frame_end(), and output_frame_header().

current frame size in bytes

Definition at line 104 of file ac3enc.c.

Referenced by ac3_encode_frame(), ac3_encode_init(), adjust_frame_size(), cbr_bit_allocation(), output_frame_end(), and output_frame_header().

frame size code (frmsizecod)

Definition at line 105 of file ac3enc.c.

Referenced by ac3_encode_init(), output_frame_header(), and validate_options().

Definition at line 106 of file ac3enc.c.

Referenced by ac3_encode_init(), and output_frame_end().

bit count (used to avg. bitrate)

Definition at line 107 of file ac3enc.c.

Referenced by ac3_encode_init(), and adjust_frame_size().

sample count (used to avg. bitrate)

Definition at line 108 of file ac3enc.c.

Referenced by ac3_encode_init(), and adjust_frame_size().

indicates if there is an LFE channel (lfeon)

Definition at line 112 of file ac3enc.c.

Referenced by compute_exp_strategy(), count_frame_bits_fixed(), output_audio_block(), output_frame_header(), set_bandwidth(), and set_channel_info().

channel index of the LFE channel

Definition at line 113 of file ac3enc.c.

Referenced by bit_alloc_masking(), compute_exp_strategy(), output_audio_block(), set_bandwidth(), and set_channel_info().

channel map used to reorder channels

Definition at line 115 of file ac3enc.c.

Referenced by deinterleave_input_samples(), and set_channel_info().

user-specified cutoff frequency, in Hz

Definition at line 117 of file ac3enc.c.

Referenced by compute_bit_allocation(), set_bandwidth(), and validate_options().

int AC3EncodeContext::bandwidth_code[AC3_MAX_CHANNELS]

bandwidth code (0 to 60) (chbwcod)

Definition at line 118 of file ac3enc.c.

Referenced by output_audio_block(), reduce_bandwidth(), and set_bandwidth().

int AC3EncodeContext::nb_coefs[AC3_MAX_CHANNELS]

determines how rematrixing strategy is calculated

Definition at line 121 of file ac3enc.c.

Referenced by apply_rematrixing(), compute_rematrixing_strategy(), and rematrixing_init().

number of rematrixing bands

Definition at line 122 of file ac3enc.c.

Referenced by apply_rematrixing(), compute_rematrixing_strategy(), count_frame_bits(), and output_audio_block().

slow gain code (sgaincod)

Definition at line 125 of file ac3enc.c.

Referenced by bit_alloc_init(), and output_audio_block().

slow decay code (sdcycod)

Definition at line 126 of file ac3enc.c.

Referenced by bit_alloc_init(), and output_audio_block().

fast decay code (fdcycod)

Definition at line 127 of file ac3enc.c.

Referenced by bit_alloc_init(), and output_audio_block().

dB/bit code (dbpbcod)

Definition at line 128 of file ac3enc.c.

Referenced by bit_alloc_init(), and output_audio_block().

floor code (floorcod)

Definition at line 129 of file ac3enc.c.

Referenced by bit_alloc_init(), and output_audio_block().

bit allocation parameters

Definition at line 130 of file ac3enc.c.

Referenced by ac3_encode_frame(), ac3_encode_init(), bit_alloc(), bit_alloc_init(), bit_alloc_masking(), output_frame_header(), and validate_options().

coarse SNR offsets (csnroffst)

Definition at line 131 of file ac3enc.c.

Referenced by bit_alloc_init(), cbr_bit_allocation(), and output_audio_block().

int AC3EncodeContext::fast_gain_code[AC3_MAX_CHANNELS]

fast gain codes (signal-to-mask ratio) (fgaincod)

Definition at line 132 of file ac3enc.c.

Referenced by bit_alloc_init(), bit_alloc_masking(), and output_audio_block().

int AC3EncodeContext::fine_snr_offset[AC3_MAX_CHANNELS]

fine SNR offsets (fsnroffst)

Definition at line 133 of file ac3enc.c.

Referenced by cbr_bit_allocation(), and output_audio_block().

number of non-coefficient bits for fixed parameters

Definition at line 134 of file ac3enc.c.

Referenced by count_frame_bits(), and count_frame_bits_fixed().

all frame bits except exponents and mantissas

Definition at line 135 of file ac3enc.c.

Referenced by cbr_bit_allocation(), and count_frame_bits().

number of bits used for exponents

Definition at line 136 of file ac3enc.c.

Referenced by cbr_bit_allocation(), and group_exponents().

Definition at line 139 of file ac3enc.c.

Referenced by quantize_mantissas(), and quantize_mantissas_blk_ch().

Definition at line 139 of file ac3enc.c.

Referenced by quantize_mantissas(), and quantize_mantissas_blk_ch().

mantissa counts for bap=1,2,4

Definition at line 139 of file ac3enc.c.

Referenced by quantize_mantissas(), and quantize_mantissas_blk_ch().

Definition at line 140 of file ac3enc.c.

Referenced by quantize_mantissas(), and quantize_mantissas_blk_ch().

Definition at line 140 of file ac3enc.c.

Referenced by quantize_mantissas(), and quantize_mantissas_blk_ch().

mantissa pointers for bap=1,2,4

Definition at line 140 of file ac3enc.c.

Referenced by quantize_mantissas(), and quantize_mantissas_blk_ch().

Definition at line 143 of file ac3enc.c.

Referenced by ac3_encode_close(), allocate_buffers(), cbr_bit_allocation(), and reset_block_bap().

Definition at line 144 of file ac3enc.c.

Referenced by ac3_encode_close(), allocate_buffers(), and cbr_bit_allocation().

Definition at line 145 of file ac3enc.c.

Referenced by ac3_encode_close(), allocate_buffers(), and scale_coefficients().

Definition at line 146 of file ac3enc.c.

Referenced by ac3_encode_close(), allocate_buffers(), and scale_coefficients().

Definition at line 147 of file ac3enc.c.

Referenced by ac3_encode_close(), and allocate_buffers().

Definition at line 148 of file ac3enc.c.

Referenced by ac3_encode_close(), and allocate_buffers().

Definition at line 149 of file ac3enc.c.

Referenced by ac3_encode_close(), and allocate_buffers().

Definition at line 150 of file ac3enc.c.

Referenced by ac3_encode_close(), and allocate_buffers().

Definition at line 151 of file ac3enc.c.

Referenced by ac3_encode_close(), and allocate_buffers().

Definition at line 152 of file ac3enc.c.

Referenced by ac3_encode_close(), and allocate_buffers().

uint8_t AC3EncodeContext::exp_strategy[AC3_MAX_CHANNELS][AC3_MAX_BLOCKS]


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

Generated on Mon May 2 19:50:32 2011 for FFmpeg by  doxygen 1.5.6