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.4 KiB
52 lines
1.4 KiB
#ifndef __PROTOCOL_PTZ_VISCA_HEADER__
|
|
#define __PROTOCOL_PTZ_VISCA_HEADER__
|
|
|
|
#include "protocolPTZ.h"
|
|
|
|
class protocolPTZ_VISCA : public protocolPTZ
|
|
{
|
|
private:
|
|
|
|
basicLogCollection * m_pLog;
|
|
U8 m_aSlots[16];
|
|
// U8 m_bLANC_ID;
|
|
basicMutex m_mInquiryMutex;
|
|
config_setting_t * m_pSettings;
|
|
|
|
/* Internal Methods */
|
|
bool sendIfClear(void);
|
|
bool setPowerSaveMode(bool nMode);
|
|
bool getPowerSaveMode(void);
|
|
bool startZoomWide(void);
|
|
bool startZoomTele(void);
|
|
bool startZoomWide(double nSpeed);
|
|
bool startZoomTele(double nSpeed);
|
|
bool stopZoom(void);
|
|
bool resetPTZDrive(void);
|
|
bool goHomePosition(void);
|
|
|
|
protected:
|
|
|
|
protocolPackage * packetExtractor(unsigned char * Buffer, size_t BufferSize);
|
|
int packetChecker(U8 * Buffer, size_t BufferSize);
|
|
// bool packetHandler( unsigned char *Buffer, size_t BufferSize );
|
|
bool packetHandler(protocolPackage * Package);
|
|
|
|
public:
|
|
|
|
explicit protocolPTZ_VISCA(config_setting_t * Settings = NULL);
|
|
explicit protocolPTZ_VISCA(uint8_t CAM_ID);
|
|
virtual ~protocolPTZ_VISCA();
|
|
|
|
/* Implemen Generic PTZ Interface */
|
|
virtual bool create(void);
|
|
virtual bool initCamera(void);
|
|
virtual bool setAutoFocus(bool nMode);
|
|
virtual bool setZoom(double nZoom);
|
|
virtual double getZoom(void);
|
|
virtual bool move(uint32_t MoveMatrix);
|
|
virtual bool goAbsolute(float dPan, float dTilt, float dZoom);
|
|
virtual bool setOSD(bool nMode);
|
|
};
|
|
|
|
#endif
|