shithub: aacenc

ref: 2b225e5bc99d1930c4da3794cb81092ca2864861
dir: /transfo.h/

View raw version
#ifndef TRANSFORM_H
#define TRANSFORM_H 

void MDCT(double* data, int N);
void FFT(double *data, int nn, int isign);

#define c_re(c)  ((c).re)
#define c_im(c)  ((c).im)

typedef struct {
     double re, im;
} fftw_complex_d;

#define DEFINE_PFFTW(size)			\
 void pfftw_d_##size(fftw_complex_d *input);	\
 int pfftw_d_permutation_##size(int i);		

DEFINE_PFFTW(16)
DEFINE_PFFTW(32)
DEFINE_PFFTW(64)
DEFINE_PFFTW(128)
DEFINE_PFFTW(512)

void MakeFFTOrder(void);

#endif