FFmpeg
Functions
aacdec_dsp_template.c File Reference
#include "aacdec.h"
#include "libavcodec/lpc_functions.h"
#include "libavcodec/aactab.h"

Go to the source code of this file.

Functions

static void AAC_RENAME() dequant_scalefactors (SingleChannelElement *sce)
 Convert integer scalefactors to the decoder's native expected scalefactor values. More...
 
static void AAC_RENAME() apply_mid_side_stereo (AACDecContext *ac, ChannelElement *cpe)
 Mid/Side stereo decoding; reference: 4.6.8.1.3. More...
 
static void AAC_RENAME() apply_intensity_stereo (AACDecContext *ac, ChannelElement *cpe, int ms_present)
 intensity stereo decoding; reference: 4.6.8.2.3 More...
 
static void AAC_RENAME() apply_tns (void *_coef_param, TemporalNoiseShaping *tns, IndividualChannelStream *ics, int decode)
 Decode Temporal Noise Shaping filter coefficients and apply all-pole filters; reference: 4.6.9.3. More...
 
static void AAC_RENAME() windowing_and_mdct_ltp (AACDecContext *ac, INTFLOAT *out, INTFLOAT *in, IndividualChannelStream *ics)
 Apply windowing and MDCT to obtain the spectral coefficient from the predicted sample by LTP. More...
 
static void AAC_RENAME() apply_ltp (AACDecContext *ac, SingleChannelElement *sce)
 Apply the long term prediction. More...
 
static void AAC_RENAME() update_ltp (AACDecContext *ac, SingleChannelElement *sce)
 Update the LTP buffer for next frame. More...
 
static void AAC_RENAME() imdct_and_windowing (AACDecContext *ac, SingleChannelElement *sce)
 Conduct IMDCT and windowing. More...
 
static void AAC_RENAME() imdct_and_windowing_960 (AACDecContext *ac, SingleChannelElement *sce)
 Conduct IMDCT and windowing. More...
 
static void AAC_RENAME() imdct_and_windowing_ld (AACDecContext *ac, SingleChannelElement *sce)
 
static void AAC_RENAME() imdct_and_windowing_eld (AACDecContext *ac, SingleChannelElement *sce)
 
static void AAC_RENAME() clip_output (AACDecContext *ac, ChannelElement *che, int type, int samples)
 
static void reset_all_predictors (PredictorState *ps)
 
static void reset_predictor_group (PredictorState *ps, int group_num)
 
static void AAC_RENAME() apply_prediction (AACDecContext *ac, SingleChannelElement *sce)
 Apply AAC-Main style frequency domain prediction. More...
 
const AACDecDSP AAC_RENAME (aac_dsp)
 

Function Documentation

◆ dequant_scalefactors()

static void AAC_RENAME() dequant_scalefactors ( SingleChannelElement sce)
static

Convert integer scalefactors to the decoder's native expected scalefactor values.

Definition at line 41 of file aacdec_dsp_template.c.

◆ apply_mid_side_stereo()

static void AAC_RENAME() apply_mid_side_stereo ( AACDecContext ac,
ChannelElement cpe 
)
static

Mid/Side stereo decoding; reference: 4.6.8.1.3.

Definition at line 94 of file aacdec_dsp_template.c.

◆ apply_intensity_stereo()

static void AAC_RENAME() apply_intensity_stereo ( AACDecContext ac,
ChannelElement cpe,
int  ms_present 
)
static

intensity stereo decoding; reference: 4.6.8.2.3

Parameters
ms_presentIndicates mid/side stereo presence. [0] mask is all 0s; [1] mask is decoded from bitstream; [2] mask is all 1s; [3] reserved for scalable AAC

Definition at line 132 of file aacdec_dsp_template.c.

◆ apply_tns()

static void AAC_RENAME() apply_tns ( void *  _coef_param,
TemporalNoiseShaping tns,
IndividualChannelStream ics,
int  decode 
)
static

Decode Temporal Noise Shaping filter coefficients and apply all-pole filters; reference: 4.6.9.3.

Parameters
decode1 if tool is used normally, 0 if tool is used in LTP.
coefspectral coefficients

Definition at line 183 of file aacdec_dsp_template.c.

Referenced by apply_ltp().

◆ windowing_and_mdct_ltp()

static void AAC_RENAME() windowing_and_mdct_ltp ( AACDecContext ac,
INTFLOAT out,
INTFLOAT in,
IndividualChannelStream ics 
)
inlinestatic

Apply windowing and MDCT to obtain the spectral coefficient from the predicted sample by LTP.

Definition at line 244 of file aacdec_dsp_template.c.

Referenced by apply_ltp().

◆ apply_ltp()

static void AAC_RENAME() apply_ltp ( AACDecContext ac,
SingleChannelElement sce 
)
static

Apply the long term prediction.

Definition at line 271 of file aacdec_dsp_template.c.

◆ update_ltp()

static void AAC_RENAME() update_ltp ( AACDecContext ac,
SingleChannelElement sce 
)
static

Update the LTP buffer for next frame.

Definition at line 303 of file aacdec_dsp_template.c.

◆ imdct_and_windowing()

static void AAC_RENAME() imdct_and_windowing ( AACDecContext ac,
SingleChannelElement sce 
)
static

Conduct IMDCT and windowing.

Definition at line 344 of file aacdec_dsp_template.c.

◆ imdct_and_windowing_960()

static void AAC_RENAME() imdct_and_windowing_960 ( AACDecContext ac,
SingleChannelElement sce 
)
static

Conduct IMDCT and windowing.

Definition at line 408 of file aacdec_dsp_template.c.

◆ imdct_and_windowing_ld()

static void AAC_RENAME() imdct_and_windowing_ld ( AACDecContext ac,
SingleChannelElement sce 
)
static

Definition at line 469 of file aacdec_dsp_template.c.

◆ imdct_and_windowing_eld()

static void AAC_RENAME() imdct_and_windowing_eld ( AACDecContext ac,
SingleChannelElement sce 
)
static

Definition at line 494 of file aacdec_dsp_template.c.

◆ clip_output()

static void AAC_RENAME() clip_output ( AACDecContext ac,
ChannelElement che,
int  type,
int  samples 
)
static

Definition at line 557 of file aacdec_dsp_template.c.

◆ reset_all_predictors()

static void reset_all_predictors ( PredictorState ps)
inlinestatic

Definition at line 572 of file aacdec_dsp_template.c.

Referenced by apply_prediction().

◆ reset_predictor_group()

static void reset_predictor_group ( PredictorState ps,
int  group_num 
)
inlinestatic

Definition at line 579 of file aacdec_dsp_template.c.

Referenced by apply_prediction().

◆ apply_prediction()

static void AAC_RENAME() apply_prediction ( AACDecContext ac,
SingleChannelElement sce 
)
static

Apply AAC-Main style frequency domain prediction.

Definition at line 589 of file aacdec_dsp_template.c.

◆ AAC_RENAME()

const AACDecDSP AAC_RENAME ( aac_dsp  )