2
0

statname.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* ***** BEGIN LICENSE BLOCK *****
  2. * Source last modified: $Id: statname.h,v 1.1 2005/02/26 01:47:34 jrecker Exp $
  3. *
  4. * Portions Copyright (c) 1995-2005 RealNetworks, Inc. All Rights Reserved.
  5. *
  6. * The contents of this file, and the files included with this file,
  7. * are subject to the current version of the RealNetworks Public
  8. * Source License (the "RPSL") available at
  9. * http://www.helixcommunity.org/content/rpsl unless you have licensed
  10. * the file under the current version of the RealNetworks Community
  11. * Source License (the "RCSL") available at
  12. * http://www.helixcommunity.org/content/rcsl, in which case the RCSL
  13. * will apply. You may also obtain the license terms directly from
  14. * RealNetworks. You may not use this file except in compliance with
  15. * the RPSL or, if you have a valid RCSL with RealNetworks applicable
  16. * to this file, the RCSL. Please see the applicable RPSL or RCSL for
  17. * the rights, obligations and limitations governing use of the
  18. * contents of the file.
  19. *
  20. * This file is part of the Helix DNA Technology. RealNetworks is the
  21. * developer of the Original Code and owns the copyrights in the
  22. * portions it created.
  23. *
  24. * This file, and the files included with this file, is distributed
  25. * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY
  26. * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS
  27. * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES
  28. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
  29. * ENJOYMENT OR NON-INFRINGEMENT.
  30. *
  31. * Technology Compatibility Kit Test Suite(s) Location:
  32. * http://www.helixcommunity.org/content/tck
  33. *
  34. * Contributor(s):
  35. *
  36. * ***** END LICENSE BLOCK ***** */
  37. /**************************************************************************************
  38. * Fixed-point HE-AAC decoder
  39. * Jon Recker (jrecker@real.com)
  40. * February 2005
  41. *
  42. * statname.h - name mangling macros for static linking
  43. **************************************************************************************/
  44. #ifndef _STATNAME_H
  45. #define _STATNAME_H
  46. /* define STAT_PREFIX to a unique name for static linking
  47. * all the C functions and global variables will be mangled by the preprocessor
  48. * e.g. void DCT4(...) becomes void raac_DCT4(...)
  49. */
  50. #define STAT_PREFIX raac
  51. #define STATCC1(x,y,z) STATCC2(x,y,z)
  52. #define STATCC2(x,y,z) x##y##z
  53. #ifdef STAT_PREFIX
  54. #define STATNAME(func) STATCC1(STAT_PREFIX, _, func)
  55. #else
  56. #define STATNAME(func) func
  57. #endif
  58. /* these symbols are common to all implementations */
  59. #define AllocateBuffers STATNAME(AllocateBuffers)
  60. #define FreeBuffers STATNAME(FreeBuffers)
  61. #define ClearBuffer STATNAME(ClearBuffer)
  62. #define SetRawBlockParams STATNAME(SetRawBlockParams)
  63. #define PrepareRawBlock STATNAME(PrepareRawBlock)
  64. #define FlushCodec STATNAME(FlushCodec)
  65. #define UnpackADTSHeader STATNAME(UnpackADTSHeader)
  66. #define GetADTSChannelMapping STATNAME(GetADTSChannelMapping)
  67. #define UnpackADIFHeader STATNAME(UnpackADIFHeader)
  68. #define DecodeNextElement STATNAME(DecodeNextElement)
  69. #define DecodeNoiselessData STATNAME(DecodeNoiselessData)
  70. #define Dequantize STATNAME(Dequantize)
  71. #define StereoProcess STATNAME(StereoProcess)
  72. #define DeinterleaveShortBlocks STATNAME(DeinterleaveShortBlocks)
  73. #define PNS STATNAME(PNS)
  74. #define TNSFilter STATNAME(TNSFilter)
  75. #define IMDCT STATNAME(IMDCT)
  76. #define InitSBR STATNAME(InitSBR)
  77. #define DecodeSBRBitstream STATNAME(DecodeSBRBitstream)
  78. #define DecodeSBRData STATNAME(DecodeSBRData)
  79. #define FreeSBR STATNAME(FreeSBR)
  80. #define FlushCodecSBR STATNAME(FlushCodecSBR)
  81. /* global ROM tables */
  82. #define sampRateTab STATNAME(sampRateTab)
  83. #define predSFBMax STATNAME(predSFBMax)
  84. #define channelMapTab STATNAME(channelMapTab)
  85. #define elementNumChans STATNAME(elementNumChans)
  86. #define sfBandTotalShort STATNAME(sfBandTotalShort)
  87. #define sfBandTotalLong STATNAME(sfBandTotalLong)
  88. #define sfBandTabShortOffset STATNAME(sfBandTabShortOffset)
  89. #define sfBandTabShort STATNAME(sfBandTabShort)
  90. #define sfBandTabLongOffset STATNAME(sfBandTabLongOffset)
  91. #define sfBandTabLong STATNAME(sfBandTabLong)
  92. #define tnsMaxBandsShortOffset STATNAME(tnsMaxBandsShortOffset)
  93. #define tnsMaxBandsShort STATNAME(tnsMaxBandsShort)
  94. #define tnsMaxOrderShort STATNAME(tnsMaxOrderShort)
  95. #define tnsMaxBandsLongOffset STATNAME(tnsMaxBandsLongOffset)
  96. #define tnsMaxBandsLong STATNAME(tnsMaxBandsLong)
  97. #define tnsMaxOrderLong STATNAME(tnsMaxOrderLong)
  98. /* in your implementation's top-level include file (e.g. real\coder.h) you should
  99. * add new #define sym STATNAME(sym) lines for all the
  100. * additional global functions or variables which your
  101. * implementation uses
  102. */
  103. #endif /* _STATNAME_H */