added 2d dft + bmp api (TESTING - may break!)
[my-code/api.git] / fourier / fourier.h
index fcaa3e9..57ef187 100644 (file)
@@ -16,6 +16,7 @@
 #define F_NOT_SUPPORTED -2
 #define F_DIM_FAILURE -3
 #define F_ALLOC_FAIL -4
+#define F_FFT_IMPOSSIBLE -5
 
 /* fourier specific variables */
 typedef struct s_complex {
@@ -34,7 +35,9 @@ typedef struct s_fourier {
   int dim;
   t_complex *data;
   t_complex *ftdata;
+  t_complex **revdata;
   int data_len[MAX_DIM];
+  int log2len[MAX_DIM];
 } t_fourier;
 
 /* function prototypes */
@@ -43,5 +46,8 @@ int fourier_alloc_data(t_fourier *fourier);
 int fourier_dft_1d(t_fourier *fourier);
 int fourier_dft_2d(t_fourier *fourier);
 int fourier_dft_3d(t_fourier *fourier);
+int fourier_fft_1d_init(t_fourier *fourier);
+int fourier_fft_1d(t_fourier *fourier);
+int fourier_shutdown(t_fourier *fourier);
 
 #endif