plotjuggler_plugins
ToolboxFFT
3rdparty
KissFFT
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
9
#ifndef KISS_FTR_H
10
#define KISS_FTR_H
11
12
#include "
kiss_fft.h
"
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
/*
18
19
Real optimized version can save about 45% cpu time vs. complex fft of a real seq.
20
21
22
23
*/
24
25
typedef
struct
kiss_fftr_state
*
kiss_fftr_cfg
;
26
27
kiss_fftr_cfg
KISS_FFT_API
kiss_fftr_alloc
(
int
nfft,
int
inverse_fft,
void
* mem,
28
size_t
* lenmem);
29
/*
30
nfft must be even
31
32
If you don't care to allocate space, use mem = lenmem = NULL
33
*/
34
35
void
KISS_FFT_API
kiss_fftr
(
kiss_fftr_cfg
cfg,
const
kiss_fft_scalar
* timedata,
36
kiss_fft_cpx
* freqdata);
37
/*
38
input timedata has nfft scalar points
39
output freqdata has nfft/2+1 complex points
40
*/
41
42
void
KISS_FFT_API
kiss_fftri
(
kiss_fftr_cfg
cfg,
const
kiss_fft_cpx
* freqdata,
43
kiss_fft_scalar
* timedata);
44
/*
45
input freqdata has nfft/2+1 complex points
46
output timedata has nfft scalar points
47
*/
48
49
#define kiss_fftr_free KISS_FFT_FREE
50
51
#ifdef __cplusplus
52
}
53
#endif
54
#endif
kiss_fftr
void KISS_FFT_API kiss_fftr(kiss_fftr_cfg cfg, const kiss_fft_scalar *timedata, kiss_fft_cpx *freqdata)
Definition:
kiss_fftr.c:63
kiss_fft.h
kiss_fftr_alloc
kiss_fftr_cfg KISS_FFT_API kiss_fftr_alloc(int nfft, int inverse_fft, void *mem, size_t *lenmem)
Definition:
kiss_fftr.c:21
kiss_fftri
void KISS_FFT_API kiss_fftri(kiss_fftr_cfg cfg, const kiss_fft_cpx *freqdata, kiss_fft_scalar *timedata)
Definition:
kiss_fftr.c:119
kiss_fft_scalar
#define kiss_fft_scalar
Definition:
kiss_fft.h:82
kiss_fftr_state
Definition:
kiss_fftr.c:12
kiss_fft_cpx
Definition:
kiss_fft.h:86
KISS_FFT_API
#define KISS_FFT_API
Definition:
kiss_fft.h:29
kiss_fftr_cfg
struct kiss_fftr_state * kiss_fftr_cfg
Definition:
kiss_fftr.h:25
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44