ipicdatastruct.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef __I_PIC_DATA_STRUCT_H__
  2. #define __I_PIC_DATA_STRUCT_H__
  3. #ifdef RVC_OS_WIN
  4. #ifndef RVC_NO_VTABLE
  5. #define RVC_NO_VTABLE __declspec(novtable)
  6. #endif // !RVC_NO_VTABLE
  7. #else
  8. #ifndef RVC_NO_VTABLE
  9. #define RVC_NO_VTABLE
  10. #endif // !RVC_NO_VTABLE
  11. #endif // RVC_OS_WIN
  12. #ifndef MAX_FILECOUNT
  13. #define MAX_FILECOUNT 32
  14. #endif // !MAX_FILECOUNT
  15. #ifndef MAX_PATH
  16. #define MAX_PATH 260
  17. #endif
  18. enum pic_loglevel{
  19. PIC_LOG_NO,
  20. PIC_LOG_DEBUG,
  21. PIC_LOG_INFO,
  22. PIC_LOG_ERROR
  23. };
  24. struct CPicPlayConfig
  25. {
  26. bool bFullScreen; // 是否全屏
  27. bool bPrimMonitor; // 是否主屏显示
  28. int nWndX; // 窗口X坐标
  29. int nWndY; // 窗口Y坐标
  30. int nWndWidth; // 窗口宽度
  31. int nWndHeight; // 窗口高度
  32. int nFileCnt; // 文件个数
  33. int nPlayCnt; // 播放次数
  34. int nPlayInterval; // 播放时间间隔
  35. char strRootPath[MAX_PATH]; // 根目录
  36. char strFileNames[MAX_FILECOUNT][MAX_PATH]; // 文件名数组
  37. };
  38. struct RVC_NO_VTABLE CPicHostApi
  39. {
  40. virtual void PicDebug(pic_loglevel elvel, const char* fmt, ...) = 0;
  41. virtual int LoadPlayConfig(CPicPlayConfig& config, int CfgInx = 0) = 0;
  42. virtual int GetPicPlayerIcoPath(char* strPath, int iLen) = 0;
  43. };
  44. #endif