FFmpeg  4.0
Data Fields
AACEncContext Struct Reference

AAC encoder context. More...

#include <libavcodec/aacenc.h>

Data Fields

AVClassav_class
 
AACEncOptions options
 encoding options More...
 
PutBitContext pb
 
FFTContext mdct1024
 long (1024 samples) frame transform context More...
 
FFTContext mdct128
 short (128 samples) frame transform context More...
 
AVFloatDSPContextfdsp
 
AACPCEInfo pce
 PCE data, if needed. More...
 
float * planar_samples [16]
 saved preprocessed input More...
 
int profile
 copied from avctx More...
 
int needs_pce
 flag for non-standard layout More...
 
LPCContext lpc
 used by TNS More...
 
int samplerate_index
 MPEG-4 samplerate index. More...
 
int channels
 channel count More...
 
const uint8_treorder_map
 lavc to aac reorder map More...
 
const uint8_tchan_map
 channel configuration map More...
 
ChannelElementcpe
 channel elements More...
 
FFPsyContext psy
 
struct FFPsyPreprocessContextpsypp
 
const AACCoefficientsEncodercoder
 
int cur_channel
 current channel for coder context More...
 
int random_state
 
float lambda
 
int last_frame_pb_count
 number of bits for the previous frame More...
 
float lambda_sum
 sum(lambda), for Qvg reporting More...
 
int lambda_count
 count(lambda), for Qvg reporting More...
 
enum RawDataBlockType cur_type
 channel group type cur_channel belongs to More...
 
AudioFrameQueue afq
 
int qcoefs [96]
 quantized coefficients More...
 
float scoefs [1024]
 scaled coefficients More...
 
uint16_t quantize_band_cost_cache_generation
 
AACQuantizeBandCostCacheEntry quantize_band_cost_cache [256][128]
 memoization area for quantize_band_cost More...
 
void(* abs_pow34 )(float *out, const float *in, const int size)
 
void(* quant_bands )(int *out, const float *in, const float *scaled, int size, int is_signed, int maxval, const float Q34, const float rounding)
 
