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.

61 lines
1.7 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: DirectShowVideo.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DirectShowVideo.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __DIRECT__SHOW__VIDEO__H__INCLUDED__
  15. #define __DIRECT__SHOW__VIDEO__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\LgImageDIB.h"
  20. #include "..\Templ.h"
  21. #include "..\LgLink.h"
  22. class CDirectShowStream;
  23. class CDirectShowVideo :
  24. public CLgLinkSP<CDirectShowVideo,CDirectShowStream>
  25. {
  26. public:
  27. CDirectShowVideo();
  28. virtual ~CDirectShowVideo();
  29. public:
  30. CLgImageDIB& GetDirectShowDIB() { return m_DirectShowDIB; }
  31. public:
  32. void UpdateVideo( LPBITMAPINFOHEADER pBitmapInfoHeader, PBYTE pBytes, double SampleTime );
  33. protected:
  34. virtual void OnVideoSample( double SampleTime ) = 0;
  35. public:
  36. virtual BOOL Unlink( CLgLink<CDirectShowStream,CDirectShowVideo> *pLink = NULL );
  37. public:
  38. void SetVideoStandard( long nVideoStandard ) { m_nVideoStandard = nVideoStandard; }
  39. long GetVideoStandard() { return m_nVideoStandard; }
  40. void SetVideoInput( INT nVideoInput ) { m_nVideoInput = nVideoInput; }
  41. INT GetVideoInput() { return m_nVideoInput; }
  42. void ShowVideo( BOOL bShow ) { m_bShowVideo = bShow; }
  43. BOOL IsVideoShow() { return m_bShowVideo; }
  44. private:
  45. CLgImageDIB m_DirectShowDIB;
  46. BOOL m_bShowVideo;
  47. INT m_nVideoInput;
  48. long m_nVideoStandard;
  49. };
  50. #endif