Old fashion design for PC-104
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.

71 lines
2.0 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: VideoCamera.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VideoCamera.h
  13. //----------------------------------------------------------------------------
  14. // VideoCamera.h: interface for the CVideoCamera class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #if !defined(AFX_VIDEOCAMERA_H__65EB3433_5B66_4881_9714_275ED154976D__INCLUDED_)
  18. #define AFX_VIDEOCAMERA_H__65EB3433_5B66_4881_9714_275ED154976D__INCLUDED_
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. //#include "VideoPinCO.h"
  23. #include "VideoDevice.h"
  24. enum { VC_NONE, VC_PTZ, VC_FIX };
  25. class CVideoCaptureSource;
  26. class CVideoCamera : public CVideoDevice
  27. {
  28. public:
  29. CVideoCamera();
  30. virtual ~CVideoCamera();
  31. public:
  32. virtual void CheckState();
  33. virtual BOOL Connect( CVideoPin *pPin, BOOL bAutoConnect = TRUE, BOOL bAutoDisconnect = TRUE, DWORD dwTimeLimit = 3000UL );
  34. virtual BOOL Disconnect();
  35. virtual BOOL AssignCaptureSource( CVideoCaptureSource *pVideoCaptureSource );
  36. virtual CVideoCaptureSource *GetVideoCaptureSource() { return m_pVideoCaptureSource; }
  37. int GetType() { return m_nType; }
  38. BOOL IsLock() { return m_bLock; }
  39. void Lock() { m_bLock = TRUE; }
  40. void Unlock() { m_bLock = FALSE; }
  41. public:
  42. CString* GetName() { return &m_Name; }
  43. void SetName( CString* pName ) { m_Name = *pName; }
  44. private:
  45. // data for automatic connection
  46. CVideoPin *m_pWaitPin;
  47. // time of start connection
  48. DWORD m_dwWaitTime;
  49. // maximum connection time in automatic mode
  50. DWORD m_dwTimeLimit;
  51. // is nessesary to disconnect automaticaly after connect
  52. BOOL m_bAutoDisconnect;
  53. protected:
  54. CString m_Name;
  55. int m_nType;
  56. int m_bLock;
  57. CVideoCaptureSource *m_pVideoCaptureSource;
  58. };
  59. #endif