FFmpeg
Loading...
Searching...
No Matches
aacdec_proc_template.c File Reference

Go to the source code of this file.

Macros

#define SET(member)
 
#define SET(member)
 

Functions

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

Macro Definition Documentation

◆ SET [1/2]

#define SET ( member)
Value:
aac_proc->member = AAC_RENAME(member)
#define AAC_RENAME(x)
Definition aac_defines.h:99

Referenced by aac_proc_init().

◆ SET [2/2]

#define SET ( member)
Value:
aac_proc->member = AV_JOIN(ff_aac_, AAC_RENAME(member));
#define AV_JOIN(a, b)
Definition macros.h:70

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(), and decode_spectrum_and_dequant().

◆ 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(), and decode_cce().

◆ 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 aac_proc_init(), and ff_aac_decode_init_float().