mp3dec_pmp3_dec.h
来自「瑞星微公司RK27XX系列芯片的SDK开发包」· C头文件 代码 · 共 101 行
H
101 行
#if 1
extern AudioDecoder MP3DecoderHPQ;
#else
static AudioDecoder MP3DecoderHPQ;
#endif
#ifndef _MPGDATA_H_
#define _MPGDATA_H_
/*******************************************************************
* NOTE: The instance data MUST be aligned on a 2048-byte boundary. *
* One instance has already been defined. This should be adequate *
* for most applications. *
*******************************************************************/
typedef char tmInstance[11000];
typedef char tmScratch[5292];
extern tmInstance mInstance;
extern tmScratch mScratch;
#endif
#define SEEK_BY_BYTES 1
#define SEEK_BY_TIME 2
#define MP3_MAX_PCM_LENGTH 1152
typedef struct tagDecoderList
{
const AudioDecoder *Decoder ;
char *descript;
char *extensions;
sDecoderFormats formats[1];
sDecoderRequirements requirements[1];
oDecoderHandle *handle;
void *instancestate;
void *scratch;
} DecoderList ;
extern DecoderList AudioDecoders[];
/* Typedefs */
#define MP3_PCM_BUFFER_SIZE (MP3_MAX_PCM_LENGTH * 3)
#define MP3_ENCODED_DATA_SIZE (2048)
#define pENCODED_DATA (pMP3->pcEncodedData)
typedef struct
{
DecoderList *workspace;
eDecoderStatus status;
sDecoderBitstream bitstream;
sDecoderOutput output;
tmInstance *pmInstance;
tmScratch *pmScratch;
char pcEncodedData[MP3_ENCODED_DATA_SIZE];
short psLeft[MP3_PCM_BUFFER_SIZE];
short psRight[MP3_PCM_BUFFER_SIZE];
BufferState *pOutput;
int buffer_ptr[2];
unsigned short usValid;
unsigned short usSampleRate;
unsigned char ucChannels;
unsigned char ucIsVBR;
unsigned long ulFirstFrame;
unsigned long ulLength;
unsigned long ulTimeLength;
unsigned long ulBitRate;
unsigned long ulTimePos;
} tMP3;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?