Lines Matching refs:spx_word16_t

96 static inline spx_word16_t DIV32_16_Q8(spx_word32_t a, spx_word32_t b)  in DIV32_16_Q8()
122 static inline spx_word16_t DIV32_16_Q15(spx_word32_t a, spx_word32_t b) in DIV32_16_Q15()
193 spx_word16_t reverb_decay;
194 spx_word16_t reverb_level;
195 spx_word16_t speech_prob_start;
196 spx_word16_t speech_prob_continue;
202 spx_word16_t speech_prob; /**< Probability last frame was speech */
205 spx_word16_t *frame; /**< Processing frame (2*ps_size) */
206 spx_word16_t *ft; /**< Processing frame in freq domain (2*ps_size) */
208 spx_word16_t *gain2; /**< Adjusted gains */
209 spx_word16_t *gain_floor; /**< Minimum gain allowed */
210 spx_word16_t *window; /**< Analysis/Synthesis window */
214 spx_word16_t *gain; /**< Ephraim Malah gain */
215 spx_word16_t *prior; /**< A-priori SNR */
216 spx_word16_t *post; /**< A-posteriori SNR */
223 spx_word16_t *zeta; /**< Smoothed a priori SNR */
228 spx_word16_t *inbuf; /**< Input buffer (overlapped analysis) */
229 spx_word16_t *outbuf; /**< Output buffer (for overlap and add) */
255 static void conj_window(spx_word16_t *w, int len) in conj_window()
260 spx_word16_t tmp; in conj_window()
262 spx_word16_t x = DIV32_16(MULT16_16(32767,i),len); in conj_window()
264 spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len); in conj_window()
299 spx_word16_t frac; in hypergeom_gain()
301 static const spx_word16_t table[21] = { in hypergeom_gain()
314 static inline spx_word16_t qcurve(spx_word16_t x) in qcurve()
321 …int effective_echo_suppress, spx_word32_t *noise, spx_word32_t *echo, spx_word16_t *gain_floor, in… in compute_gain_floor()
327 spx_word16_t noise_gain, gain_ratio; in compute_gain_floor()
337 spx_word16_t echo_gain, gain_ratio; in compute_gain_floor()
375 static inline spx_word16_t qcurve(spx_word16_t x) in qcurve()
380 …int effective_echo_suppress, spx_word32_t *noise, spx_word32_t *echo, spx_word16_t *gain_floor, in… in compute_gain_floor()
448 st->frame = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t)); in speex_preprocess_state_init()
449 st->window = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t)); in speex_preprocess_state_init()
450 st->ft = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t)); in speex_preprocess_state_init()
458 st->prior = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t)); in speex_preprocess_state_init()
459 st->post = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t)); in speex_preprocess_state_init()
460 st->gain = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t)); in speex_preprocess_state_init()
461 st->gain2 = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t)); in speex_preprocess_state_init()
462 st->gain_floor = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t)); in speex_preprocess_state_init()
463 st->zeta = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t)); in speex_preprocess_state_init()
470 st->inbuf = (spx_word16_t*)speex_alloc(N3*sizeof(spx_word16_t)); in speex_preprocess_state_init()
471 st->outbuf = (spx_word16_t*)speex_alloc(N3*sizeof(spx_word16_t)); in speex_preprocess_state_init()
569 static void speex_compute_agc(SpeexPreprocessState *st, spx_word16_t Pframe, spx_word16_t *ft) in speex_compute_agc()
642 spx_word16_t max_val=0; in preprocess_analysis()
735 spx_word16_t Pframe; in speex_preprocess_run()
736 spx_word16_t beta, beta_1; in speex_preprocess_run()
737 spx_word16_t effective_echo_suppress; in speex_preprocess_run()
794 spx_word16_t gamma; in speex_preprocess_run()
841 spx_word16_t prior_ratio; in speex_preprocess_run()
843 spx_word16_t P1; in speex_preprocess_run()
845 spx_word16_t q; in speex_preprocess_run()
847 spx_word16_t tmp; in speex_preprocess_run()
885 spx_word16_t prior_ratio; in speex_preprocess_run()
886 spx_word16_t tmp; in speex_preprocess_run()
887 spx_word16_t p; in speex_preprocess_run()
888 spx_word16_t g; in speex_preprocess_run()
927 spx_word16_t tmp; in speex_preprocess_run()
928 spx_word16_t p = st->gain2[i]; in speex_preprocess_run()