📄 transfo.h
字号:
#ifndef TRANSFORM_H
#define TRANSFORM_H
// Use this for decoder - single precision
//typedef float fftw_real;
// Use this for encoder - double precision
typedef double fftw_real;
typedef struct {
fftw_real re, im;
} fftw_complex;
#define c_re(c) ((c).re)
#define c_im(c) ((c).im)
#define DEFINE_PFFTW(size) \
void pfftwi_##size(fftw_complex *input); \
void pfftw_##size(fftw_complex *input); \
int pfftw_permutation_##size(int i);
DEFINE_PFFTW(16)
DEFINE_PFFTW(32)
DEFINE_PFFTW(64)
DEFINE_PFFTW(128)
DEFINE_PFFTW(256)
DEFINE_PFFTW(512)
DEFINE_PFFTW(2048)
void MakeFFTOrder(void);
void IMDCT(fftw_real *data, int N);
void MDCT(fftw_real *data, int N);
extern int unscambled64[64]; /* the permutation array for FFT64*/
extern int unscambled256[256]; /* the permutation array for FFT256*/
extern int unscambled512[512]; /* the permutation array for FFT512*/
extern int unscambled2048[2048]; /* the permutation array for FFT2048*/
extern fftw_complex FFTarray[2048]; /* the array for in-place FFT */
#endif /* TRANSFORM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -