smallft.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. function: fft transform
  14. last mod: $Id: smallft.h,v 1.7.2.1 2000/11/04 06:21:46 xiphmont Exp $
  15. ********************************************************************/
  16. #ifndef _V_SMFT_H_
  17. #define _V_SMFT_H_
  18. #include "vorbis/codec.h"
  19. typedef struct {
  20. int n;
  21. float *trigcache;
  22. int *splitcache;
  23. } drft_lookup;
  24. extern void drft_forward(drft_lookup *l,float *data);
  25. extern void drft_backward(drft_lookup *l,float *data);
  26. extern void drft_init(drft_lookup *l,int n);
  27. extern void drft_clear(drft_lookup *l);
  28. #endif