smallft.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
  9. * by the Xiph.Org Foundation http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: fft transform
  13. last mod: $Id: smallft.h 13293 2007-07-24 00:09:47Z xiphmont $
  14. ********************************************************************/
  15. #ifndef _V_SMFT_H_
  16. #define _V_SMFT_H_
  17. #include "vorbis/codec.h"
  18. typedef struct {
  19. int n;
  20. float *trigcache;
  21. int *splitcache;
  22. } drft_lookup;
  23. extern void drft_forward(drft_lookup *l,float *data);
  24. extern void drft_backward(drft_lookup *l,float *data);
  25. extern void drft_init(drft_lookup *l,int n);
  26. extern void drft_clear(drft_lookup *l);
  27. #endif