2011-02-18 14:31:32 +00:00
|
|
|
/********************************************************************
|
|
|
|
* *
|
|
|
|
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
|
|
|
|
* 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. *
|
|
|
|
* *
|
2017-07-10 01:33:41 +00:00
|
|
|
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
|
|
|
|
* by the Xiph.Org Foundation http://www.xiph.org/ *
|
2011-02-18 14:31:32 +00:00
|
|
|
* *
|
|
|
|
********************************************************************
|
|
|
|
|
|
|
|
function: fft transform
|
|
|
|
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
#ifndef _V_SMFT_H_
|
|
|
|
#define _V_SMFT_H_
|
|
|
|
|
2017-07-10 01:33:41 +00:00
|
|
|
#include "vorbis/codec.h"
|
2011-02-18 14:31:32 +00:00
|
|
|
|
2017-07-10 01:33:41 +00:00
|
|
|
typedef struct {
|
2011-02-18 14:31:32 +00:00
|
|
|
int n;
|
|
|
|
float *trigcache;
|
|
|
|
int *splitcache;
|
2017-07-10 01:33:41 +00:00
|
|
|
} drft_lookup;
|
2011-02-18 14:31:32 +00:00
|
|
|
|
2017-07-10 01:33:41 +00:00
|
|
|
extern void drft_forward(drft_lookup *l,float *data);
|
|
|
|
extern void drft_backward(drft_lookup *l,float *data);
|
|
|
|
extern void drft_init(drft_lookup *l,int n);
|
|
|
|
extern void drft_clear(drft_lookup *l);
|
2011-02-18 14:31:32 +00:00
|
|
|
|
|
|
|
#endif
|