FFmpeg
Functions
aacdec_proc_template.c File Reference

Go to the source code of this file.

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...
 
const AACDecProc AAC_RENAME (aac_proc)
 

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.

◆ 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.

◆ AAC_RENAME()

const AACDecProc AAC_RENAME ( aac_proc  )