Nut/OS  4.10.3
API Reference
mp3dec.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _MP3FrameInfo

Defines

#define MAINBUF_SIZE   1940
#define MAX_NGRAN   2
#define MAX_NCHAN   2
#define MAX_NSAMP   576

Typedefs

typedef void * HMP3Decoder
typedef struct _MP3FrameInfo MP3FrameInfo

Enumerations

enum  MPEGVersion { MPEG1 = 0, MPEG2 = 1, MPEG25 = 2 }
enum  {
  ERR_MP3_NONE = 0, ERR_MP3_INDATA_UNDERFLOW = -1, ERR_MP3_MAINDATA_UNDERFLOW = -2, ERR_MP3_FREE_BITRATE_SYNC = -3,
  ERR_MP3_OUT_OF_MEMORY = -4, ERR_MP3_NULL_POINTER = -5, ERR_MP3_INVALID_FRAMEHEADER = -6, ERR_MP3_INVALID_SIDEINFO = -7,
  ERR_MP3_INVALID_SCALEFACT = -8, ERR_MP3_INVALID_HUFFCODES = -9, ERR_UNKNOWN = -9999
}

Functions

HMP3Decoder MP3InitDecoder (void)
void MP3FreeDecoder (HMP3Decoder hMP3Decoder)
int MP3Decode (HMP3Decoder hMP3Decoder, unsigned char **inbuf, int *bytesLeft, short *outbuf, int useSize)
void MP3GetLastFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo)
int MP3GetNextFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo, unsigned char *buf)
int MP3FindSyncWord (unsigned char *buf, int nBytes)

Define Documentation

#define MAINBUF_SIZE   1940

Definition at line 77 of file mp3dec.h.

Referenced by FeederThread().

#define MAX_NGRAN   2

Definition at line 80 of file mp3dec.h.

#define MAX_NCHAN   2

Definition at line 83 of file mp3dec.h.

#define MAX_NSAMP   576

Definition at line 86 of file mp3dec.h.


Typedef Documentation

typedef void* HMP3Decoder

Definition at line 95 of file mp3dec.h.

typedef struct _MP3FrameInfo MP3FrameInfo

Enumeration Type Documentation

Enumerator:
MPEG1 
MPEG2 
MPEG25 

Definition at line 89 of file mp3dec.h.

anonymous enum
Enumerator:
ERR_MP3_NONE 
ERR_MP3_INDATA_UNDERFLOW 
ERR_MP3_MAINDATA_UNDERFLOW 
ERR_MP3_FREE_BITRATE_SYNC 
ERR_MP3_OUT_OF_MEMORY 
ERR_MP3_NULL_POINTER 
ERR_MP3_INVALID_FRAMEHEADER 
ERR_MP3_INVALID_SIDEINFO 
ERR_MP3_INVALID_SCALEFACT 
ERR_MP3_INVALID_HUFFCODES 
ERR_UNKNOWN 

Definition at line 97 of file mp3dec.h.


Function Documentation

HMP3Decoder MP3InitDecoder ( void  )
void MP3FreeDecoder ( HMP3Decoder  hMP3Decoder)
int MP3Decode ( HMP3Decoder  hMP3Decoder,
unsigned char **  inbuf,
int *  bytesLeft,
short *  outbuf,
int  useSize 
)
void MP3GetLastFrameInfo ( HMP3Decoder  hMP3Decoder,
MP3FrameInfo mp3FrameInfo 
)
int MP3GetNextFrameInfo ( HMP3Decoder  hMP3Decoder,
MP3FrameInfo mp3FrameInfo,
unsigned char *  buf 
)
int MP3FindSyncWord ( unsigned char *  buf,
int  nBytes 
)