Main Page | Compound List | File List | Compound Members | File Members

preprocess.c File Reference

#include <math.h>
#include "speex_preprocess.h"
#include "misc.h"
#include "smallft.h"

Defines

#define max(a, b)   ((a) > (b) ? (a) : (b))
#define min(a, b)   ((a) < (b) ? (a) : (b))
#define M_PI   3.14159263
#define SQRT_M_PI_2   0.88623
#define LOUDNESS_EXP   2.5
#define NB_BANDS   8
#define ZMIN   .1
#define ZMAX   .316
#define ZMIN_1   10
#define LOG_MIN_MAX_1   0.86859

Functions

SpeexPreprocessStatespeex_preprocess_state_init (int frame_size, int sampling_rate)
void speex_preprocess_state_destroy (SpeexPreprocessState *st)
int speex_preprocess (SpeexPreprocessState *st, float *x, float *echo)
void speex_preprocess_estimate_update (SpeexPreprocessState *st, float *x, float *noise)
int speex_preprocess_ctl (SpeexPreprocessState *state, int request, void *ptr)

Define Documentation

#define LOG_MIN_MAX_1   0.86859
 

#define LOUDNESS_EXP   2.5
 

#define M_PI   3.14159263
 

#define max a,
 )     ((a) > (b) ? (a) : (b))
 

#define min a,
 )     ((a) < (b) ? (a) : (b))
 

#define NB_BANDS   8
 

#define SQRT_M_PI_2   0.88623
 

#define ZMAX   .316
 

#define ZMIN   .1
 

#define ZMIN_1   10
 


Function Documentation

int speex_preprocess SpeexPreprocessState st,
float *  x,
float *  noise
 

Preprocess a frame

int speex_preprocess_ctl SpeexPreprocessState st,
int  request,
void *  ptr
 

Used like the ioctl function to control the preprocessor parameters

void speex_preprocess_estimate_update SpeexPreprocessState st,
float *  x,
float *  noise
 

Preprocess a frame

void speex_preprocess_state_destroy SpeexPreprocessState st  ) 
 

Destroys a denoising state

SpeexPreprocessState* speex_preprocess_state_init int  frame_size,
int  sampling_rate
 

Creates a new preprocessing state


Generated on Sun Sep 21 16:07:09 2003 for speex by doxygen 1.3.2