Main Page | Class List | File List | Class Members | File Members

lsp.c File Reference

#include <math.h>
#include "lsp.h"
#include "stack_alloc.h"
#include "math_approx.h"

Defines

#define M_PI   3.14159265358979323846
#define NULL   0
#define C1   0.9999932946
#define C2   -0.4999124376
#define C3   0.0414877472
#define C4   -0.0012712095
#define SPX_PI_2   1.5707963268
#define FREQ_SCALE   1.
#define ANGLE2X(a)   (spx_cos(a))
#define X2ANGLE(x)   (acos(x))
#define SIGN_CHANGE(a, b)   (((a)*(b))<0.0)

Functions

int lpc_to_lsp (spx_coef_t *a, int lpcrdr, spx_lsp_t *freq, int nb, spx_word16_t delta, char *stack)
void lsp_to_lpc (spx_lsp_t *freq, spx_coef_t *ak, int lpcrdr, char *stack)
void lsp_enforce_margin (spx_lsp_t *lsp, int len, spx_word16_t margin)
void lsp_interpolate (spx_lsp_t *old_lsp, spx_lsp_t *new_lsp, spx_lsp_t *interp_lsp, int len, int subframe, int nb_subframes)

Define Documentation

#define ANGLE2X  )     (spx_cos(a))
 

#define C1   0.9999932946
 

#define C2   -0.4999124376
 

#define C3   0.0414877472
 

#define C4   -0.0012712095
 

#define FREQ_SCALE   1.
 

#define M_PI   3.14159265358979323846
 

#define NULL   0
 

#define SIGN_CHANGE a,
 )     (((a)*(b))<0.0)
 

#define SPX_PI_2   1.5707963268
 

#define X2ANGLE  )     (acos(x))
 


Function Documentation

int lpc_to_lsp spx_coef_t a,
int  lpcrdr,
spx_lsp_t freq,
int  nb,
spx_word16_t  delta,
char *  stack
 

void lsp_enforce_margin spx_lsp_t lsp,
int  len,
spx_word16_t  margin
 

void lsp_interpolate spx_lsp_t old_lsp,
spx_lsp_t new_lsp,
spx_lsp_t interp_lsp,
int  len,
int  subframe,
int  nb_subframes
 

void lsp_to_lpc spx_lsp_t freq,
spx_coef_t ak,
int  lpcrdr,
char *  stack
 


Generated on Thu Aug 12 11:55:01 2004 for speex by doxygen 1.3.8