libpictureplayer.h 799 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <stdio.h>
  3. #include "ipicdatastruct.h"
  4. #ifdef _WIN32
  5. #ifdef LIBPICTUREPLAYER_EXPORTS
  6. #define LIBPICTUREPLAYER_API __declspec(dllexport)
  7. #else
  8. #define LIBPICTUREPLAYER_API __declspec(dllimport)
  9. #endif
  10. # elif ( defined(__GNUC__) && __GNUC__ >= 4 )
  11. #define LIBPICTUREPLAYER_API __attribute__((visibility("default")))
  12. #else // RVC_OS_WIN
  13. #define LIBPICTUREPLAYER_API
  14. #endif // RVC_OS_WIN
  15. class libpictureplayer_impl;
  16. class LIBPICTUREPLAYER_API Clibpictureplayer
  17. {
  18. public:
  19. Clibpictureplayer(CPicHostApi* pHostApi);
  20. ~Clibpictureplayer();
  21. void Play(int nCfgInx, int nWndX, int nWndY, int nWndWidth, int nWndHeight);
  22. void PlayMedia(CPicPlayConfig& config);
  23. bool checkIsStop();
  24. bool checkIsPlay(void* pthreadid);
  25. void Close();
  26. private:
  27. libpictureplayer_impl* m_pImpl;
  28. };