You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __OBJECT_CAMERA_ONVIF_PTZ_HEADERS__
  2. #define __OBJECT_CAMERA_ONVIF_PTZ_HEADERS__
  3. #ifndef __linux__
  4. #include <WinSock2.h>
  5. #endif
  6. #include "../base/basicCameraPTZ.h"
  7. #include "../../data/media/video/videoAVLIBSource.h"
  8. #include "../../data/media/mediaVideoSourceManager.h"
  9. #include "../../hardware/uart/serialPort.h"
  10. #include "../../data/protocol/protocolPTZ_VISCA.h"
  11. #include <libconfig.h>
  12. class OnvifClientDevice;
  13. class OnvifClientPTZ;
  14. class objectCamera_ONVIF_PTZ : public basicCameraPTZ {
  15. private:
  16. basicLogCollection *m_pLog;
  17. CSTR m_pDeviceURI;
  18. int m_nProfileID;
  19. CSTR m_pAccessUser;
  20. CSTR m_pAccessPassword;
  21. protected:
  22. OnvifClientDevice *m_pDeviceNode;
  23. OnvifClientPTZ *m_pPtzNode;
  24. std::string *m_pProfileToken;
  25. public:
  26. explicit objectCamera_ONVIF_PTZ(config_setting_t *Settings = NULL);
  27. ~objectCamera_ONVIF_PTZ();
  28. bool create( void );
  29. bool create( mediaSourceInfo *SI );
  30. void cmdBeginPanLeft(void);
  31. void cmdBeginPanRight(void);
  32. void cmdEndManualPan(void);
  33. void cmdBeginTiltUp(void);
  34. void cmdBeginTiltDown(void);
  35. void cmdEndManualTilt(void);
  36. void cmdBeginZoomWide(void);
  37. void cmdBeginZoomTele(void);
  38. void cmdEndManualZoom(void);
  39. virtual void dispatch( basicEvent *Evt );
  40. };
  41. #endif