![]() |
CI13LC SDK API手册
2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
|
结构体 | |
| struct | _MP3DecInfo |
| struct | _SFBandTable |
宏定义 | |
| #define | MAX_SCFBD 4 /* max scalefactor bands per channel */ |
| #define | NGRANS_MPEG1 2 |
| #define | NGRANS_MPEG2 1 |
| #define | SYNCWORDH 0xff |
| #define | SYNCWORDL 0xe0 |
类型定义 | |
| typedef struct _MP3DecInfo | MP3DecInfo |
| typedef struct _SFBandTable | SFBandTable |
函数 | |
| MP3DecInfo * | xmp3_AllocateBuffers (void) |
| void | xmp3_FreeBuffers (MP3DecInfo *mp3DecInfo) |
| void | xmp3_ClearBuffers (MP3DecInfo *mp3DecInfo) |
| int | xmp3_CheckPadBit (MP3DecInfo *mp3DecInfo) |
| int | xmp3_UnpackFrameHeader (MP3DecInfo *mp3DecInfo, unsigned char *buf) |
| int | xmp3_UnpackSideInfo (MP3DecInfo *mp3DecInfo, unsigned char *buf) |
| int | xmp3_DecodeHuffman (MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int huffBlockBits, int gr, int ch) |
| int | xmp3_Dequantize (MP3DecInfo *mp3DecInfo, int gr) |
| int | xmp3_IMDCT (MP3DecInfo *mp3DecInfo, int gr, int ch) |
| int | xmp3_UnpackScaleFactors (MP3DecInfo *mp3DecInfo, unsigned char *buf, int *bitOffset, int bitsAvail, int gr, int ch) |
| int | xmp3_Subband (MP3DecInfo *mp3DecInfo, short *pcmBuf) |
变量 | |
| const int | xmp3_samplerateTab [3][3] |
| const short | xmp3_bitrateTab [3][3][15] |
| const short | xmp3_samplesPerFrameTab [3][3] |
| const short | xmp3_bitsPerSlotTab [3] |
| const short | xmp3_sideBytesTab [3][2] |
| const short | xmp3_slotTab [3][3][15] |
| const SFBandTable | xmp3_sfBandTable [3][3] |
| struct _MP3DecInfo |
| 成员变量 | ||
|---|---|---|
| int | bitrate | |
| void * | DequantInfoPS | |
| void * | FrameHeaderPS | |
| int | freeBitrateFlag | |
| int | freeBitrateSlots | |
| void * | HuffmanInfoPS | |
| void * | IMDCTInfoPS | |
| int | layer | |
| unsigned char | mainBuf[MAINBUF_SIZE] | |
| int | mainDataBegin | |
| int | mainDataBytes | |
| int | nChans | |
| int | nGrans | |
| int | nGranSamps | |
| int | nSlots | |
| int | part23Length[MAX_NGRAN][MAX_NCHAN] | |
| int | samprate | |
| void * | ScaleFactorInfoPS | |
| void * | SideInfoPS | |
| void * | SubbandInfoPS | |
| MPEGVersion | version | |
| #define MAX_SCFBD 4 /* max scalefactor bands per channel */ |
| #define NGRANS_MPEG1 2 |
| #define NGRANS_MPEG2 1 |
| #define SYNCWORDH 0xff |
| #define SYNCWORDL 0xe0 |
| typedef struct _MP3DecInfo MP3DecInfo |
| typedef struct _SFBandTable SFBandTable |
| MP3DecInfo* xmp3_AllocateBuffers | ( | void | ) |
| int xmp3_CheckPadBit | ( | MP3DecInfo * | mp3DecInfo | ) |
| void xmp3_ClearBuffers | ( | MP3DecInfo * | mp3DecInfo | ) |
| int xmp3_DecodeHuffman | ( | MP3DecInfo * | mp3DecInfo, |
| unsigned char * | buf, | ||
| int * | bitOffset, | ||
| int | huffBlockBits, | ||
| int | gr, | ||
| int | ch | ||
| ) |
| int xmp3_Dequantize | ( | MP3DecInfo * | mp3DecInfo, |
| int | gr | ||
| ) |
| void xmp3_FreeBuffers | ( | MP3DecInfo * | mp3DecInfo | ) |
| int xmp3_IMDCT | ( | MP3DecInfo * | mp3DecInfo, |
| int | gr, | ||
| int | ch | ||
| ) |
| int xmp3_Subband | ( | MP3DecInfo * | mp3DecInfo, |
| short * | pcmBuf | ||
| ) |
| int xmp3_UnpackFrameHeader | ( | MP3DecInfo * | mp3DecInfo, |
| unsigned char * | buf | ||
| ) |
| int xmp3_UnpackScaleFactors | ( | MP3DecInfo * | mp3DecInfo, |
| unsigned char * | buf, | ||
| int * | bitOffset, | ||
| int | bitsAvail, | ||
| int | gr, | ||
| int | ch | ||
| ) |
| int xmp3_UnpackSideInfo | ( | MP3DecInfo * | mp3DecInfo, |
| unsigned char * | buf | ||
| ) |
| const short xmp3_bitrateTab[3][3][15] |
| const short xmp3_bitsPerSlotTab[3] |
| const int xmp3_samplerateTab[3][3] |
| const short xmp3_samplesPerFrameTab[3][3] |
| const SFBandTable xmp3_sfBandTable[3][3] |
| const short xmp3_sideBytesTab[3][2] |
| const short xmp3_slotTab[3][3][15] |
1.8.14