FFmpeg
Public Attributes | List of all members
AC3EncodeContext Struct Reference

AC-3 encoder private context. More...

#include <ac3enc.h>

Public Attributes

AVClassav_class
 AVClass used for AVOption.
 
AC3EncOptions options
 encoding options
 
AVCodecContextavctx
 parent AVCodecContext
 
PutBitContext pb
 bitstream writer context
 
AudioDSPContext adsp
 
AVFloatDSPContextfdsp
 
MECmpContext mecc
 
AC3DSPContext ac3dsp
 AC-3 optimized functions.
 
FFTContext mdct
 FFT context for MDCT calculation.
 
const SampleType * mdct_window
 MDCT window function array.
 
AC3Block blocks [AC3_MAX_BLOCKS]
 per-block info
 
int fixed_point
 indicates if fixed-point encoder is being used
 
int eac3
 indicates if this is E-AC-3 vs. AC-3
 
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 num_blks_code
 number of blocks code (numblkscod)
 
int num_blocks
 number of blocks per frame
 
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]
 
int64_t bits_written
 bit count (used to avg. bitrate)
 
int64_t 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 has_center
 indicates if there is a center channel
 
int has_surround
 indicates if there are one or more surround channels
 
int channel_mode
 channel mode (acmod)
 
const uint8_t * channel_map
 channel map used to reorder channels
 
int center_mix_level
 center mix level code
 
int surround_mix_level
 surround mix level code
 
int ltrt_center_mix_level
 Lt/Rt center mix level code.
 
int ltrt_surround_mix_level
 Lt/Rt surround mix level code.
 
int loro_center_mix_level
 Lo/Ro center mix level code.
 
int loro_surround_mix_level
 Lo/Ro surround mix level code.
 
int cutoff
 user-specified cutoff frequency, in Hz
 
int bandwidth_code
 bandwidth code (0 to 60) (chbwcod)
 
int start_freq [AC3_MAX_CHANNELS]
 start frequency bin (strtmant)
 
int cpl_end_freq
 coupling channel end frequency bin
 
int cpl_on
 coupling turned on for this frame
 
int cpl_enabled
 coupling enabled for all frames
 
int num_cpl_subbands
 number of coupling subbands (ncplsubnd)
 
int num_cpl_bands
 number of coupling bands (ncplbnd)
 
uint8_t cpl_band_sizes [AC3_MAX_CPL_BANDS]
 number of coeffs in each coupling band
 
int rematrixing_enabled
 stereo rematrixing enabled
 
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
 
SampleType * windowed_samples
 
SampleType ** planar_samples
 
uint8_t * bap_buffer
 
uint8_t * bap1_buffer
 
CoefType * mdct_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
 
int16_t * qmant_buffer
 
uint8_t * cpl_coord_exp_buffer
 
uint8_t * cpl_coord_mant_buffer
 
uint8_t exp_strategy [AC3_MAX_CHANNELS][AC3_MAX_BLOCKS]
 exponent strategies
 
uint8_t frame_exp_strategy [AC3_MAX_CHANNELS]
 frame exp strategy index
 
int use_frame_exp_strategy
 indicates use of frame exp strategy
 
uint8_t exp_ref_block [AC3_MAX_CHANNELS][AC3_MAX_BLOCKS]
 reference blocks for EXP_REUSE
 
uint8_t * ref_bap [AC3_MAX_CHANNELS][AC3_MAX_BLOCKS]
 bit allocation pointers (bap)
 
int ref_bap_set
 indicates if ref_bap pointers have been set
 
void(* mdct_end )(struct AC3EncodeContext *s)
 
int(* mdct_init )(struct AC3EncodeContext *s)
 
int(* allocate_sample_buffers )(struct AC3EncodeContext *s)
 
void(* output_frame_header )(struct AC3EncodeContext *s)
 

Detailed Description

AC-3 encoder private context.


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