FFmpeg
Macros | Functions
aacdec_proc_template.c File Reference

Go to the source code of this file.

Macros

#define SET(member)   aac_proc->member = AAC_RENAME(member)
 
#define SET(member)   aac_proc->member = AV_JOIN(ff_aac_, AAC_RENAME(member));
 

Functions

static av_always_inline int lcg_random (unsigned previous_val)
 linear congruential pseudorandom number generator More...
 
static int AAC_RENAME() decode_spectrum_and_dequant (AACDecContext *ac, GetBitContext *gb, const Pulse *pulse, SingleChannelElement *sce)
 Decode spectral data; reference: table 4.50. More...
 
static int AAC_RENAME() decode_cce (AACDecContext *ac, GetBitContext *gb, ChannelElement *che)
 Decode coupling_channel_element; reference: table 4.8. More...
 
static av_cold void AAC_RENAME() aac_proc_init (AACDecProc *aac_proc)
 

Macro Definition Documentation

◆ SET [1/2]

#define SET (   member)    aac_proc->member = AAC_RENAME(member)

◆ SET [2/2]

#define SET (   member)    aac_proc->member = AV_JOIN(ff_aac_, AAC_RENAME(member));

Function Documentation

◆ lcg_random()

static av_always_inline int lcg_random ( unsigned  previous_val)
static

linear congruential pseudorandom number generator

Parameters
previous_valpointer to the current state of the generator
Returns
Returns a 32-bit pseudorandom integer

Definition at line 39 of file aacdec_proc_template.c.

Referenced by decode_spectrum_and_dequant(), and search_for_pns().

◆ decode_spectrum_and_dequant()

static int AAC_RENAME() decode_spectrum_and_dequant ( AACDecContext ac,
GetBitContext gb,
const Pulse pulse,
SingleChannelElement sce 
)
static

Decode spectral data; reference: table 4.50.

Dequantize and scale spectral data; reference: 4.6.3.3.

Parameters
coefarray of dequantized, scaled spectral data
sfarray of scalefactors or intensity stereo positions
pulse_presentset if pulses are present
pulsepointer to pulse data struct
band_typearray of the used band type
Returns
Returns error status. 0 - OK, !0 - error

Definition at line 57 of file aacdec_proc_template.c.

Referenced by aac_proc_init().

◆ decode_cce()

static int AAC_RENAME() decode_cce ( AACDecContext ac,
GetBitContext gb,
ChannelElement che 
)
static

Decode coupling_channel_element; reference: table 4.8.

Returns
Returns error status. 0 - OK, !0 - error

Definition at line 357 of file aacdec_proc_template.c.

Referenced by aac_proc_init().

◆ aac_proc_init()

static av_cold void AAC_RENAME() aac_proc_init ( AACDecProc aac_proc)
static

Definition at line 436 of file aacdec_proc_template.c.

Referenced by ff_aac_decode_init_float().