struct {
   float *   samples
 
buffer
 

Detailed Description

AAC encoder context.

Definition at line 376 of file aacenc.h.

Field Documentation

◆ av_class

AVClass* AACEncContext::av_class

Definition at line 377 of file aacenc.h.

◆ options

AACEncOptions AACEncContext::options

encoding options

Definition at line 378 of file aacenc.h.

Referenced by aac_encode_frame(), aac_encode_init(), ff_aac_coder_init_mips(), and search_for_quantizers_twoloop().

◆ pb

PutBitContext AACEncContext::pb

◆ mdct1024

FFTContext AACEncContext::mdct1024

long (1024 samples) frame transform context

Definition at line 380 of file aacenc.h.

Referenced by aac_encode_end(), aac_encode_frame(), apply_window_and_mdct(), and dsp_init().

◆ mdct128

FFTContext AACEncContext::mdct128

short (128 samples) frame transform context

Definition at line 381 of file aacenc.h.

Referenced by aac_encode_end(), apply_window_and_mdct(), and dsp_init().

◆ fdsp

AVFloatDSPContext* AACEncContext::fdsp

◆ pce

AACPCEInfo AACEncContext::pce

PCE data, if needed.

Definition at line 383 of file aacenc.h.

Referenced by aac_encode_init(), and put_pce().

◆ planar_samples

float* AACEncContext::planar_samples[16]

saved preprocessed input

Definition at line 384 of file aacenc.h.

Referenced by aac_encode_frame(), alloc_buffers(), copy_input_samples(), ff_aac_ltp_insert_new_frame(), and ff_aac_update_ltp().

◆ profile

int AACEncContext::profile

◆ needs_pce

int AACEncContext::needs_pce

flag for non-standard layout

Definition at line 387 of file aacenc.h.

Referenced by aac_encode_init(), and put_audio_specific_config().

◆ lpc

LPCContext AACEncContext::lpc

used by TNS

Definition at line 388 of file aacenc.h.

Referenced by aac_encode_end(), aac_encode_init(), ff_aac_apply_tns(), and ff_aac_search_for_tns().

◆ samplerate_index

int AACEncContext::samplerate_index

◆ channels

int AACEncContext::channels

channel count

Definition at line 390 of file aacenc.h.

Referenced by aac_encode_frame(), aac_encode_init(), alloc_buffers(), copy_input_samples(), and put_audio_specific_config().

◆ reorder_map

const uint8_t* AACEncContext::reorder_map

lavc to aac reorder map

Definition at line 391 of file aacenc.h.

Referenced by aac_encode_init(), and copy_input_samples().

◆ chan_map

const uint8_t* AACEncContext::chan_map

channel configuration map

Definition at line 392 of file aacenc.h.

Referenced by aac_encode_frame(), aac_encode_init(), alloc_buffers(), and ff_aac_ltp_insert_new_frame().

◆ cpe

ChannelElement* AACEncContext::cpe

channel elements

Definition at line 394 of file aacenc.h.

Referenced by aac_encode_end(), aac_encode_frame(), alloc_buffers(), and ff_aac_ltp_insert_new_frame().

◆ psy

FFPsyContext AACEncContext::psy

◆ psypp

struct FFPsyPreprocessContext* AACEncContext::psypp

Definition at line 396 of file aacenc.h.

Referenced by aac_encode_end(), aac_encode_frame(), and aac_encode_init().

◆ coder

const AACCoefficientsEncoder* AACEncContext::coder

◆ cur_channel

int AACEncContext::cur_channel

◆ random_state

int AACEncContext::random_state

Definition at line 399 of file aacenc.h.

Referenced by aac_encode_init(), and search_for_pns().

◆ lambda

float AACEncContext::lambda

◆ last_frame_pb_count

int AACEncContext::last_frame_pb_count

number of bits for the previous frame

Definition at line 401 of file aacenc.h.

Referenced by aac_encode_frame(), and aac_encode_init().

◆ lambda_sum

float AACEncContext::lambda_sum

sum(lambda), for Qvg reporting

Definition at line 402 of file aacenc.h.

Referenced by aac_encode_end(), and aac_encode_frame().

◆ lambda_count

int AACEncContext::lambda_count

count(lambda), for Qvg reporting

Definition at line 403 of file aacenc.h.

Referenced by aac_encode_end(), and aac_encode_frame().

◆ cur_type

enum RawDataBlockType AACEncContext::cur_type

channel group type cur_channel belongs to

Definition at line 404 of file aacenc.h.

Referenced by aac_encode_frame(), and search_for_quantizers_twoloop().

◆ afq

AudioFrameQueue AACEncContext::afq

Definition at line 406 of file aacenc.h.

Referenced by aac_encode_end(), aac_encode_frame(), and aac_encode_init().

◆ qcoefs

int AACEncContext::qcoefs[96]

quantized coefficients

Definition at line 407 of file aacenc.h.

Referenced by quantize_and_encode_band_cost_template().

◆ scoefs

float AACEncContext::scoefs[1024]

◆ quantize_band_cost_cache_generation

uint16_t AACEncContext::quantize_band_cost_cache_generation

Definition at line 410 of file aacenc.h.

Referenced by ff_quantize_band_cost_cache_init(), and quantize_band_cost_cached().

◆ quantize_band_cost_cache

AACQuantizeBandCostCacheEntry AACEncContext::quantize_band_cost_cache[256][128]

memoization area for quantize_band_cost

Definition at line 411 of file aacenc.h.

Referenced by ff_quantize_band_cost_cache_init(), and quantize_band_cost_cached().

◆ abs_pow34

void(* AACEncContext::abs_pow34) (float *out, const float *in, const int size)

◆ quant_bands

void(* AACEncContext::quant_bands) (int *out, const float *in, const float *scaled, int size, int is_signed, int maxval, const float Q34, const float rounding)

◆ samples

float* AACEncContext::samples

Definition at line 419 of file aacenc.h.

Referenced by aac_encode_end(), and alloc_buffers().

◆ buffer

struct { ... } AACEncContext::buffer

Referenced by aac_encode_end(), and alloc_buffers().


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