Fixes to dsp
[platform/upstream/libvorbis.git] / lib / smallft.h
1 /******************************************************************
2  * CopyPolicy: GNU Public License 2 applies
3  * Copyright (C) 1998-1999 Monty xiphmont@mit.edu, monty@xiph.org
4  *
5  * Stripped down FFT implementation from OggSquish.
6  *
7  ******************************************************************/
8
9 #ifndef _V_SMFT_H_
10 #define _V_SMFT_H_
11
12 typedef struct {
13   int n;
14   double *trigcache;
15   int *splitcache;
16 } drft_lookup;
17
18 extern void drft_forward(drft_lookup *l,double *data);
19 extern void drft_backward(drft_lookup *l,double *data);
20 extern void drft_init(drft_lookup *l,int n);
21 extern void drft_clear(drft_lookup *l);
22
23 #endif