smallft.h 1.21 KB
Newer Older
Monty's avatar
 
Monty committed
1 2
/********************************************************************
 *                                                                  *
Monty's avatar
 
Monty committed
3
 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
Monty's avatar
 
Monty committed
4 5 6
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
Monty's avatar
 
Monty committed
7
 *                                                                  *
8 9
 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007             *
 * by the Xiph.Org Foundation http://www.xiph.org/                  *
10
 *                                                                  *
Monty's avatar
 
Monty committed
11 12 13
 ********************************************************************

 function: fft transform
14
 last mod: $Id$
Monty's avatar
 
Monty committed
15

16
 ********************************************************************/
Monty's avatar
 
Monty committed
17 18 19 20

#ifndef _V_SMFT_H_
#define _V_SMFT_H_

Monty's avatar
 
Monty committed
21
#include "vorbis/codec.h"
Monty's avatar
 
Monty committed
22

Monty's avatar
 
Monty committed
23 24
typedef struct {
  int n;
Monty's avatar
 
Monty committed
25
  float *trigcache;
Monty's avatar
 
Monty committed
26 27 28
  int *splitcache;
} drft_lookup;

Monty's avatar
 
Monty committed
29 30
extern void drft_forward(drft_lookup *l,float *data);
extern void drft_backward(drft_lookup *l,float *data);
Monty's avatar
 
Monty committed
31 32
extern void drft_init(drft_lookup *l,int n);
extern void drft_clear(drft_lookup *l);
Monty's avatar
 
Monty committed
33 34

#endif