OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
mp3common.h File Reference
#include "mp3dec.h"
#include "statname.h"

Go to the source code of this file.

Data Structures

struct  _MP3DecInfo
 
struct  _SFBandTable
 

Macros

#define MAX_SCFBD   4 /* max scalefactor bands per channel */
 
#define NGRANS_MPEG1   2
 
#define NGRANS_MPEG2   1
 
#define SYNCWORDH   0xff
 
#define SYNCWORDL   0xf0
 

Typedefs

typedef struct _MP3DecInfo MP3DecInfo
 
typedef struct _SFBandTable SFBandTable
 

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]
 

Macro Definition Documentation

◆ MAX_SCFBD

#define MAX_SCFBD   4 /* max scalefactor bands per channel */

Definition at line 50 of file mp3common.h.

◆ NGRANS_MPEG1

#define NGRANS_MPEG1   2

Definition at line 51 of file mp3common.h.

◆ NGRANS_MPEG2

#define NGRANS_MPEG2   1

Definition at line 52 of file mp3common.h.

◆ SYNCWORDH

#define SYNCWORDH   0xff

Definition at line 61 of file mp3common.h.

◆ SYNCWORDL

#define SYNCWORDL   0xf0

Definition at line 62 of file mp3common.h.

Typedef Documentation

◆ MP3DecInfo

typedef struct _MP3DecInfo MP3DecInfo

◆ SFBandTable

typedef struct _SFBandTable SFBandTable

Function Documentation

◆ AllocateBuffers()

MP3DecInfo * AllocateBuffers ( void )

Definition at line 92 of file buffers.c.

◆ CheckPadBit()

int CheckPadBit ( MP3DecInfo * mp3DecInfo)

Definition at line 188 of file bitstream.c.

◆ DecodeHuffman()

int DecodeHuffman ( MP3DecInfo * mp3DecInfo,
unsigned char * buf,
int * bitOffset,
int huffBlockBits,
int gr,
int ch )

Definition at line 380 of file huffman.c.

◆ Dequantize()

int Dequantize ( MP3DecInfo * mp3DecInfo,
int gr )

Definition at line 73 of file dequant.c.

◆ FreeBuffers()

void FreeBuffers ( MP3DecInfo * mp3DecInfo)

Definition at line 156 of file buffers.c.

◆ IMDCT()

int IMDCT ( MP3DecInfo * mp3DecInfo,
int gr,
int ch )

Definition at line 722 of file imdct.c.

◆ Subband()

int Subband ( MP3DecInfo * mp3DecInfo,
short * pcmBuf )

Definition at line 60 of file subband.c.

◆ UnpackFrameHeader()

int UnpackFrameHeader ( MP3DecInfo * mp3DecInfo,
unsigned char * buf )

Definition at line 218 of file bitstream.c.

◆ UnpackScaleFactors()

int UnpackScaleFactors ( MP3DecInfo * mp3DecInfo,
unsigned char * buf,
int * bitOffset,
int bitsAvail,
int gr,
int ch )

Definition at line 352 of file scalfact.c.

◆ UnpackSideInfo()

int UnpackSideInfo ( MP3DecInfo * mp3DecInfo,
unsigned char * buf )

Definition at line 302 of file bitstream.c.

Variable Documentation

◆ bitrateTab

const short bitrateTab[3][3][15]
extern

Definition at line 60 of file mp3tabs.c.

◆ bitsPerSlotTab

const short bitsPerSlotTab[3]
extern

Definition at line 91 of file mp3tabs.c.

◆ samplerateTab

const int samplerateTab[3][3]
extern

Definition at line 49 of file mp3tabs.c.

◆ samplesPerFrameTab

const short samplesPerFrameTab[3][3]
extern

Definition at line 84 of file mp3tabs.c.

◆ sfBandTable

const SFBandTable sfBandTable[3][3]
extern

Definition at line 131 of file mp3tabs.c.

◆ sideBytesTab

const short sideBytesTab[3][2]
extern

Definition at line 96 of file mp3tabs.c.

◆ slotTab

const short slotTab[3][3][15]
extern

Definition at line 106 of file mp3tabs.c.