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.

56 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Dr.Frucht Systems Ltd.
  3. // Copyright � 2000-2017. All Rights Reserved.
  4. // Version 2.0 6/11/2019
  5. // Last modification: 6/11/2019
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: rgooseIPCamera.h
  9. // AUTHOR: gagua
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of rgooseIPCamera.h
  13. //----------------------------------------------------------------------------
  14. //
  15. #ifndef __ARGUS_IP_CAMERA_HEADER__
  16. #define __ARGUS_IP_CAMERA_HEADER__
  17. #include <vector>
  18. #include "rgooseNode.h"
  19. #include "../components/base/basicEventHandler.h"
  20. #include "../components/base/basicThread.h"
  21. #include "../data/ponvif/ponvif.h"
  22. //https://www.ebay.com/itm/Professional-Rolling-Makeup-Case-Bulb-Mirror-Cosmetic-Artist-Dressing-Train-Case/233264525474
  23. //ffmpeg -i input.mp4 -af loudnorm=I=-23:LRA=7:tp=-2:print_format=json -f null -
  24. //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
  25. class ARGUS_Camera: public argusNetNode, public basicEventHandler, public basicThread{
  26. private:
  27. basicLogCollection * m_pLog;
  28. pOnvif * m_pOnVif;
  29. bool m_bOnline;
  30. bool m_bPtzCapable;
  31. char m_pIP[16];
  32. time_t m_tTimeTSeconds;
  33. char m_pPassword[CTEXT];
  34. char m_pUserName[CTEXT];
  35. char m_pDevToken[CTEXT];
  36. char m_pProfileToken[CTEXT];
  37. char m_pPtzToken[CTEXT];
  38. protected:
  39. void m_fThreadProc( void );
  40. public:
  41. ARGUS_Camera();
  42. ~ARGUS_Camera();
  43. bool create( CSTR ip, CSTR username, CSTR password );
  44. bool isOnline( void ){ return m_bOnline; };
  45. virtual bool dispatchEvent( basicEvent *Evt );
  46. };
  47. typedef std::vector<ARGUS_Camera *> vectorARGUS_Cameras;
  48. #endif