|
FFmpeg
|
AC-3 encoder private context. More...
#include <ac3enc.h>
Data Fields | ||
| AVClass * | av_class | |
| AVClass used for AVOption. | ||
| AC3EncOptions | options | |
| encoding options | ||
| AVCodecContext * | avctx | |
| parent AVCodecContext | ||
| AudioDSPContext | adsp | |
| AVFixedDSPContext * | fdsp | |
| MECmpContext | mecc | |
| AC3DSPContext | ac3dsp | |
| AC-3 optimized functions. | ||
| AVTXContext * | tx | |
| FFT context for MDCT calculation. | ||
| av_tx_fn | tx_fn | |
| 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 | ||
| uint8_t * | planar_samples [AC3_MAX_CHANNELS - 1] | |
| uint8_t * | input_samples [AC3_MAX_CHANNELS - 1] | |
| 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_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 | ||
| AudioFrameQueue | afq | |
| void(* | encode_frame )(struct AC3EncodeContext *s, const AVFrame *frame) | |
| fixed vs. | ||
| void(* | output_frame_header )(struct AC3EncodeContext *s, struct PutBitContext *pb) | |
| union { | ||
| float mdct_window_float [AC3_BLOCK_SIZE] | ||
| int32_t mdct_window_fixed [AC3_BLOCK_SIZE] | ||
| }; | ||
| union { | ||
| float windowed_samples_float [AC3_WINDOW_SIZE] | ||
| int32_t windowed_samples_fixed [AC3_WINDOW_SIZE] | ||
| }; | ||
| AVClass* AC3EncodeContext::av_class |
| AC3EncOptions AC3EncodeContext::options |
| AVCodecContext* AC3EncodeContext::avctx |
parent AVCodecContext
| AudioDSPContext AC3EncodeContext::adsp |
| AVFixedDSPContext* AC3EncodeContext::fdsp |
| MECmpContext AC3EncodeContext::mecc |
| AC3DSPContext AC3EncodeContext::ac3dsp |
| AVTXContext* AC3EncodeContext::tx |
| AC3Block AC3EncodeContext::blocks[AC3_MAX_BLOCKS] |
| int AC3EncodeContext::fixed_point |
| int AC3EncodeContext::eac3 |
| int AC3EncodeContext::bitstream_mode |
| int AC3EncodeContext::bit_rate |
| int AC3EncodeContext::sample_rate |
| int AC3EncodeContext::num_blks_code |
| int AC3EncodeContext::num_blocks |
| int AC3EncodeContext::frame_size_min |
| int AC3EncodeContext::frame_size |
| int AC3EncodeContext::frame_size_code |
| int64_t AC3EncodeContext::bits_written |
| int64_t AC3EncodeContext::samples_written |
| int AC3EncodeContext::fbw_channels |
| int AC3EncodeContext::channels |
| int AC3EncodeContext::lfe_on |
| int AC3EncodeContext::lfe_channel |
| int AC3EncodeContext::has_center |
| int AC3EncodeContext::has_surround |
| const uint8_t* AC3EncodeContext::channel_map |
| int AC3EncodeContext::center_mix_level |
| int AC3EncodeContext::surround_mix_level |
| int AC3EncodeContext::ltrt_center_mix_level |
| int AC3EncodeContext::ltrt_surround_mix_level |
| int AC3EncodeContext::loro_center_mix_level |
| int AC3EncodeContext::loro_surround_mix_level |
| int AC3EncodeContext::cutoff |
| int AC3EncodeContext::bandwidth_code |
| int AC3EncodeContext::start_freq[AC3_MAX_CHANNELS] |
| int AC3EncodeContext::cpl_end_freq |
| int AC3EncodeContext::cpl_on |
| int AC3EncodeContext::cpl_enabled |
| int AC3EncodeContext::num_cpl_subbands |
| int AC3EncodeContext::num_cpl_bands |
| uint8_t AC3EncodeContext::cpl_band_sizes[AC3_MAX_CPL_BANDS] |
| int AC3EncodeContext::rematrixing_enabled |
| int AC3EncodeContext::slow_gain_code |
| int AC3EncodeContext::slow_decay_code |
| int AC3EncodeContext::fast_decay_code |
| int AC3EncodeContext::db_per_bit_code |
| AC3BitAllocParameters AC3EncodeContext::bit_alloc |
| int AC3EncodeContext::coarse_snr_offset |
| int AC3EncodeContext::fast_gain_code[AC3_MAX_CHANNELS] |
| int AC3EncodeContext::fine_snr_offset[AC3_MAX_CHANNELS] |
| int AC3EncodeContext::frame_bits_fixed |
| int AC3EncodeContext::frame_bits |
| int AC3EncodeContext::exponent_bits |
| uint8_t* AC3EncodeContext::planar_samples[AC3_MAX_CHANNELS - 1] |
| uint8_t* AC3EncodeContext::input_samples[AC3_MAX_CHANNELS - 1] |
| uint8_t AC3EncodeContext::exp_strategy[AC3_MAX_CHANNELS][AC3_MAX_BLOCKS] |
| uint8_t AC3EncodeContext::frame_exp_strategy[AC3_MAX_CHANNELS] |
| int AC3EncodeContext::use_frame_exp_strategy |
| uint8_t AC3EncodeContext::exp_ref_block[AC3_MAX_CHANNELS][AC3_MAX_BLOCKS] |
| uint8_t* AC3EncodeContext::ref_bap[AC3_MAX_CHANNELS][AC3_MAX_BLOCKS] |
| int AC3EncodeContext::ref_bap_set |
| AudioFrameQueue AC3EncodeContext::afq |
| void(* AC3EncodeContext::encode_frame) (struct AC3EncodeContext *s, const AVFrame *frame) |
| void(* AC3EncodeContext::output_frame_header) (struct AC3EncodeContext *s, struct PutBitContext *pb) |
| float AC3EncodeContext::mdct_window_float[AC3_BLOCK_SIZE] |
| int32_t AC3EncodeContext::mdct_window_fixed[AC3_BLOCK_SIZE] |
| union { ... } AC3EncodeContext |
| float AC3EncodeContext::windowed_samples_float[AC3_WINDOW_SIZE] |
| int32_t AC3EncodeContext::windowed_samples_fixed[AC3_WINDOW_SIZE] |
| union { ... } AC3EncodeContext |