#ifndef __I_PIC_DATA_STRUCT_H__ #define __I_PIC_DATA_STRUCT_H__ #ifdef RVC_OS_WIN #ifndef RVC_NO_VTABLE #define RVC_NO_VTABLE __declspec(novtable) #endif // !RVC_NO_VTABLE #else #ifndef RVC_NO_VTABLE #define RVC_NO_VTABLE #endif // !RVC_NO_VTABLE #endif // RVC_OS_WIN #ifndef MAX_FILECOUNT #define MAX_FILECOUNT 32 #endif // !MAX_FILECOUNT #ifndef MAX_PATH #define MAX_PATH 260 #endif enum pic_loglevel{ PIC_LOG_NO, PIC_LOG_DEBUG, PIC_LOG_INFO, PIC_LOG_ERROR }; struct CPicPlayConfig { bool bFullScreen; // 是否全屏 bool bPrimMonitor; // 是否主屏显示 int nWndX; // 窗口X坐标 int nWndY; // 窗口Y坐标 int nWndWidth; // 窗口宽度 int nWndHeight; // 窗口高度 int nFileCnt; // 文件个数 int nPlayCnt; // 播放次数 int nPlayInterval; // 播放时间间隔 char strRootPath[MAX_PATH]; // 根目录 char strFileNames[MAX_FILECOUNT][MAX_PATH]; // 文件名数组 }; struct RVC_NO_VTABLE CPicHostApi { virtual void PicDebug(pic_loglevel elvel, const char* fmt, ...) = 0; virtual int LoadPlayConfig(CPicPlayConfig& config, int CfgInx = 0) = 0; virtual int GetPicPlayerIcoPath(char* strPath, int iLen) = 0; }; #endif