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.
|
|
//----------------------------------------------------------------------------
// Dr.Frucht Systems Ltd.
// Copyright � 2000-2017. All Rights Reserved.
// Version 2.0 6/11/2019
// Last modification: 6/11/2019
// PROJECT:
// SUBSYSTEM:
// FILE: rgooseIPCamera.h
// AUTHOR: gagua
// OVERVIEW
// ~~~~~~~~
// Header file of rgooseIPCamera.h
//----------------------------------------------------------------------------
//
#ifndef __ARGUS_PTZ_CAMERA_CTRL_HEADER__
#define __ARGUS_PTZ_CAMERA_CTRL_HEADER__
#include <vector>
#include <queue>
#include "rgooseCamera.h"
#include "../components/base/basicThread.h"
#include "../components/base/basicMutex.h"
#include "../data/protocol/protocolPTZ.h"
//https://www.ebay.com/itm/Professional-Rolling-Makeup-Case-Bulb-Mirror-Cosmetic-Artist-Dressing-Train-Case/233264525474
//ffmpeg -i input.mp4 -af loudnorm=I=-23:LRA=7:tp=-2:print_format=json -f null -
//ffmpeg -i input.mp4 -af loudnorm=I=-23:LRA=7:tp=-2:measured_I=-30:measured_LRA=1.1:measured_tp=-11 04:measured_thresh=-40.21:offset=-0.47 -ar 48k -y output.mp4
typedef struct S_CAM_PTZ_CMD{ uint8_t CMD; float PAN; float TILT; float ZOOM;}CAM_PTZ_CMD;
typedef std::queue<CAM_PTZ_CMD *> CAM_PTZ_CMD_QUEUE;
typedef enum E_CAM_WORKING_STATE{ CAM_WS_INIIT = 0, CAM_WS_WHITE_BALLANCE = 1, CAM_WS_BACKLIGHT = 2, CAM_WS_AUTO_FOCUS = 3,
CAM_WS_READY = 128, CAM_WS_END = 255}CAM_WORK_STATE;
typedef enum E_CAM_PTZ_CMD{ PTZ_STOP = 0, PTZ_MOVE = 1, PTZ_ABSOLUTE = 2}PTZ_CMD;
class ARGUS_PTZCAM: public ARGUS_Camera, public basicThread { private: basicLogCollection * m_pLog; protocolPTZ * m_pProtocol; uint8_t m_bState; CAM_PTZ_CMD_QUEUE m_qCAM_CMD; basicMutex m_mQPROTECTOR; protected: virtual bool relativeMove( float PanSPD, float TiltSPD, float ZoomSPD ); virtual bool relativeStop(); virtual bool absoluteMove( float PanPOS, float TiltPOS, float ZoomPOS ); virtual void m_fThreadProc( void ); public: explicit ARGUS_PTZCAM( uint32_t id ); ~ARGUS_PTZCAM(); //bool create( );// CSTR ip, CSTR username, CSTR password );
//virtual void dispatchEvent( EVENT_CONTAINER *Evt );
virtual bool startService(); //virtual bool stopService();
};
#endif
|