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.

59 lines
1.8 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: VideoCaptureDevice.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VideoCaptureDevice.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__CAPTURE__DEVICE__H__INCLUDED__
  15. #define __VIDEO__CAPTURE__DEVICE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "VideoDevice.h"
  20. #include "VideoCaptureSource.h"
  21. #include "VideoCamera.h"
  22. class CVideoCaptureDevice :
  23. public CVideoDevice
  24. {
  25. public:
  26. CVideoCaptureDevice();
  27. virtual ~CVideoCaptureDevice();
  28. public:
  29. virtual void SetIOCount( int nInput, int nOutput );
  30. virtual void Destroy();
  31. public:
  32. int GetVideoDeviceID() { return m_nVideoDeviceID; }
  33. void SetVideoDeviceID( INT nID ) { m_nVideoDeviceID = nID; }
  34. void SetVideoStandard( INT nStandard ) { m_nVideoStandard = nStandard; }
  35. INT GetVideoStandard() { return m_nVideoStandard; }
  36. public:
  37. BOOL AssignVideoCamera( int nIndex, CVideoCamera *pVideoCamera );
  38. BOOL AssignCaptureSource( int nInput, CVideoCaptureSource *pVideoCaptureSource );
  39. BOOL Capture( int nInput, LPBITMAPINFO *pBitmapInfo, LPBYTE *ppBytes, HBITMAP *pBitmap, DWORD dwPreviewTime = 0 );
  40. int GetAvailiblePin( CVideoPin *pOutputPin, int nSearchFrom = -1 );
  41. CVideoCaptureSource *GetCaptureSource( int nInput ) { return nInput < GetInputCount() ? m_ppVideoCaptureSource[nInput] : NULL; }
  42. protected:
  43. CVideoCaptureSource **m_ppVideoCaptureSource;
  44. private:
  45. INT m_nVideoDeviceID;
  46. private:
  47. INT m_nVideoStandard;
  48. };
  49. #endif