FastLED 3.9.15
Loading...
Searching...
No Matches

◆ kiss_fft_stride()

void kiss_fft_stride ( kiss_fft_cfg cfg,
const kiss_fft_cpx * fin,
kiss_fft_cpx * fout,
int fin_stride )

Definition at line 365 of file kiss_fft.c.

366{
367 if (fin == fout) {
368 //NOTE: this is not really an in-place FFT algorithm.
369 //It just performs an out-of-place FFT into a temp buffer
370 kiss_fft_cpx * tmpbuf = (kiss_fft_cpx*)KISS_FFT_TMP_ALLOC( sizeof(kiss_fft_cpx)*st->nfft);
371 kf_work(tmpbuf,fin,1,in_stride, st->factors,st);
372 memcpy(fout,tmpbuf,sizeof(kiss_fft_cpx)*st->nfft);
373 KISS_FFT_TMP_FREE(tmpbuf);
374 }else{
375 kf_work( fout, fin, 1,in_stride, st->factors,st );
376 }
377}
#define KISS_FFT_TMP_FREE(ptr)
#define KISS_FFT_TMP_ALLOC(nbytes)
static void kf_work(kiss_fft_cpx *Fout, const kiss_fft_cpx *f, const size_t fstride, int in_stride, int *factors, const kiss_fft_cfg st)
Definition kiss_fft.c:232

References kiss_fft_state::factors, kf_work(), KISS_FFT_TMP_ALLOC, KISS_FFT_TMP_FREE, and kiss_fft_state::nfft.

Referenced by kiss_fft().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: