sipxmedialib  Version 3.3
Macros | Functions | Variables
DSPlib.cpp File Reference
#include "mp/dsplib.h"
Include dependency graph for DSPlib.cpp:

Macros

#define FILTER_N   7
 
#define HALF_FILTER_N   (FILTER_N+1)/2
 

Functions

void init_CNG ()
 
void white_noise_generator (MpAudioSample *shpSamples, int iLength, uint32_t ulNoiseLevelAve)
 
void comfort_noise_generator (MpAudioSample *shpSamples, int iLength, uint32_t ulNoiseLevelAve)
 
void background_noise_level_estimation (uint32_t &ulNoiseLevel, MpAudioSample *shpSamples, int iLength)
 
int64_t dspDotProd16x32 (const short *v1, const int *v2, int count, int64_t *res)
 
int64_t dspDotProd16skip32 (const short *v1, const int *v2, int count, int64_t *res)
 
void dspCoeffUpdate16x32 (const short *v1, int *v2, int count, int factor)
 
void dspCoeffUpdate16skip32 (const short *v1, int *v2, int count, int factor)
 

Variables

short shpLP500 [HALF_FILTER_N]
 
short shpFilterBuf [SAMPLES_PER_FRAME+FILTER_N]
 

Macro Definition Documentation

#define FILTER_N   7
#define HALF_FILTER_N   (FILTER_N+1)/2

Function Documentation

void init_CNG ( )
void white_noise_generator ( MpAudioSample shpSamples,
int  iLength,
uint32_t  ulNoiseLevelAve 
)
void comfort_noise_generator ( MpAudioSample shpSamples,
int  iLength,
uint32_t  ulNoiseLevelAve 
)
void background_noise_level_estimation ( uint32_t &  ulNoiseLevel,
MpAudioSample shpSamples,
int  iLength 
)
int64_t dspDotProd16x32 ( const short *  v1,
const int *  v2,
int  count,
int64_t *  res 
)
int64_t dspDotProd16skip32 ( const short *  v1,
const int *  v2,
int  count,
int64_t *  res 
)
void dspCoeffUpdate16x32 ( const short *  v1,
int *  v2,
int  count,
int  factor 
)
void dspCoeffUpdate16skip32 ( const short *  v1,
int *  v2,
int  count,
int  factor 
)

Variable Documentation

short shpLP500[HALF_FILTER_N]
Initial value:
= {
115, 373, 961, 1440}
short shpFilterBuf[SAMPLES_PER_FRAME+FILTER_N]