Home | History | Annotate | Download | only in celt

Lines Matching refs:nfft

518 static void compute_twiddles(kiss_twiddle_cpx *twiddles, int nfft)
522 for (i=0;i<nfft;++i) {
524 kf_cexp2(twiddles+i, DIV32(SHL32(phase,17),nfft));
527 for (i=0;i<nfft;++i) {
529 double phase = ( -2*pi /nfft ) * i;
541 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state *base)
557 st->nfft=nfft;
559 st->scale = 1.f/nfft;
565 while (nfft<<st->shift != base->nfft && st->shift < 32)
570 st->twiddles = twiddles = (kiss_twiddle_cpx*)KISS_FFT_MALLOC(sizeof(kiss_twiddle_cpx)*nfft);
571 compute_twiddles(twiddles, nfft);
574 if (!kf_factor(nfft,st->factors))
580 st->bitrev = bitrev = (opus_int16*)KISS_FFT_MALLOC(sizeof(opus_int16)*nfft);
591 kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem )
593 return opus_fft_alloc_twiddles(nfft, mem, lenmem, NULL);
623 for (i=0;i<st->nfft;i++)
681 for (i=0;i<st->nfft;i++)