LMMS
Loading...
Searching...
No Matches
rpe.c File Reference
#include <stdio.h>
#include <assert.h>
#include "private.h"
#include "gsm.h"
#include "proto.h"

Macros

#define STEP(i, H)
#define STEP(m, i)

Functions

static void Weighting_filter P2 ((e, x), register word *e, word *x)
static void RPE_grid_selection P3 ((x, xM, Mc_out), word *x, word *xM, word *Mc_out)
static void APCM_quantization_xmaxc_to_exp_mant P3 ((xmaxc, exp_out, mant_out), word xmaxc, word *exp_out, word *mant_out)
static void APCM_quantization P5 ((xM, xMc, mant_out, exp_out, xmaxc_out), word *xM, word *xMc, word *mant_out, word *exp_out, word *xmaxc_out)
static void APCM_inverse_quantization P4 ((xMc, mant, exp, xMp), register word *xMc, word mant, word exp, register word *xMp)
static void RPE_grid_positioning P3 ((Mc, xMp, ep), word Mc, register word *xMp, register word *ep)
void Gsm_RPE_Encoding P5 ((S, e, xmaxc, Mc, xMc), struct gsm_state *S, word *e, word *xmaxc, word *Mc, word *xMc)
void Gsm_RPE_Decoding P5 ((S, xmaxcr, Mcr, xMcr, erp), struct gsm_state *S, word xmaxcr, word Mcr, word *xMcr, word *erp)

Macro Definition Documentation

◆ STEP [1/2]

#define STEP ( i,
H )
Value:
(e[ k + i ] * (longword)H)
* e
Definition inflate.c:1404
register unsigned k
Definition inflate.c:946
register unsigned i
Definition inflate.c:1575
int longword
Definition private.h:23

◆ STEP [2/2]

#define STEP ( m,
i )
Value:
L_temp = SASR( x[m + 3 * i], 2 ); \
L_result += L_temp * L_temp;
unsigned * m
Definition inflate.c:1559
unsigned x[BMAX+1]
Definition inflate.c:1586
#define SASR
Definition private.h:14

Function Documentation

◆ P2()

void Weighting_filter P2 ( (e, x) ,
register word * e,
word * x )
static

◆ P3() [1/3]

void RPE_grid_positioning P3 ( (Mc, xMp, ep) ,
word Mc,
register word * xMp,
register word * ep )
static

◆ P3() [2/3]

void RPE_grid_selection P3 ( (x, xM, Mc_out) ,
word * x,
word * xM,
word * Mc_out )
static

◆ P3() [3/3]

void APCM_quantization_xmaxc_to_exp_mant P3 ( (xmaxc, exp_out, mant_out) ,
word xmaxc,
word * exp_out,
word * mant_out )
static

◆ P4()

void APCM_inverse_quantization P4 ( (xMc, mant, exp, xMp) ,
register word * xMc,
word mant,
word exp,
register word * xMp )
static

◆ P5() [1/3]

void Gsm_RPE_Encoding P5 ( (S, e, xmaxc, Mc, xMc) ,
struct gsm_state * S,
word * e,
word * xmaxc,
word * Mc,
word * xMc )

◆ P5() [2/3]

void Gsm_RPE_Decoding P5 ( (S, xmaxcr, Mcr, xMcr, erp) ,
struct gsm_state * S,
word xmaxcr,
word Mcr,
word * xMcr,
word * erp )

◆ P5() [3/3]

void APCM_quantization P5 ( (xM, xMc, mant_out, exp_out, xmaxc_out) ,
word * xM,
word * xMc,
word * mant_out,
word * exp_out,
word * xmaxc_out )
static