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.

69 lines
2.0 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 24/03/2000
  5. // Last modification: 08/10/2003
  6. // Project Intruder Position Indicator
  7. // SUBSYSTEM: Video Camera Showing Window
  8. // FILE: VideoDirectShowWnd.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file for class CVideoDirectShowWnd
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__DIRECT__SHOW__WND__H__INCLUDED__
  15. #define __VIDEO__DIRECT__SHOW__WND__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "VideoWnd.h"
  20. #include "..\lglib\video\DirectShowBase.h"
  21. #include "..\lglib\video\DirectShowVideo.h"
  22. #include "..\lglib\DirectDraw\LgDirectDrawVideo.h"
  23. #define WM_VIDEO_SAMPLE (WM_USER + 1)
  24. class CVideoDirectShowWnd :
  25. public CVideoWnd,
  26. public CDirectShowVideo,
  27. public CLgDirectDrawVideo
  28. {
  29. public:
  30. CVideoDirectShowWnd();
  31. virtual ~CVideoDirectShowWnd();
  32. public:
  33. virtual BOOL Create( BOOL bStretchVideo, HWND hParentWnd, INT x, INT y, INT cx, INT cy, CProfile *pProfile );
  34. protected:
  35. virtual HBITMAP StoreImage( HANDLE, LPCTSTR, INT nWidth, INT nHeight, INT nBitCount );
  36. virtual HBITMAP StoreImage( LPBYTE, LPCTSTR, INT nWidth, INT nHeight, INT nBitCount );
  37. virtual HBITMAP GetSnapshot();
  38. protected:
  39. virtual void OnVideoSample( double SampleTime );
  40. protected:
  41. virtual CLgImageDIB& GetDirectDrawVideoDIB() { return GetDirectShowDIB(); }
  42. private:
  43. virtual LRESULT OnDestroy( WPARAM wParam, LPARAM lParam );
  44. virtual LRESULT OnSize( WPARAM wParam, LPARAM lParam );
  45. virtual LRESULT WindowProc( UINT, WPARAM, LPARAM );
  46. virtual LRESULT OnShowWindow( WPARAM, LPARAM );
  47. virtual void OnPaint( HDC hDC );
  48. LRESULT OnVideoSample( WPARAM, LPARAM );
  49. protected:
  50. DWORD m_dwTime;
  51. INT m_nCount;
  52. INT m_nLastCount;
  53. private:
  54. CLgImageDIB m_StoreDIB;
  55. };
  56. #endif