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