diff options
author | Anthony Blake <anthonix@me.com> | 2012-10-31 15:33:50 +1300 |
---|---|---|
committer | Anthony Blake <anthonix@me.com> | 2012-10-31 15:33:50 +1300 |
commit | cdd3a3a385f9539e85dec17bd84ec81ab8eb7e21 (patch) | |
tree | 7863af09bb37bb0931a80b49736da035c96f3b83 /include | |
parent | 20fb90955801191a4531cd4b767740299ab6911e (diff) | |
download | ffts-cdd3a3a385f9539e85dec17bd84ec81ab8eb7e21.zip ffts-cdd3a3a385f9539e85dec17bd84ec81ab8eb7e21.tar.gz |
Modified API to make way for multi-dimensional transforms
Diffstat (limited to 'include')
-rw-r--r-- | include/ffts.h | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/include/ffts.h b/include/ffts.h index 75392eb..f2194dc 100644 --- a/include/ffts.h +++ b/include/ffts.h @@ -43,31 +43,14 @@ extern "C" { #endif /* __cplusplus */ -/* -typedef size_t transform_index_t; -struct _ffts_plan_t { - ptrdiff_t *offsets; - void __attribute__ ((aligned(32))) *ws; - void __attribute__ ((aligned(32))) *oe_ws, *eo_ws, *ee_ws; - ptrdiff_t *is; - size_t *ws_is; - size_t i0, i1, n_luts; - size_t N; - void *lastlut; - transform_index_t *transforms; - //transform_func_t transform; - void (*transform)(struct _ffts_plan_t * , const float * , float * ); - void *transform_base; - size_t transform_size; - void *constants; -}; -*/ - struct _ffts_plan_t; typedef struct _ffts_plan_t ffts_plan_t; +ffts_plan_t *ffts_init_1d(size_t N, int sign); +ffts_plan_t *ffts_init_2d(size_t N1, size_t N2, int sign); +ffts_plan_t *ffts_init_nd(int rank, size_t *Ns, int sign); + void ffts_execute(ffts_plan_t * , const void * , const void * ); -ffts_plan_t *ffts_init(size_t N, int sign); void ffts_free(ffts_plan_t *); #ifdef __cplusplus |