![]() |
CI13LC SDK API手册
2.1.1
本手册用于描述CI13LC SDK各个组件和驱动API
|
#include <stdlib.h>结构体 | |
| struct | _MP3FrameInfo |
宏定义 | |
| #define | MAINBUF_SIZE 1940 |
| #define | MAX_NGRAN 2 /* max granules */ |
| #define | MAX_NCHAN 2 /* max channels */ |
| #define | MAX_NSAMP 576 /* max samples per channel, per granule */ |
类型定义 | |
| typedef void * | HMP3Decoder |
| typedef void * | MP3SaveLastInfo |
| typedef struct _MP3FrameInfo | MP3FrameInfo |
枚举 | |
| 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_MP3_INVALID_DEQUANTIZE = -10, ERR_MP3_INVALID_IMDCT = -11, ERR_MP3_INVALID_SUBBAND = -12, ERR_MP3_UNKNOWN = -9999 } |
函数 | |
| HMP3Decoder | MP3InitDecoder (void) |
| void | MP3FreeDecoder (HMP3Decoder hMP3Decoder) |
| int | MP3Decode (HMP3Decoder hMP3Decoder, unsigned char **inbuf, int *bytesLeft, short *outbuf, int useSize) |
| size_t | MP3GetSaveLastInfoStructSize (void) |
| int | MP3ClearLastDecodeMainData (HMP3Decoder hMP3Decoder) |
| int | MP3SaveLastDecodeMainData (HMP3Decoder hMP3Decoder, MP3SaveLastInfo saveInfo) |
| int | MP3LoadLastDecodeMainData (HMP3Decoder hMP3Decoder, MP3SaveLastInfo saveInfo) |
| void | MP3GetLastFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo) |
| int | MP3GetNextFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo, unsigned char *buf) |
| int | MP3FindSyncWord (unsigned char *buf, int nBytes) |
| void | MP3Lib_Set_Func (void *f1, void *f2, void *f3, void *f4, void *f5) |
| struct _MP3FrameInfo |
| #define MAINBUF_SIZE 1940 |
| #define MAX_NCHAN 2 /* max channels */ |
| #define MAX_NGRAN 2 /* max granules */ |
| #define MAX_NSAMP 576 /* max samples per channel, per granule */ |
| typedef void* HMP3Decoder |
| typedef struct _MP3FrameInfo MP3FrameInfo |
| typedef void* MP3SaveLastInfo |
| anonymous enum |
| int MP3ClearLastDecodeMainData | ( | HMP3Decoder | hMP3Decoder | ) |
| int MP3Decode | ( | HMP3Decoder | hMP3Decoder, |
| unsigned char ** | inbuf, | ||
| int * | bytesLeft, | ||
| short * | outbuf, | ||
| int | useSize | ||
| ) |
| int MP3FindSyncWord | ( | unsigned char * | buf, |
| int | nBytes | ||
| ) |
| void MP3FreeDecoder | ( | HMP3Decoder | hMP3Decoder | ) |
| void MP3GetLastFrameInfo | ( | HMP3Decoder | hMP3Decoder, |
| MP3FrameInfo * | mp3FrameInfo | ||
| ) |
| int MP3GetNextFrameInfo | ( | HMP3Decoder | hMP3Decoder, |
| MP3FrameInfo * | mp3FrameInfo, | ||
| unsigned char * | buf | ||
| ) |
| size_t MP3GetSaveLastInfoStructSize | ( | void | ) |
| HMP3Decoder MP3InitDecoder | ( | void | ) |
| void MP3Lib_Set_Func | ( | void * | f1, |
| void * | f2, | ||
| void * | f3, | ||
| void * | f4, | ||
| void * | f5 | ||
| ) |
| int MP3LoadLastDecodeMainData | ( | HMP3Decoder | hMP3Decoder, |
| MP3SaveLastInfo | saveInfo | ||
| ) |
| int MP3SaveLastDecodeMainData | ( | HMP3Decoder | hMP3Decoder, |
| MP3SaveLastInfo | saveInfo | ||
| ) |
1.8.14