smallft.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
  5. * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
  6. * PLEASE READ THESE TERMS DISTRIBUTING. *
  7. * *
  8. * THE OggSQUISH 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.6.10.1 2000/08/31 09:00:02 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