Home | History | Annotate | Download | only in libspeex

Lines Matching refs:spx_word16_t

96 static inline spx_word16_t DIV32_16_Q8(spx_word32_t a, spx_word32_t b)
122 static inline spx_word16_t DIV32_16_Q15(spx_word32_t a, spx_word32_t b)
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)
260 spx_word16_t tmp;
262 spx_word16_t x = DIV32_16(MULT16_16(32767,i),len);
264 spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len);
299 spx_word16_t frac;
301 static const spx_word16_t table[21] = {
314 static inline spx_word16_t qcurve(spx_word16_t x)
321 static void compute_gain_floor(int noise_suppress, int effective_echo_suppress, spx_word32_t *noise, spx_word32_t *echo, spx_word16_t *gain_floor, int len)
327 spx_word16_t noise_gain, gain_ratio;
337 spx_word16_t echo_gain, gain_ratio;
375 static inline spx_word16_t qcurve(spx_word16_t x)
380 static void compute_gain_floor(int noise_suppress, int effective_echo_suppress, spx_word32_t *noise, spx_word32_t *echo, spx_word16_t *gain_floor, int len)
448 st->frame = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t));
449 st->window = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t));
450 st->ft = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t));
458 st->prior = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
459 st->post = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
460 st->gain = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
461 st->gain2 = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
462 st->gain_floor = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
463 st->zeta = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
470 st->inbuf = (spx_word16_t*)speex_alloc(N3*sizeof(spx_word16_t));
471 st->outbuf = (spx_word16_t*)speex_alloc(N3*sizeof(spx_word16_t));
569 static void speex_compute_agc(SpeexPreprocessState *st, spx_word16_t Pframe, spx_word16_t *ft)
642 spx_word16_t max_val=0;
735 spx_word16_t Pframe;
736 spx_word16_t beta, beta_1;
737 spx_word16_t effective_echo_suppress;
794 spx_word16_t gamma;
841 spx_word16_t prior_ratio;
843 spx_word16_t P1;
845 spx_word16_t q;
847 spx_word16_t tmp;
885 spx_word16_t prior_ratio;
886 spx_word16_t tmp;
887 spx_word16_t p;
888 spx_word16_t g;
927 spx_word16_t tmp;
928 spx_word16_t p = st->gain2[i];