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.

44 lines
1.1 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __OBJECT_CAMERA_VISCA_PTZ_HEADERS__
  2. #define __OBJECT_CAMERA_VISCA_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 objectCamera_VISCA_PTZ : public basicCameraPTZ {
  13. private:
  14. basicLogCollection *m_pLog;
  15. int m_sSourcePort;
  16. protected:
  17. protocolPTZ_VISCA *m_pProtocol;
  18. serialPort *m_pTransport;
  19. public:
  20. explicit objectCamera_VISCA_PTZ(config_setting_t *Settings = NULL);
  21. ~objectCamera_VISCA_PTZ();
  22. bool create( void );
  23. bool create( mediaSourceInfo *SI );
  24. void cmdBeginPanLeft(void);
  25. void cmdBeginPanRight(void);
  26. void cmdEndManualPan(void);
  27. void cmdBeginTiltUp(void);
  28. void cmdBeginTiltDown(void);
  29. void cmdEndManualTilt(void);
  30. void cmdBeginZoomWide(void);
  31. void cmdBeginZoomTele(void);
  32. void cmdEndManualZoom(void);
  33. virtual void dispatch( basicEvent *Evt );
  34. };
  35. #endif