AMR algebraic code book (fixed) vector decoding functions


Functions

static void decode_10bit_pulse (int code, int pulse_position[8], int i1, int i2, int i3)
 Decode a 10-bit algebraic codebook index from a 10.2 kbit/s frame.
static void decode_8_pulses_31bits (const int16_t *fixed_index, AMRFixed *fixed_sparse)
 Decode the algebraic codebook index to pulse positions and signs and construct the algebraic codebook vector for MODE_10k2.
static void decode_fixed_sparse (AMRFixed *fixed_sparse, const uint16_t *pulses, const enum Mode mode, const int subframe)
 Decode the algebraic codebook index to pulse positions and signs, then construct the algebraic codebook vector.
static void pitch_sharpening (AMRContext *p, int subframe, enum Mode mode, AMRFixed *fixed_sparse)
 Apply pitch lag to obtain the sharpened fixed vector (section 6.1.2).

Function Documentation

static void decode_10bit_pulse ( int  code,
int  pulse_position[8],
int  i1,
int  i2,
int  i3 
) [static]

Decode a 10-bit algebraic codebook index from a 10.2 kbit/s frame.

Definition at line 440 of file amrnbdec.c.

Referenced by decode_8_pulses_31bits().

static void decode_8_pulses_31bits ( const int16_t *  fixed_index,
AMRFixed fixed_sparse 
) [static]

Decode the algebraic codebook index to pulse positions and signs and construct the algebraic codebook vector for MODE_10k2.

Parameters:
fixed_index positions of the eight pulses
fixed_sparse pointer to the algebraic codebook vector

Definition at line 458 of file amrnbdec.c.

Referenced by decode_fixed_sparse().

static void decode_fixed_sparse ( AMRFixed fixed_sparse,
const uint16_t *  pulses,
const enum Mode  mode,
const int  subframe 
) [static]

Decode the algebraic codebook index to pulse positions and signs, then construct the algebraic codebook vector.

nb of pulses | bits encoding pulses For MODE_4k75 or MODE_5k15, 2 | 1-3, 4-6, 7 MODE_5k9, 2 | 1, 2-4, 5-6, 7-9 MODE_6k7, 3 | 1-3, 4, 5-7, 8, 9-11 MODE_7k4 or MODE_7k95, 4 | 1-3, 4-6, 7-9, 10, 11-13

Parameters:
fixed_sparse pointer to the algebraic codebook vector
pulses algebraic codebook indexes
mode mode of the current frame
subframe current subframe number

Definition at line 504 of file amrnbdec.c.

Referenced by amrnb_decode_frame(), and decode_frame().

static void pitch_sharpening ( AMRContext p,
int  subframe,
enum Mode  mode,
AMRFixed fixed_sparse 
) [static]

Apply pitch lag to obtain the sharpened fixed vector (section 6.1.2).

Parameters:
p the context
subframe unpacked amr subframe
mode mode of the current frame
fixed_sparse sparse respresentation of the fixed vector

Definition at line 557 of file amrnbdec.c.

Referenced by amrnb_decode_frame(), and eval_ir().


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