Ignore:
Timestamp:
Jul 26, 2006 5:04:54 PM (18 years ago)
Author:
bennylp
Message:
  • Bring speex codec up to date with their SVN trunk
  • Speex codec should work in FIXED_POINT mode when PJ_HAS_FLOATING_POINT is set to zero.
  • ulaw2linear will return zero if zero is given (this would make the VAD works better, and it also fixed click noise when call is established/hangup).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex/filters.h

    r278 r628  
    3939 
    4040spx_word16_t compute_rms(const spx_sig_t *x, int len); 
     41spx_word16_t compute_rms16(const spx_word16_t *x, int len); 
    4142void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len); 
    42 void signal_div(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len); 
     43void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int len); 
    4344 
    4445#ifdef FIXED_POINT 
     
    4748 
    4849#endif 
    49  
    50 /** Combined filter memory. */ 
    51 typedef struct { 
    52    int   last_pitch; 
    53    spx_word16_t last_pitch_gain[3]; 
    54    spx_word16_t smooth_gain; 
    55 } CombFilterMem; 
    5650 
    5751 
     
    6357void fir_mem2(const spx_sig_t *x, const spx_coef_t *num, spx_sig_t *y, int N, int ord, spx_mem_t *mem); 
    6458void iir_mem2(const spx_sig_t *x, const spx_coef_t *den, spx_sig_t *y, int N, int ord, spx_mem_t *mem); 
     59 
     60void filter_mem16(const spx_word16_t *x, const spx_coef_t *num, const spx_coef_t *den, spx_word16_t *y, int N, int ord, spx_mem_t *mem, char *stack); 
     61void iir_mem16(const spx_word16_t *x, const spx_coef_t *den, spx_word16_t *y, int N, int ord, spx_mem_t *mem, char *stack); 
     62void fir_mem16(const spx_word16_t *x, const spx_coef_t *num, spx_word16_t *y, int N, int ord, spx_mem_t *mem, char *stack); 
    6563 
    6664/* Apply bandwidth expansion on LPC coef */ 
     
    7573void compute_impulse_response(const spx_coef_t *ak, const spx_coef_t *awk1, const spx_coef_t *awk2, spx_word16_t *y, int N, int ord, char *stack); 
    7674 
    77 void comb_filter_mem_init (CombFilterMem *mem); 
    78  
    79 void comb_filter( 
    80 spx_sig_t *exc,          /*decoded excitation*/ 
    81 spx_sig_t *new_exc,      /*enhanced excitation*/ 
     75void multicomb( 
     76spx_word16_t *exc,          /*decoded excitation*/ 
     77spx_word16_t *new_exc,      /*enhanced excitation*/ 
    8278spx_coef_t *ak,           /*LPC filter coefs*/ 
    8379int p,               /*LPC order*/ 
    8480int nsf,             /*sub-frame size*/ 
    8581int pitch,           /*pitch period*/ 
    86 spx_word16_t *pitch_gain,   /*pitch gain (3-tap)*/ 
     82int max_pitch,   /*pitch gain (3-tap)*/ 
    8783spx_word16_t  comb_gain,    /*gain of comb filter*/ 
    88 CombFilterMem *mem 
     84char *stack 
    8985); 
    9086 
    91  
    9287#endif 
Note: See TracChangeset for help on using the changeset viewer.