AMR gain decoding functions


Functions

static float fixed_gain_smooth (AMRContext *p, const float *lsf, const float *lsf_avg, const enum Mode mode)
 fixed gain smoothing Note that where the spec specifies the "spectrum in the q domain" in section 6.1.4, in fact frequencies should be used.
static void decode_gains (AMRContext *p, const AMRNBSubframe *amr_subframe, const enum Mode mode, const int subframe, float *fixed_gain_factor)
 Decode pitch gain and fixed gain factor (part of section 6.1.3).

Function Documentation

static void decode_gains ( AMRContext p,
const AMRNBSubframe amr_subframe,
const enum Mode  mode,
const int  subframe,
float *  fixed_gain_factor 
) [static]

Decode pitch gain and fixed gain factor (part of section 6.1.3).

Parameters:
p the context
amr_subframe unpacked amr subframe
mode mode of the current frame
subframe current subframe number
fixed_gain_factor decoded gain correction factor

Definition at line 635 of file amrnbdec.c.

Referenced by amrnb_decode_frame().

static float fixed_gain_smooth ( AMRContext p,
const float *  lsf,
const float *  lsf_avg,
const enum Mode  mode 
) [static]

fixed gain smoothing Note that where the spec specifies the "spectrum in the q domain" in section 6.1.4, in fact frequencies should be used.

Parameters:
p the context
lsf LSFs for the current subframe, in the range [0,1]
lsf_avg averaged LSFs
mode mode of the current frame
Returns:
fixed gain smoothed

Definition at line 593 of file amrnbdec.c.

Referenced by amrnb_decode_frame().


Generated on Fri Oct 26 02:36:56 2012 for FFmpeg by  doxygen 1.5.8