mdct2.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
  4. * *
  5. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  6. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  7. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  8. * *
  9. * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
  10. * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
  11. * *
  12. ********************************************************************
  13. function: modified discrete cosine transform prototypes
  14. ********************************************************************/
  15. #ifndef _OGG_mdct_H_
  16. #define _OGG_mdct_H_
  17. #include "ffmpeg_config.h"
  18. #ifdef _LOW_ACCURACY_
  19. # define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
  20. # //define LOOKUP_T const unsigned char
  21. #else
  22. # define X(n) (n)
  23. # //define LOOKUP_T const ogg_int32_t
  24. #endif
  25. // #include <codecs.h>
  26. #include "asm_arm.h"
  27. // #include "asm_mcf5249.h"
  28. // #include "codeclib_misc.h"
  29. #ifndef ICONST_ATTR_TREMOR_WINDOW
  30. #define ICONST_ATTR_TREMOR_WINDOW ICONST_ATTR
  31. #endif
  32. #ifndef ICODE_ATTR_TREMOR_MDCT
  33. #define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR
  34. #endif
  35. #ifndef ICODE_ATTR_TREMOR_NOT_MDCT
  36. #define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR
  37. #endif
  38. #ifdef _LOW_ACCURACY_
  39. #define cPI3_8 (0x0062)
  40. #define cPI2_8 (0x00b5)
  41. #define cPI1_8 (0x00ed)
  42. #else
  43. #define cPI3_8 (0x30fbc54d)
  44. #define cPI2_8 (0x5a82799a)
  45. #define cPI1_8 (0x7641af3d)
  46. #endif
  47. extern void mdct_backward(int n, int32_t *in, int32_t *out);
  48. #endif