Changeset 628 for pjproject/trunk/pjmedia/src/pjmedia-codec/speex/filters.h
- Timestamp:
- Jul 26, 2006 5:04:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/speex/filters.h
r278 r628 39 39 40 40 spx_word16_t compute_rms(const spx_sig_t *x, int len); 41 spx_word16_t compute_rms16(const spx_word16_t *x, int len); 41 42 void 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);43 void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int len); 43 44 44 45 #ifdef FIXED_POINT … … 47 48 48 49 #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;56 50 57 51 … … 63 57 void fir_mem2(const spx_sig_t *x, const spx_coef_t *num, spx_sig_t *y, int N, int ord, spx_mem_t *mem); 64 58 void 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 60 void 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); 61 void 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); 62 void 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); 65 63 66 64 /* Apply bandwidth expansion on LPC coef */ … … 75 73 void 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); 76 74 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*/ 75 void multicomb( 76 spx_word16_t *exc, /*decoded excitation*/ 77 spx_word16_t *new_exc, /*enhanced excitation*/ 82 78 spx_coef_t *ak, /*LPC filter coefs*/ 83 79 int p, /*LPC order*/ 84 80 int nsf, /*sub-frame size*/ 85 81 int pitch, /*pitch period*/ 86 spx_word16_t *pitch_gain, /*pitch gain (3-tap)*/82 int max_pitch, /*pitch gain (3-tap)*/ 87 83 spx_word16_t comb_gain, /*gain of comb filter*/ 88 CombFilterMem *mem 84 char *stack 89 85 ); 90 86 91 92 87 #endif
Note: See TracChangeset
for help on using the changeset viewer.