statname.h

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK ***** 
00002  * Version: RCSL 1.0/RPSL 1.0 
00003  *  
00004  * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
00005  *      
00006  * The contents of this file, and the files included with this file, are 
00007  * subject to the current version of the RealNetworks Public Source License 
00008  * Version 1.0 (the "RPSL") available at 
00009  * http://www.helixcommunity.org/content/rpsl unless you have licensed 
00010  * the file under the RealNetworks Community Source License Version 1.0 
00011  * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
00012  * in which case the RCSL will apply. You may also obtain the license terms 
00013  * directly from RealNetworks.  You may not use this file except in 
00014  * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
00015  * applicable to this file, the RCSL.  Please see the applicable RPSL or 
00016  * RCSL for the rights, obligations and limitations governing use of the 
00017  * contents of the file.  
00018  *  
00019  * This file is part of the Helix DNA Technology. RealNetworks is the 
00020  * developer of the Original Code and owns the copyrights in the portions 
00021  * it created. 
00022  *  
00023  * This file, and the files included with this file, is distributed and made 
00024  * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
00025  * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
00026  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
00027  * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
00028  * 
00029  * Technology Compatibility Kit Test Suite(s) Location: 
00030  *    http://www.helixcommunity.org/content/tck 
00031  * 
00032  * Contributor(s): 
00033  *  
00034  * ***** END LICENSE BLOCK ***** */ 
00035 
00036 /**************************************************************************************
00037  * Fixed-point MP3 decoder
00038  * Jon Recker (jrecker@real.com), Ken Cooke (kenc@real.com)
00039  * June 2003
00040  *
00041  * statname.h - name mangling macros for static linking
00042  **************************************************************************************/
00043 
00044 #ifndef _STATNAME_H
00045 #define _STATNAME_H
00046 
00047 /* define STAT_PREFIX to a unique name for static linking 
00048  * all the C functions and global variables will be mangled by the preprocessor
00049  *   e.g. void FFT(int *fftbuf) becomes void cook_FFT(int *fftbuf)
00050  */
00051 #define STAT_PREFIX     xmp3
00052 
00053 #define STATCC1(x,y,z)  STATCC2(x,y,z)
00054 #define STATCC2(x,y,z)  x##y##z  
00055 
00056 #ifdef STAT_PREFIX
00057 #define STATNAME(func)  STATCC1(STAT_PREFIX, _, func)
00058 #else
00059 #define STATNAME(func)  func
00060 #endif
00061 
00062 /* these symbols are common to all implementations */
00063 #define CheckPadBit         STATNAME(CheckPadBit)
00064 #define UnpackFrameHeader   STATNAME(UnpackFrameHeader)
00065 #define UnpackSideInfo      STATNAME(UnpackSideInfo)
00066 #define AllocateBuffers     STATNAME(AllocateBuffers)
00067 #define FreeBuffers         STATNAME(FreeBuffers)
00068 #define DecodeHuffman       STATNAME(DecodeHuffman)
00069 #define Dequantize          STATNAME(Dequantize)
00070 #define IMDCT               STATNAME(IMDCT)
00071 #define UnpackScaleFactors  STATNAME(UnpackScaleFactors)
00072 #define Subband             STATNAME(Subband)
00073 
00074 #define samplerateTab       STATNAME(samplerateTab)
00075 #define bitrateTab          STATNAME(bitrateTab)
00076 #define samplesPerFrameTab  STATNAME(samplesPerFrameTab)
00077 #define bitsPerSlotTab      STATNAME(bitsPerSlotTab)
00078 #define sideBytesTab        STATNAME(sideBytesTab)
00079 #define slotTab             STATNAME(slotTab)
00080 #define sfBandTable         STATNAME(sfBandTable)
00081 
00082 /* in your implementation's top-level include file (e.g. real\coder.h) you should
00083  *   add new #define sym STATNAME(sym) lines for all the
00084  *   additional global functions or variables which your
00085  *   implementation uses
00086  */
00087 
00088 #endif /* _STATNAME_H */

© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/