Merge branch_beta3 onto the mainline.
[platform/upstream/libvorbis.git] / lib / smallft.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU LESSER/LIBRARY PUBLIC LICENSE, WHICH IS INCLUDED WITH    *
6  * THIS SOURCE. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.        *
7  *                                                                  *
8  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2000             *
9  * by Monty <monty@xiph.org> and the XIPHOPHORUS Company            *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: fft transform
15  last mod: $Id: smallft.h,v 1.8 2000/11/06 00:07:02 xiphmont Exp $
16
17 ********************************************************************/
18
19 #ifndef _V_SMFT_H_
20 #define _V_SMFT_H_
21
22 #include "vorbis/codec.h"
23
24 typedef struct {
25   int n;
26   float *trigcache;
27   int *splitcache;
28 } drft_lookup;
29
30 extern void drft_forward(drft_lookup *l,float *data);
31 extern void drft_backward(drft_lookup *l,float *data);
32 extern void drft_init(drft_lookup *l,int n);
33 extern void drft_clear(drft_lookup *l);
34
35 #endif