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.
57 lines
1.8 KiB
57 lines
1.8 KiB
//----------------------------------------------------------------------------
|
|
// 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_IP_CAMERA_HEADER__
|
|
#define __ARGUS_IP_CAMERA_HEADER__
|
|
|
|
#include <vector>
|
|
#include "../components/base/basicEventHandler.h"
|
|
#include "../components/base/basicThread.h"
|
|
#include "../components/base/basicPosition.h"
|
|
#include "../data/ponvif/ponvif.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
|
|
|
|
|
|
class ARGUS_Camera: public basicEventHandler, public basicThread{
|
|
private:
|
|
basicPosition * m_pPos;
|
|
basicLogCollection * m_pLog;
|
|
pOnvif * m_pOnVif;
|
|
bool m_bOnline;
|
|
bool m_bPtzCapable;
|
|
char m_pIP[16];
|
|
time_t m_tTimeTSeconds;
|
|
char m_pPassword[CLOG];
|
|
char m_pUserName[CLOG];
|
|
char m_pDevToken[CLOG];
|
|
char m_pProfileToken[CLOG];
|
|
char m_pPtzToken[CLOG];
|
|
protected:
|
|
void m_fThreadProc( void );
|
|
public:
|
|
ARGUS_Camera();
|
|
~ARGUS_Camera();
|
|
bool create( CSTR ip, CSTR username, CSTR password );
|
|
bool isOnline( void ){ return m_bOnline; };
|
|
virtual void dispatchEvent( basicEvent *Evt );
|
|
|
|
};
|
|
|
|
typedef std::vector<ARGUS_Camera *> vectorARGUS_Cameras;
|
|
|
|
#endif
|