Changeset 628 for pjproject/trunk/pjmedia/src/pjmedia-codec/speex/ltp.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/ltp.h
r278 r628 49 49 #endif 50 50 51 void open_loop_nbest_pitch(spx_sig_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack); 51 spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len); 52 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int nb_pitch, char *stack); 53 54 void open_loop_nbest_pitch(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack); 52 55 53 56 54 57 /** Finds the best quantized 3-tap pitch predictor by analysis by synthesis */ 55 58 int pitch_search_3tap( 56 spx_ sig_t target[], /* Target vector */57 spx_ sig_t *sw,59 spx_word16_t target[], /* Target vector */ 60 spx_word16_t *sw, 58 61 spx_coef_t ak[], /* LPCs for this subframe */ 59 62 spx_coef_t awk1[], /* Weighted LPCs #1 for this subframe */ … … 68 71 SpeexBits *bits, 69 72 char *stack, 70 spx_ sig_t *exc2,73 spx_word16_t *exc2, 71 74 spx_word16_t *r, 72 75 int complexity, 73 76 int cdbk_offset, 74 int plc_tuning 77 int plc_tuning, 78 spx_word32_t *cumul_gain 75 79 ); 76 80 77 81 /*Unquantize adaptive codebook and update pitch contribution*/ 78 82 void pitch_unquant_3tap( 79 spx_sig_t exc[], /* Excitation */ 83 spx_word16_t exc[], /* Input excitation */ 84 spx_word32_t exc_out[], /* Output excitation */ 80 85 int start, /* Smallest pitch value allowed */ 81 86 int end, /* Largest pitch value allowed */ 82 spx_word16_t pitch_coef, 87 spx_word16_t pitch_coef, /* Voicing (pitch) coefficient */ 83 88 const void *par, 84 89 int nsf, /* Number of samples in subframe */ … … 95 100 /** Forced pitch delay and gain */ 96 101 int forced_pitch_quant( 97 spx_ sig_t target[], /* Target vector */98 spx_ sig_t *sw,102 spx_word16_t target[], /* Target vector */ 103 spx_word16_t *sw, 99 104 spx_coef_t ak[], /* LPCs for this subframe */ 100 105 spx_coef_t awk1[], /* Weighted LPCs #1 for this subframe */ … … 109 114 SpeexBits *bits, 110 115 char *stack, 111 spx_ sig_t *exc2,116 spx_word16_t *exc2, 112 117 spx_word16_t *r, 113 118 int complexity, 114 119 int cdbk_offset, 115 int plc_tuning 120 int plc_tuning, 121 spx_word32_t *cumul_gain 116 122 ); 117 123 118 124 /** Unquantize forced pitch delay and gain */ 119 125 void forced_pitch_unquant( 120 spx_sig_t exc[], /* Excitation */ 126 spx_word16_t exc[], /* Input excitation */ 127 spx_word32_t exc_out[], /* Output excitation */ 121 128 int start, /* Smallest pitch value allowed */ 122 129 int end, /* Largest pitch value allowed */ 123 spx_word16_t pitch_coef, 130 spx_word16_t pitch_coef, /* Voicing (pitch) coefficient */ 124 131 const void *par, 125 132 int nsf, /* Number of samples in subframe */
Note: See TracChangeset
for help on using the changeset viewer.