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.

51 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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 "../../data/media/mediaVideoSourceManager.h"
  7. #include "../../data/media/video/videoAVLIBSource.h"
  8. #include "../../data/protocol/protocolPTZ_VISCA.h"
  9. #include "../../hardware/uart/serialPort.h"
  10. #include "../base/basicCameraPTZ.h"
  11. #include <libconfig.h>
  12. class objectCamera_VISCA_PTZ : public basicCameraPTZ
  13. {
  14. private:
  15. basicLogCollection * m_pLog;
  16. int m_sSourcePort;
  17. protected:
  18. protocolPTZ_VISCA * m_pProtocol;
  19. serialPort * m_pTransport;
  20. public:
  21. explicit objectCamera_VISCA_PTZ(config_setting_t * Settings = NULL);
  22. ~objectCamera_VISCA_PTZ();
  23. bool create(void);
  24. bool create(mediaSourceInfo * SI);
  25. void cmdBeginPanLeft(void);
  26. void cmdBeginPanRight(void);
  27. void cmdEndManualPan(void);
  28. void cmdBeginTiltUp(void);
  29. void cmdBeginTiltDown(void);
  30. void cmdEndManualTilt(void);
  31. void cmdBeginZoomWide(void);
  32. void cmdBeginZoomTele(void);
  33. void cmdEndManualZoom(void);
  34. virtual void dispatch(basicEvent * Evt);
  35. };
  36. #endif