dct.h 705 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 1997-99 Relic Entertainment Inc.
  2. // Written by Janik Joire
  3. //
  4. // $History: $
  5. //
  6. // Version 1.6a
  7. #ifndef DCT_H
  8. #define DCT_H
  9. // General constants
  10. #ifndef OK
  11. #define OK 0
  12. #endif
  13. #ifndef ERR
  14. #define ERR -1
  15. #endif
  16. #ifndef PI
  17. #define PI 3.14159265358979323846F
  18. #endif
  19. #define DOUBSIZE 512
  20. #define FULLSIZE 256
  21. #define HALFSIZE 128
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. int dct(float *f,float *g,float *c,unsigned long n);
  26. int idct(float *f,float *g,float *c,unsigned long n);
  27. int Initdct(float *c,unsigned long n);
  28. void fft(long n,float *xRe,float *xIm,float *yRe,float *yIm);
  29. #ifdef __cplusplus
  30. } // extern "C"
  31. #endif
  32. #endif // DCT_H