www.pudn.com > AVS1.6.rar > avsdeclib.h
#ifndef _AVSDECLIB_H_
#define _AVSDECLIB_H_
#define DLLEXPORT __declspec( dllexport )
#define DLLIMPORT __declspec( dllimport )
#ifdef __cplusplus
extern "C" { // only need to export C interface if
// used by C++ source code
#endif
typedef struct
{
unsigned char *pY;
unsigned char *pU;
unsigned char *pV;
int width;
int height;
int pitch_y;
int pitch_uv;
int frame_tr;
int dectime;
int frame_type;
int frame_rate_code;
} YUVFrame;
DLLEXPORT int OpenAVSDec(char * Reserve1, char *Reserve2);
DLLEXPORT int DecOneFrameFromBuffer(unsigned char *pbBuf, int iBufLen, YUVFrame *pDecFrame);
DLLEXPORT int GetOneFrameBitsFromBuffer(unsigned char *pFrameBuf, int iBufLen, int *pFrameLen, int* pNoUseDataLen);
DLLEXPORT void CloseAVSDec();
DLLEXPORT int GetAVSDecLastError();
#ifdef __cplusplus
}
#endif
#endif