2
0

statname.h 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* ***** BEGIN LICENSE BLOCK *****
  2. * Version: RCSL 1.0/RPSL 1.0
  3. *
  4. * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
  5. *
  6. * The contents of this file, and the files included with this file, are
  7. * subject to the current version of the RealNetworks Public Source License
  8. * Version 1.0 (the "RPSL") available at
  9. * http://www.helixcommunity.org/content/rpsl unless you have licensed
  10. * the file under the RealNetworks Community Source License Version 1.0
  11. * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl,
  12. * in which case the RCSL will apply. You may also obtain the license terms
  13. * directly from RealNetworks. You may not use this file except in
  14. * compliance with the RPSL or, if you have a valid RCSL with RealNetworks
  15. * applicable to this file, the RCSL. Please see the applicable RPSL or
  16. * RCSL for the rights, obligations and limitations governing use of the
  17. * contents of the file.
  18. *
  19. * This file is part of the Helix DNA Technology. RealNetworks is the
  20. * developer of the Original Code and owns the copyrights in the portions
  21. * it created.
  22. *
  23. * This file, and the files included with this file, is distributed and made
  24. * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  25. * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  26. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
  27. * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  28. *
  29. * Technology Compatibility Kit Test Suite(s) Location:
  30. * http://www.helixcommunity.org/content/tck
  31. *
  32. * Contributor(s):
  33. *
  34. * ***** END LICENSE BLOCK ***** */
  35. /**************************************************************************************
  36. * Fixed-point MP3 decoder
  37. * Jon Recker (jrecker@real.com), Ken Cooke (kenc@real.com)
  38. * June 2003
  39. *
  40. * statname.h - name mangling macros for static linking
  41. **************************************************************************************/
  42. #ifndef _STATNAME_H
  43. #define _STATNAME_H
  44. /* define STAT_PREFIX to a unique name for static linking
  45. * all the C functions and global variables will be mangled by the preprocessor
  46. * e.g. void FFT(int *fftbuf) becomes void cook_FFT(int *fftbuf)
  47. */
  48. #define STAT_PREFIX xmp3
  49. #define STATCC1(x,y,z) STATCC2(x,y,z)
  50. #define STATCC2(x,y,z) x##y##z
  51. #ifdef STAT_PREFIX
  52. #define STATNAME(func) STATCC1(STAT_PREFIX, _, func)
  53. #else
  54. #define STATNAME(func) func
  55. #endif
  56. /* these symbols are common to all implementations */
  57. #define CheckPadBit STATNAME(CheckPadBit)
  58. #define UnpackFrameHeader STATNAME(UnpackFrameHeader)
  59. #define UnpackSideInfo STATNAME(UnpackSideInfo)
  60. #define AllocateBuffers STATNAME(AllocateBuffers)
  61. #define FreeBuffers STATNAME(FreeBuffers)
  62. #define DecodeHuffman STATNAME(DecodeHuffman)
  63. #define Dequantize STATNAME(Dequantize)
  64. #define IMDCT STATNAME(IMDCT)
  65. #define UnpackScaleFactors STATNAME(UnpackScaleFactors)
  66. #define Subband STATNAME(Subband)
  67. #define samplerateTab STATNAME(samplerateTab)
  68. #define bitrateTab STATNAME(bitrateTab)
  69. #define samplesPerFrameTab STATNAME(samplesPerFrameTab)
  70. #define bitsPerSlotTab STATNAME(bitsPerSlotTab)
  71. #define sideBytesTab STATNAME(sideBytesTab)
  72. #define slotTab STATNAME(slotTab)
  73. #define sfBandTable STATNAME(sfBandTable)
  74. /* in your implementation's top-level include file (e.g. real\coder.h) you should
  75. * add new #define sym STATNAME(sym) lines for all the
  76. * additional global functions or variables which your
  77. * implementation uses
  78. */
  79. #endif /* _STATNAME_H */