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

misc.h File Reference

Various compatibility routines for Speex. More...

Go to the source code of this file.

Defines

#define VERSION   "speex-1.1"
#define LPC_SCALING   1.
#define SIG_SCALING   1.
#define LSP_SCALING   1.
#define LPC_SHIFT   0
#define SIG_SHIFT   0
#define PSHR(a, shift)   (a)
#define SHR(a, shift)   (a)
#define SHL(a, shift)   (a)
#define MULT16_16_16(a, b)   ((a)*(b))
#define MULT16_16(a, b)   ((a)*(b))
#define MULT16_32_Q13(a, b)   ((a)*(b))
#define MULT16_32_Q14(a, b)   ((a)*(b))
#define MULT16_32_Q15(a, b)   ((a)*(b))
#define MULT16_16_Q13(a, b)   ((a)*(b))
#define MULT16_16_Q14(a, b)   ((a)*(b))
#define MULT16_16_Q15(a, b)   ((a)*(b))

Typedefs

typedef float spx_mem_t
typedef float spx_coef_t
typedef float spx_lsp_t
typedef float spx_sig_t
typedef float spx_word16_t
typedef float spx_word32_t

Functions

void print_vec (float *vec, int len, char *name)
unsigned int be_int (unsigned int i)
unsigned int le_int (unsigned int i)
unsigned short be_short (unsigned short s)
unsigned short le_short (unsigned short s)
void * speex_alloc (int size)
void * speex_realloc (void *ptr, int size)
void speex_free (void *ptr)
void * speex_move (void *dest, void *src, int n)
void speex_error (char *str)
void speex_warning (char *str)
void speex_warning_int (char *str, int val)
void speex_rand_vec (float std, spx_sig_t *data, int len)
float speex_rand (float std)
void _speex_putc (int ch, void *file)


Detailed Description

Various compatibility routines for Speex.


Function Documentation

void* speex_alloc int  size  ) 
 

Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, speex_realloc and speex_free

void speex_free void *  ptr  ) 
 

Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, speex_realloc and speex_alloc

void* speex_move void *  dest,
void *  src,
int  n
 

Speex wrapper for mem_move

void* speex_realloc void *  ptr,
int  size
 

Speex wrapper for realloc. To do your own dynamic allocation, all you need to do is replace this function, speex_alloc and speex_free


Generated on Wed Aug 24 01:08:53 2005 for Speex by  doxygen 1.4.2