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

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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 "../components/base/basicEventHandler.h"
  19. #include "../components/base/basicThread.h"
  20. #include "../components/base/basicPosition.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 basicEventHandler, public basicThread{
  26. private:
  27. basicPosition * m_pPos;
  28. basicLogCollection * m_pLog;
  29. pOnvif * m_pOnVif;
  30. bool m_bOnline;
  31. bool m_bPtzCapable;
  32. char m_pIP[16];
  33. time_t m_tTimeTSeconds;
  34. char m_pPassword[CLOG];
  35. char m_pUserName[CLOG];
  36. char m_pDevToken[CLOG];
  37. char m_pProfileToken[CLOG];
  38. char m_pPtzToken[CLOG];
  39. protected:
  40. void m_fThreadProc( void );
  41. public:
  42. ARGUS_Camera();
  43. ~ARGUS_Camera();
  44. bool create( CSTR ip, CSTR username, CSTR password );
  45. bool isOnline( void ){ return m_bOnline; };
  46. virtual void dispatchEvent( basicEvent *Evt );
  47. };
  48. typedef std::vector<ARGUS_Camera *> vectorARGUS_Cameras;
  49. #endif