Lines Matching refs:spx_word16_t
59 spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) in inner_prod()
79 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int n…
90 const spx_word16_t *y = _y+i;
91 const spx_word16_t *x = _x;
92 spx_word16_t y0, y1, y2, y3;
142 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int n… in pitch_xcorr()
156 static inline spx_word32_t compute_pitch_error(spx_word16_t *C, spx_word16_t *g, spx_word16_t pitch… in compute_pitch_error()
173 void open_loop_nbest_pitch(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t … in open_loop_nbest_pitch()
183 VARDECL(spx_word16_t *corr16); in open_loop_nbest_pitch()
184 VARDECL(spx_word16_t *ener16); in open_loop_nbest_pitch()
188 ALLOC(corr16, end-start+1, spx_word16_t); in open_loop_nbest_pitch()
189 ALLOC(ener16, end-start+1, spx_word16_t); in open_loop_nbest_pitch()
195 spx_word16_t *corr16; in open_loop_nbest_pitch()
196 spx_word16_t *ener16; in open_loop_nbest_pitch()
263 spx_word16_t tmp = MULT16_16_16(corr16[i-start],corr16[i-start]); in open_loop_nbest_pitch()
296 spx_word16_t g; in open_loop_nbest_pitch()
314 spx_word16_t *C16, in pitch_gain_search_3tap_vq()
315 spx_word16_t max_gain in pitch_gain_search_3tap_vq()
322 spx_word16_t g[3]; in pitch_gain_search_3tap_vq()
323 spx_word16_t pitch_control=64; in pitch_gain_search_3tap_vq()
324 spx_word16_t gain_sum; in pitch_gain_search_3tap_vq()
330 g[0]=ADD16((spx_word16_t)ptr[0],32); in pitch_gain_search_3tap_vq()
331 g[1]=ADD16((spx_word16_t)ptr[1],32); in pitch_gain_search_3tap_vq()
332 g[2]=ADD16((spx_word16_t)ptr[2],32); in pitch_gain_search_3tap_vq()
333 gain_sum = (spx_word16_t)ptr[3]; in pitch_gain_search_3tap_vq()
349 const spx_word16_t target[], /* Target vector */ in pitch_gain_search_3tap()
361 const spx_word16_t *exc2, in pitch_gain_search_3tap()
362 const spx_word16_t *r, in pitch_gain_search_3tap()
363 spx_word16_t *new_target, in pitch_gain_search_3tap()
371 VARDECL(spx_word16_t *tmp1); in pitch_gain_search_3tap()
372 VARDECL(spx_word16_t *e); in pitch_gain_search_3tap()
373 spx_word16_t *x[3]; in pitch_gain_search_3tap()
376 spx_word16_t gain[3]; in pitch_gain_search_3tap()
378 spx_word16_t max_gain=128; in pitch_gain_search_3tap()
381 ALLOC(tmp1, 3*nsf, spx_word16_t); in pitch_gain_search_3tap()
382 ALLOC(e, nsf, spx_word16_t); in pitch_gain_search_3tap()
428 spx_word16_t e0=exc2[-pitch-1+i]; in pitch_gain_search_3tap()
448 spx_word16_t C16[9]; in pitch_gain_search_3tap()
450 spx_word16_t *C16=C; in pitch_gain_search_3tap()
487 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4]); in pitch_gain_search_3tap()
488 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+1]); in pitch_gain_search_3tap()
489 gain[2] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+2]); in pitch_gain_search_3tap()
529 spx_word16_t target[], /* Target vector */ in pitch_search_3tap()
530 spx_word16_t *sw, in pitch_search_3tap()
538 spx_word16_t pitch_coef, /* Voicing (pitch) coefficient */ in pitch_search_3tap()
543 spx_word16_t *exc2, in pitch_search_3tap()
544 spx_word16_t *r, in pitch_search_3tap()
554 VARDECL(spx_word16_t *new_target); in pitch_search_3tap()
555 VARDECL(spx_word16_t *best_target); in pitch_search_3tap()
614 ALLOC(new_target, nsf, spx_word16_t); in pitch_search_3tap()
615 ALLOC(best_target, nsf, spx_word16_t); in pitch_search_3tap()
656 spx_word16_t exc[], /* Input excitation */ in pitch_unquant_3tap()
660 spx_word16_t pitch_coef, /* Voicing (pitch) coefficient */ in pitch_unquant_3tap()
664 spx_word16_t *gain_val, in pitch_unquant_3tap()
669 spx_word16_t last_pitch_gain, in pitch_unquant_3tap()
676 spx_word16_t gain[3]; in pitch_unquant_3tap()
690 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4]); in pitch_unquant_3tap()
691 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4+1]); in pitch_unquant_3tap()
692 gain[2] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4+2]); in pitch_unquant_3tap()
701 spx_word16_t gain_sum; in pitch_unquant_3tap()
704 spx_word16_t tmp = count_lost < 4 ? last_pitch_gain : SHR16(last_pitch_gain,1); in pitch_unquant_3tap()
708 spx_word16_t tmp = count_lost < 4 ? last_pitch_gain : 0.5 * last_pitch_gain; in pitch_unquant_3tap()
716 spx_word16_t fact = DIV32_16(SHL32(EXTEND32(tmp),14),gain_sum); in pitch_unquant_3tap()
756 spx_word16_t target[], /* Target vector */ in forced_pitch_quant()
757 spx_word16_t *sw, in forced_pitch_quant()
765 spx_word16_t pitch_coef, /* Voicing (pitch) coefficient */ in forced_pitch_quant()
770 spx_word16_t *exc2, in forced_pitch_quant()
771 spx_word16_t *r, in forced_pitch_quant()
779 VARDECL(spx_word16_t *res); in forced_pitch_quant()
780 ALLOC(res, nsf, spx_word16_t); in forced_pitch_quant()
806 spx_word16_t exc[], /* Input excitation */ in forced_pitch_unquant()
810 spx_word16_t pitch_coef, /* Voicing (pitch) coefficient */ in forced_pitch_unquant()
814 spx_word16_t *gain_val, in forced_pitch_unquant()
819 spx_word16_t last_pitch_gain, in forced_pitch_unquant()