SAF
Loading...
Searching...
No Matches
kiss_fftr.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2003-2004, Mark Borgerding. All rights reserved.
3 * This file is part of KISS FFT - https://github.com/mborgerding/kissfft
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 * See COPYING file for more information.
7 */
8
19#ifndef KISS_FTR_H
20#define KISS_FTR_H
21
22#include "kiss_fft.h"
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27
28/*
29
30 Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
31
32
33
34 */
35
36typedef struct kiss_fftr_state *kiss_fftr_cfg;
37
38
39kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
40/*
41 nfft must be even
42
43 If you don't care to allocate space, use mem = lenmem = NULL
44*/
45
46
47void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata);
48/*
49 input timedata has nfft scalar points
50 output freqdata has nfft/2+1 complex points
51*/
52
53void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata);
54/*
55 input freqdata has nfft/2+1 complex points
56 output timedata has nfft scalar points
57*/
58
59#define kiss_fftr_free KISS_FFT_FREE
60
61#ifdef __cplusplus
62}
63#endif
64#endif
The default complex <-> complex FFT.
Complex data type used by kissFFT.
Definition kiss_fft.h:79
Internal KissFFT structure.
Definition kiss_fftr.c:20