1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <stdio.h>
- #include "ipicdatastruct.h"
- #ifdef _WIN32
- #ifdef LIBPICTUREPLAYER_EXPORTS
- #define LIBPICTUREPLAYER_API __declspec(dllexport)
- #else
- #define LIBPICTUREPLAYER_API __declspec(dllimport)
- #endif
- # elif ( defined(__GNUC__) && __GNUC__ >= 4 )
- #define LIBPICTUREPLAYER_API __attribute__((visibility("default")))
- #else // RVC_OS_WIN
- #define LIBPICTUREPLAYER_API
- #endif // RVC_OS_WIN
- class libpictureplayer_impl;
- class LIBPICTUREPLAYER_API Clibpictureplayer
- {
- public:
- Clibpictureplayer(CPicHostApi* pHostApi);
- ~Clibpictureplayer();
- void Play(int nCfgInx, int nWndX, int nWndY, int nWndWidth, int nWndHeight);
- void PlayMedia(CPicPlayConfig& config);
- bool checkIsStop();
- bool checkIsPlay(void* pthreadid);
- void Close();
- private:
- libpictureplayer_impl* m_pImpl;
- };
|