mp3common.h File Reference

Go to the source code of this file.

Data Structures

struct  MP3DecInfo
struct  SFBandTable

Defines

#define MAX_SCFBD   4
#define NGRANS_MPEG1   2
#define NGRANS_MPEG2   1
#define SYNCWORDH   0xff
#define SYNCWORDL   0xe0

Functions

MP3DecInfoAllocateBuffers (void)
void FreeBuffers (MP3DecInfo *mp3DecInfo)
int CheckPadBit (MP3DecInfo *mp3DecInfo)
int UnpackFrameHeader (MP3DecInfo *mp3DecInfo, unsigned char *buf)
int UnpackSideInfo (MP3DecInfo *mp3DecInfo, unsigned char *buf)
int DecodeHuffman (MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int huffBlockBits, int gr, int ch)
int Dequantize (MP3DecInfo *mp3DecInfo, int gr)
int IMDCT (MP3DecInfo *mp3DecInfo, int gr, int ch)
int UnpackScaleFactors (MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int bitsAvail, int gr, int ch)
int Subband (MP3DecInfo *mp3DecInfo, short *pcmBuf)

Variables

const int samplerateTab [3][3]
const short bitrateTab [3][3][15]
const short samplesPerFrameTab [3][3]
const short bitsPerSlotTab [3]
const short sideBytesTab [3][2]
const short slotTab [3][3][15]
const SFBandTable sfBandTable [3][3]

Define Documentation

#define MAX_SCFBD   4

Definition at line 50 of file mp3common.h.

#define NGRANS_MPEG1   2

Definition at line 51 of file mp3common.h.

#define NGRANS_MPEG2   1

Definition at line 52 of file mp3common.h.

#define SYNCWORDH   0xff

Definition at line 55 of file mp3common.h.

#define SYNCWORDL   0xe0

Definition at line 56 of file mp3common.h.


Function Documentation

MP3DecInfo* AllocateBuffers ( void   ) 
void FreeBuffers ( MP3DecInfo mp3DecInfo  ) 
int CheckPadBit ( MP3DecInfo mp3DecInfo  ) 
int UnpackFrameHeader ( MP3DecInfo mp3DecInfo,
unsigned char *  buf 
)
int UnpackSideInfo ( MP3DecInfo mp3DecInfo,
unsigned char *  buf 
)
int DecodeHuffman ( MP3DecInfo mp3DecInfo,
unsigned char *  buf,
int *  bitOffset,
int  huffBlockBits,
int  gr,
int  ch 
)
int Dequantize ( MP3DecInfo mp3DecInfo,
int  gr 
)
int IMDCT ( MP3DecInfo mp3DecInfo,
int  gr,
int  ch 
)
int UnpackScaleFactors ( MP3DecInfo mp3DecInfo,
unsigned char *  buf,
int *  bitOffset,
int  bitsAvail,
int  gr,
int  ch 
)
int Subband ( MP3DecInfo mp3DecInfo,
short *  pcmBuf 
)

Variable Documentation

const int samplerateTab[3][3]
const short bitrateTab[3][3][15]
const short samplesPerFrameTab[3][3]
const short bitsPerSlotTab[3]
const short sideBytesTab[3][2]
const short slotTab[3][3][15]
const SFBandTable sfBandTable[3][3]

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