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.

47 lines
1.3 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: VideoCaptureSource.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VideoCaptureSource.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__CAPTURE__SOURCE__H__INCLUDED__
  15. #define __VIDEO__CAPTURE__SOURCE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. class CVideoCamera;
  20. class CVideoCaptureSource
  21. {
  22. public:
  23. CVideoCaptureSource();
  24. virtual ~CVideoCaptureSource();
  25. public:
  26. virtual BOOL AssignVideoCamera( CVideoCamera *pVideoCamera );
  27. CVideoCamera *GetVideoCamera() { return m_pVideoCamera; }
  28. public:
  29. void UpdateMaxPreviewImageCount( INT nImageCount ) { if( nImageCount > m_nPreviewMaxImageCount ) m_nPreviewMaxImageCount = nImageCount; }
  30. INT GetMaxPreviewImageCount() { return m_nPreviewMaxImageCount; }
  31. public:
  32. virtual BOOL Capture( LPBITMAPINFO *pBitmapInfo, LPBYTE *ppBytes, HBITMAP *pBitmap, DWORD dwPreviewTime = 0 ) = 0;
  33. protected:
  34. CVideoCamera *m_pVideoCamera;
  35. protected:
  36. INT m_nPreviewMaxImageCount;
  37. };
  38. #endif