AC-3 encoder private context. More...
#include <ac3enc.h>
encoding options
Definition at line 164 of file ac3enc.h.
Referenced by ac3_output_frame_header(), count_frame_bits(), dprint_options(), encode_frame(), ff_ac3_validate_metadata(), ff_eac3_output_frame_header(), set_bandwidth(), and validate_options().
parent AVCodecContext
Definition at line 165 of file ac3enc.h.
Referenced by allocate_buffers(), dprint_options(), encode_frame(), ff_ac3_encode_init(), ff_ac3_float_mdct_init(), ff_ac3_validate_metadata(), ff_eac3_output_frame_header(), and validate_options().
bitstream writer context
Definition at line 166 of file ac3enc.h.
Referenced by ac3_output_frame_header(), ff_ac3_output_frame(), ff_eac3_output_frame_header(), output_audio_block(), and output_frame_end().
Definition at line 167 of file ac3enc.h.
Referenced by apply_channel_coupling(), encode_frame(), and ff_ac3_encode_init().
Definition at line 168 of file ac3enc.h.
Referenced by apply_mdct(), ff_ac3_encode_close(), and ff_ac3_float_encode_init().
Definition at line 169 of file ac3enc.h.
Referenced by compute_exp_strategy(), and ff_ac3_encode_init().
AC-3 optimized functions.
Definition at line 170 of file ac3enc.h.
Referenced by apply_channel_coupling(), apply_mdct(), bit_alloc(), count_mantissa_bits(), count_mantissa_bits_update_ch(), encode_exponents(), extract_exponents(), ff_ac3_encode_init(), normalize_samples(), scale_coefficients(), and sum_square_butterfly().
FFT context for MDCT calculation.
Definition at line 171 of file ac3enc.h.
Referenced by apply_mdct(), ff_ac3_float_mdct_end(), and ff_ac3_float_mdct_init().
MDCT window function array.
Definition at line 172 of file ac3enc.h.
Referenced by apply_mdct(), ff_ac3_float_mdct_end(), and ff_ac3_float_mdct_init().
per-block info
Definition at line 174 of file ac3enc.h.
Referenced by allocate_buffers(), apply_channel_coupling(), apply_mdct(), bit_alloc(), bit_alloc_masking(), compute_exp_strategy(), compute_rematrixing_strategy(), count_exponent_bits(), count_frame_bits(), count_mantissa_bits_update_ch(), encode_exponents(), encode_frame(), extract_exponents(), ff_ac3_apply_rematrixing(), ff_ac3_compute_coupling_strategy(), ff_ac3_encode_close(), ff_ac3_group_exponents(), ff_ac3_quantize_mantissas(), ff_eac3_output_frame_header(), ff_eac3_set_cpl_states(), output_audio_block(), scale_coefficients(), and set_bandwidth().
indicates if fixed-point encoder is being used
Definition at line 176 of file ac3enc.h.
Referenced by ac3_fixed_encode_init(), allocate_buffers(), apply_mdct(), encode_frame(), and ff_ac3_encode_init().
indicates if this is E-AC-3 vs. AC-3
Definition at line 177 of file ac3enc.h.
Referenced by apply_channel_coupling(), bit_alloc_init(), compute_exp_strategy(), count_frame_bits(), count_frame_bits_fixed(), encode_frame(), exponent_init(), ff_ac3_encode_init(), ff_ac3_validate_metadata(), output_audio_block(), output_frame_end(), and validate_options().
bitstream id (bsid)
Definition at line 178 of file ac3enc.h.
Referenced by ac3_output_frame_header(), count_frame_bits(), dprint_options(), ff_ac3_validate_metadata(), ff_eac3_output_frame_header(), and validate_options().
bitstream mode (bsmod)
Definition at line 179 of file ac3enc.h.
Referenced by ac3_output_frame_header(), ff_ac3_encode_init(), and ff_eac3_output_frame_header().
target bit rate, in bits-per-second
Definition at line 181 of file ac3enc.h.
Referenced by dprint_options(), ff_ac3_adjust_frame_size(), and validate_options().
sampling frequency, in Hz
Definition at line 182 of file ac3enc.h.
Referenced by dprint_options(), ff_ac3_adjust_frame_size(), set_bandwidth(), and validate_options().
number of blocks code (numblkscod)
Definition at line 184 of file ac3enc.h.
Referenced by compute_exp_strategy(), count_frame_bits_fixed(), dprint_options(), ff_eac3_output_frame_header(), and validate_options().
number of blocks per frame
Definition at line 185 of file ac3enc.h.
Referenced by allocate_buffers(), apply_channel_coupling(), apply_mdct(), bit_alloc(), bit_alloc_masking(), compute_exp_strategy(), compute_rematrixing_strategy(), copy_input_samples(), count_exponent_bits(), count_frame_bits(), count_frame_bits_fixed(), count_mantissa_bits_update_ch(), dprint_options(), encode_frame(), extract_exponents(), ff_ac3_adjust_frame_size(), ff_ac3_apply_rematrixing(), ff_ac3_compute_coupling_strategy(), ff_ac3_encode_close(), ff_ac3_encode_init(), ff_ac3_group_exponents(), ff_ac3_output_frame(), ff_ac3_quantize_mantissas(), ff_eac3_get_frame_exp_strategy(), ff_eac3_output_frame_header(), ff_eac3_set_cpl_states(), reset_block_bap(), scale_coefficients(), set_bandwidth(), and validate_options().
minimum frame size in case rounding is necessary
Definition at line 186 of file ac3enc.h.
Referenced by ac3_output_frame_header(), ff_ac3_adjust_frame_size(), output_frame_end(), and validate_options().
current frame size in bytes
Definition at line 187 of file ac3enc.h.
Referenced by ac3_output_frame_header(), cbr_bit_allocation(), encode_frame(), ff_ac3_adjust_frame_size(), ff_ac3_encode_init(), ff_eac3_output_frame_header(), output_frame_end(), and validate_options().
frame size code (frmsizecod)
Definition at line 188 of file ac3enc.h.
Referenced by ac3_output_frame_header(), set_bandwidth(), and validate_options().
Definition at line 189 of file ac3enc.h.
Referenced by ff_ac3_encode_init(), and output_frame_end().
bit count (used to avg. bitrate)
Definition at line 190 of file ac3enc.h.
Referenced by ff_ac3_adjust_frame_size(), and ff_ac3_encode_init().
sample count (used to avg. bitrate)
Definition at line 191 of file ac3enc.h.
Referenced by ff_ac3_adjust_frame_size(), and ff_ac3_encode_init().
number of full-bandwidth channels (nfchans)
Definition at line 193 of file ac3enc.h.
Referenced by apply_channel_coupling(), count_frame_bits(), count_frame_bits_fixed(), ff_ac3_compute_coupling_strategy(), ff_eac3_output_frame_header(), ff_eac3_set_cpl_states(), output_audio_block(), set_bandwidth(), set_channel_info(), and validate_options().
total number of channels (nchans)
Definition at line 194 of file ac3enc.h.
Referenced by allocate_buffers(), apply_mdct(), bit_alloc_init(), copy_input_samples(), count_frame_bits(), dprint_options(), encode_frame(), extract_exponents(), ff_ac3_encode_close(), ff_ac3_quantize_mantissas(), output_audio_block(), reset_block_bap(), scale_coefficients(), and set_channel_info().
indicates if there is an LFE channel (lfeon)
Definition at line 195 of file ac3enc.h.
Referenced by ac3_output_frame_header(), compute_exp_strategy(), count_frame_bits(), count_frame_bits_fixed(), ff_eac3_output_frame_header(), output_audio_block(), set_bandwidth(), and set_channel_info().
channel index of the LFE channel
Definition at line 196 of file ac3enc.h.
Referenced by bit_alloc_masking(), compute_exp_strategy(), ff_eac3_output_frame_header(), output_audio_block(), set_bandwidth(), and set_channel_info().
indicates if there is a center channel
Definition at line 197 of file ac3enc.h.
Referenced by count_frame_bits(), dprint_options(), ff_ac3_validate_metadata(), ff_eac3_output_frame_header(), and set_channel_info().
indicates if there are one or more surround channels
Definition at line 198 of file ac3enc.h.
Referenced by count_frame_bits(), dprint_options(), ff_ac3_validate_metadata(), ff_eac3_output_frame_header(), and set_channel_info().
channel mode (acmod)
Definition at line 199 of file ac3enc.h.
Referenced by ac3_output_frame_header(), compute_rematrixing_strategy(), count_frame_bits(), count_frame_bits_fixed(), dprint_options(), ff_ac3_validate_metadata(), ff_eac3_output_frame_header(), output_audio_block(), set_bandwidth(), set_channel_info(), and validate_options().
channel map used to reorder channels
Definition at line 200 of file ac3enc.h.
Referenced by copy_input_samples(), and set_channel_info().
center mix level code
Definition at line 202 of file ac3enc.h.
Referenced by ac3_output_frame_header(), dprint_options(), and ff_ac3_validate_metadata().
surround mix level code
Definition at line 203 of file ac3enc.h.
Referenced by ac3_output_frame_header(), dprint_options(), and ff_ac3_validate_metadata().
Lt/Rt center mix level code.
Definition at line 204 of file ac3enc.h.
Referenced by ac3_output_frame_header(), dprint_options(), ff_ac3_validate_metadata(), and ff_eac3_output_frame_header().
Lt/Rt surround mix level code.
Definition at line 205 of file ac3enc.h.
Referenced by ac3_output_frame_header(), dprint_options(), ff_ac3_validate_metadata(), and ff_eac3_output_frame_header().
Lo/Ro center mix level code.
Definition at line 206 of file ac3enc.h.
Referenced by ac3_output_frame_header(), dprint_options(), ff_ac3_validate_metadata(), and ff_eac3_output_frame_header().
Lo/Ro surround mix level code.
Definition at line 207 of file ac3enc.h.
Referenced by ac3_output_frame_header(), dprint_options(), ff_ac3_validate_metadata(), and ff_eac3_output_frame_header().
user-specified cutoff frequency, in Hz
Definition at line 209 of file ac3enc.h.
Referenced by dprint_options(), set_bandwidth(), and validate_options().
bandwidth code (0 to 60) (chbwcod)
Definition at line 210 of file ac3enc.h.
Referenced by count_mantissa_bits(), ff_ac3_compute_coupling_strategy(), output_audio_block(), and set_bandwidth().
start frequency bin (strtmant)
Definition at line 211 of file ac3enc.h.
Referenced by apply_channel_coupling(), bit_alloc(), bit_alloc_masking(), compute_exp_strategy(), compute_rematrixing_strategy(), count_exponent_bits(), count_mantissa_bits(), encode_exponents(), ff_ac3_compute_coupling_strategy(), ff_ac3_group_exponents(), ff_ac3_quantize_mantissas(), output_audio_block(), and set_bandwidth().
coupling channel end frequency bin
Definition at line 212 of file ac3enc.h.
Referenced by apply_channel_coupling(), output_audio_block(), and set_bandwidth().
coupling turned on for this frame
Definition at line 214 of file ac3enc.h.
Referenced by cbr_bit_allocation(), compute_exp_strategy(), count_frame_bits(), encode_exponents(), encode_frame(), extract_exponents(), ff_ac3_compute_coupling_strategy(), ff_eac3_get_frame_exp_strategy(), ff_eac3_output_frame_header(), and scale_coefficients().
coupling enabled for all frames
Definition at line 215 of file ac3enc.h.
Referenced by allocate_buffers(), count_mantissa_bits(), encode_frame(), set_bandwidth(), and validate_options().
number of coupling subbands (ncplsubnd)
Definition at line 216 of file ac3enc.h.
Referenced by apply_channel_coupling(), count_frame_bits(), and set_bandwidth().
number of coupling bands (ncplbnd)
Definition at line 217 of file ac3enc.h.
Referenced by apply_channel_coupling(), count_frame_bits(), output_audio_block(), and set_bandwidth().
number of coeffs in each coupling band
Definition at line 218 of file ac3enc.h.
Referenced by apply_channel_coupling(), and set_bandwidth().
stereo rematrixing enabled
Definition at line 220 of file ac3enc.h.
Referenced by compute_rematrixing_strategy(), ff_ac3_apply_rematrixing(), and validate_options().
slow gain code (sgaincod)
Definition at line 223 of file ac3enc.h.
Referenced by bit_alloc_init(), and output_audio_block().
slow decay code (sdcycod)
Definition at line 224 of file ac3enc.h.
Referenced by bit_alloc_init(), and output_audio_block().
fast decay code (fdcycod)
Definition at line 225 of file ac3enc.h.
Referenced by bit_alloc_init(), and output_audio_block().
dB/bit code (dbpbcod)
Definition at line 226 of file ac3enc.h.
Referenced by bit_alloc_init(), and output_audio_block().
floor code (floorcod)
Definition at line 227 of file ac3enc.h.
Referenced by bit_alloc_init(), and output_audio_block().
bit allocation parameters
Definition at line 228 of file ac3enc.h.
Referenced by ac3_output_frame_header(), bit_alloc(), bit_alloc_init(), bit_alloc_masking(), encode_frame(), ff_ac3_encode_init(), ff_eac3_output_frame_header(), output_audio_block(), set_bandwidth(), and validate_options().
coarse SNR offsets (csnroffst)
Definition at line 229 of file ac3enc.h.
Referenced by bit_alloc_init(), cbr_bit_allocation(), ff_eac3_output_frame_header(), and output_audio_block().
fast gain codes (signal-to-mask ratio) (fgaincod)
Definition at line 230 of file ac3enc.h.
Referenced by bit_alloc_init(), bit_alloc_masking(), and output_audio_block().
fine SNR offsets (fsnroffst)
Definition at line 231 of file ac3enc.h.
Referenced by cbr_bit_allocation(), ff_eac3_output_frame_header(), and output_audio_block().
number of non-coefficient bits for fixed parameters
Definition at line 232 of file ac3enc.h.
Referenced by count_frame_bits(), and count_frame_bits_fixed().
all frame bits except exponents and mantissas
Definition at line 233 of file ac3enc.h.
Referenced by cbr_bit_allocation(), and count_frame_bits().
number of bits used for exponents
Definition at line 234 of file ac3enc.h.
Referenced by cbr_bit_allocation(), and ff_ac3_compute_bit_allocation().
Definition at line 236 of file ac3enc.h.
Referenced by apply_mdct(), ff_ac3_encode_close(), and normalize_samples().
Definition at line 237 of file ac3enc.h.
Referenced by apply_mdct(), copy_input_samples(), and ff_ac3_encode_close().
Definition at line 238 of file ac3enc.h.
Referenced by allocate_buffers(), cbr_bit_allocation(), ff_ac3_encode_close(), and reset_block_bap().
Definition at line 239 of file ac3enc.h.
Referenced by allocate_buffers(), cbr_bit_allocation(), and ff_ac3_encode_close().
Definition at line 240 of file ac3enc.h.
Referenced by allocate_buffers(), ff_ac3_encode_close(), and scale_coefficients().
Definition at line 241 of file ac3enc.h.
Referenced by allocate_buffers(), ff_ac3_encode_close(), and scale_coefficients().
Definition at line 242 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 243 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 244 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 245 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 246 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 247 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 248 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
Definition at line 249 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_close().
exponent strategies
Definition at line 251 of file ac3enc.h.
Referenced by bit_alloc(), bit_alloc_masking(), compute_exp_strategy(), count_exponent_bits(), count_frame_bits(), encode_exponents(), ff_ac3_group_exponents(), ff_eac3_get_frame_exp_strategy(), ff_eac3_output_frame_header(), and output_audio_block().
frame exp strategy index
Definition at line 252 of file ac3enc.h.
Referenced by ff_eac3_get_frame_exp_strategy(), and ff_eac3_output_frame_header().
indicates use of frame exp strategy
Definition at line 253 of file ac3enc.h.
Referenced by count_frame_bits(), count_frame_bits_fixed(), ff_eac3_get_frame_exp_strategy(), and ff_eac3_output_frame_header().
reference blocks for EXP_REUSE
Definition at line 254 of file ac3enc.h.
Referenced by encode_exponents(), ff_ac3_quantize_mantissas(), and reset_block_bap().
bit allocation pointers (bap)
Definition at line 255 of file ac3enc.h.
Referenced by bit_alloc(), count_mantissa_bits_update_ch(), ff_ac3_quantize_mantissas(), output_audio_block(), and reset_block_bap().
indicates if ref_bap pointers have been set
Definition at line 256 of file ac3enc.h.
Referenced by encode_exponents(), and reset_block_bap().
Definition at line 259 of file ac3enc.h.
Referenced by ff_ac3_encode_close(), and ff_ac3_encode_init().
Definition at line 260 of file ac3enc.h.
Referenced by ff_ac3_encode_init().
Definition at line 263 of file ac3enc.h.
Referenced by allocate_buffers(), and ff_ac3_encode_init().
Definition at line 266 of file ac3enc.h.
Referenced by ff_ac3_encode_init(), and ff_ac3_output_frame().