File nut/contrib/hxmp3/mp3dec.c

* Fixed-point MP3 decoder * Jon Recker (jrecker@real.com), Ken Cooke (kenc@real.com) * June 2003 * * mp3dec.c - platform-independent top level MP3 decoder API


Included Files


Global Function MP3Decode()

int MP3Decode ( HMP3Decoder hMP3Decoder, unsigned char** inbuf, int* bytesLeft, short* outbuf, int useSize )
Prototyped in: nut/include/contrib/hxmp3/mp3dec.h
Calls: MP3ClearBadFrame() nut/contrib/hxmp3/mp3dec.c
  MP3FindFreeSync() nut/contrib/hxmp3/mp3dec.c
  memcpy() nut/c/string/memcpy.c
  xmp3_DecodeHuffman() nut/contrib/hxmp3/huffman.c
  memmove(), xmp3_CheckPadBit(), xmp3_Dequantize(), xmp3_IMDCT(), xmp3_Subband(), xmp3_UnpackFrameHeader(), xmp3_UnpackScaleFactors(), xmp3_UnpackSideInfo()

Global Function MP3FindSyncWord()

int MP3FindSyncWord ( unsigned char* buf, int nBytes )
Prototyped in: nut/include/contrib/hxmp3/mp3dec.h
Called by: MP3FindFreeSync() nut/contrib/hxmp3/mp3dec.c

Global Function MP3FreeDecoder()

void MP3FreeDecoder ( HMP3Decoder hMP3Decoder )
Prototyped in: nut/include/contrib/hxmp3/mp3dec.h
Calls: xmp3_FreeBuffers() nut/contrib/hxmp3/buffers.c

Global Function MP3GetLastFrameInfo()

void MP3GetLastFrameInfo ( HMP3Decoder hMP3Decoder, MP3FrameInfo* mp3FrameInfo )
Prototyped in: nut/include/contrib/hxmp3/mp3dec.h
Called by: MP3GetNextFrameInfo() nut/contrib/hxmp3/mp3dec.c

Global Function MP3GetNextFrameInfo()

int MP3GetNextFrameInfo ( HMP3Decoder hMP3Decoder, MP3FrameInfo* mp3FrameInfo, unsigned char* buf )
Prototyped in: nut/include/contrib/hxmp3/mp3dec.h
Calls: MP3GetLastFrameInfo() nut/contrib/hxmp3/mp3dec.c
  xmp3_UnpackFrameHeader()

Global Function MP3InitDecoder()

HMP3Decoder MP3InitDecoder ( void )
Prototyped in: nut/include/contrib/hxmp3/mp3dec.h
Calls: xmp3_AllocateBuffers() nut/contrib/hxmp3/buffers.c

Local Function MP3ClearBadFrame()

static void MP3ClearBadFrame ( MP3DecInfo* mp3DecInfo, short* outbuf )
Called by: MP3Decode() nut/contrib/hxmp3/mp3dec.c

Local Function MP3FindFreeSync()

static int MP3FindFreeSync ( unsigned char* buf, unsigned char firstFH[4], int nBytes )
Calls: MP3FindSyncWord() nut/contrib/hxmp3/mp3dec.c
Called by: MP3Decode() nut/contrib/hxmp3/mp3dec.c