From b418fb91e7bb45d7b5f1eb8b19703441ae94eb13 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 9 Feb 2006 16:18:39 +0000 Subject: got everything building and working, including building single-object/single-file objects with a shared dylib. Now got to get it integrated into the build system svn path=/trunk/externals/fftease/; revision=4574 --- lib/fftease.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/fftease.h (limited to 'lib/fftease.h') diff --git a/lib/fftease.h b/lib/fftease.h new file mode 100644 index 0000000..30b39e9 --- /dev/null +++ b/lib/fftease.h @@ -0,0 +1,50 @@ +#include +#include +#include + +#define FORWARD 1 +#define INVERSE 0 + +#ifndef PI +#define PI 3.141592653589793115997963468544185161590576171875 +#endif + +#ifndef TWOPI +#define TWOPI 6.28318530717958623199592693708837032318115234375 +#endif + +#define FFTEASE_ANNOUNCEMENT "- a member of FFTease 2.5\nby Eric Lyon and Christopher Penrose" + +#define MAX_N (16384) +#define MAX_Nw (MAX_N * 4) +#define MAX_N2 (MAX_N/2) + +void rfft( float *x, int N, int forward ); +void cfft( float *x, int NC, int forward ); +void convert(float *S, float *C, int N2, float *lastphase, float fundamental, float factor ); +void unconvert( float *C, float *S, int N2, float *lastphase, float fundamental, float factor ); +void leanconvert( float *S, float *C, int N2 ); +void leanunconvert( float *C, float *S, int N2 ); +void makewindows( float *H, float *A, float *S, int Nw, int N, int I ); +void makehamming( float *H, float *A, float *S, int Nw, int N, int I,int odd ); +void makehanning( float *H, float *A, float *S, int Nw, int N, int I,int odd ); +void fold( float *I, float *W, int Nw, float *O, int N, int n ); +void overlapadd( float *I, int N, float *W, float *O, int Nw, int n ); +void bitreverse( float *x, int N ); +void bloscbank( float *S, float *O, int D, float iD, float *lf, float *la, float *bindex, float *tab, + int len, float synt, int lo, int hi ); +/* fast fft calls */ +void makect(int nc, int *ip, float *c); +void makewt(int nw, int *ip, float *w); +void rftsub(int n, float *a, int nc, float *c); +void cftsub(int n, float *a, float *w); +void bitrv2(int n, int *ip, float *a); +void rdft(int n, int isgn, float *a, int *ip, float *w); +void init_rdft(int n, int *ip, float *w); +/* rands */ +float randf( float min, float max ); +int randi( int min, int max ); +int power_of_two(int test); + +void limit_fftsize(int *N, int *Nw, char *OBJECT_NAME); + -- cgit v1.2.1