11 double twoPI = 6.28318530717959;
17 for(n=0; n<(N>>1); n++){
18 typed = (double)(twoPI*n/N);
20 img[n] = (-1.0)*sin(typed);
24 for(i=0; i < size; i++) {
25 data_x[i] = (double)(i);
26 data_y[i] = (double)(i);
38 fft(data_x, data_y, real, img);
43 for(i=0; i < size; i++) {
44 printf(
"%.2f : %.2f\n", data_x[i], data_y[i]);
volatile unsigned char img[WIDTH][HEIGHT]
void fft(double real[FFT_SIZE], double img[FFT_SIZE], double real_twid[FFT_SIZE/2], double img_twid[FFT_SIZE/2])