Lines Matching defs:frame
198 spx_word16_t speech_prob; /**< Probability last frame was speech */
201 spx_word16_t *frame; /**< Processing frame (2*ps_size) */
202 spx_word16_t *ft; /**< Processing frame in freq domain (2*ps_size) */
209 spx_word32_t *old_ps; /**< Power spectrum for last frame */
236 float max_increase_step; /**< Maximum increase in gain from one frame to another */
237 float max_decrease_step; /**< Maximum decrease in gain from one frame to another */
238 float prev_loudness; /**< Loudness of previous frame */
444 st->frame = (spx_word16_t*)speex_alloc(2*N*sizeof(spx_word16_t));
531 speex_free(st->frame);
622 /* 'Build' input frame */
624 st->frame[i]=st->inbuf[i];
626 st->frame[N3+i]=x[i];
634 st->frame[i] = MULT16_16_Q15(st->frame[i], st->window[i]);
640 max_val = MAX16(max_val, ABS16(st->frame[i]));
643 st->frame[i] = SHL16(st->frame[i], st->frame_shift);
648 spx_fft(st->fft_lookup, st->frame, st->ft);
782 /* Special case for first frame */
817 /* Speech probability of presence for the entire frame is based on the average filterbank a priori SNR */
840 /* Speech absence a priori probability (considering sub-band and frame) */
955 spx_ifft(st->fft_lookup, st->ft, st->frame);
958 st->frame[i] = PSHR16(st->frame[i], st->frame_shift);
966 if (fabs(st->frame[i])>max_sample)
967 max_sample = fabs(st->frame[i]);
972 st->frame[i] *= damp;
979 st->frame[i] = MULT16_16_Q15(st->frame[i], st->window[i]);
983 x[i] = WORD2INT(ADD32(EXTEND32(st->outbuf[i]), EXTEND32(st->frame[i])));
985 x[N3+i] = st->frame[N3+i];
989 st->outbuf[i] = st->frame[st->frame_size+i];