hksdkapi.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef HKSDKAPI_H
  2. #define HKSDKAPI_H
  3. #include "hksdkdefine.h"
  4. class QString;
  5. /* ========================================================================
  6. * ************************* 海康SDK的一些宏定义 ***************************
  7. * ======================================================================== */
  8. /* 加载动态库 */
  9. bool load_HKSDK_Library(QString libPath);
  10. /* 海康SDK Net API */
  11. bool NET_DVR_Init();
  12. bool NET_DVR_Cleanup();
  13. bool NET_DVR_SetConnectTime(DWORD dwWaitTime = 3000, DWORD dwTryTimes = 3);
  14. bool NET_DVR_SetReconnect(DWORD dwInterval = 30000, BOOL bEnableRecon = true);
  15. LONG NET_DVR_Login_V40(LPNET_DVR_USER_LOGIN_INFO pLoginInfo, LPNET_DVR_DEVICEINFO_V40 lpDeviceInfo);
  16. bool NET_DVR_Logout(LONG lUserID);
  17. DWORD NET_DVR_GetLastError();
  18. LONG NET_DVR_RealPlay_V40(LONG lUserID, LPNET_DVR_PREVIEWINFO lpPreviewInfo, REALDATACALLBACK fRealDataCallBack_V30, void* pUser);
  19. bool NET_DVR_StopRealPlay(LONG lRealHandle);
  20. /* 播放器 PlayM4 API */
  21. bool PlayM4_GetPort(LONG* nPort);
  22. bool PlayM4_FreePort(LONG nPort);
  23. bool PlayM4_Stop(LONG nPort);
  24. bool PlayM4_OpenStream(LONG nPort, PBYTE pFileHeadBuf, DWORD nSize, DWORD nBufPoolSize);
  25. bool PlayM4_CloseStream(LONG nPort);
  26. bool PlayM4_SetDecCallBackMend(LONG nPort, void (CALLBACK* DecCBFun)(long nPort, char* pBuf, long nSize, FRAME_INFO* pFrameInfo, void* nUser, void* nReserved2), void* nUser);
  27. bool PlayM4_Play(LONG nPort, HWND hWnd);
  28. bool PlayM4_PlaySound(LONG nPort);
  29. bool PlayM4_InputData(LONG nPort, PBYTE pBuf, DWORD nSize);
  30. DWORD PlayM4_GetLastError(LONG nPort);
  31. #endif /* HKSDKAPI_H */