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.

58 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: LgHWVideoCapture.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgHWVideoInput.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__HW__VIDEO__INPUT__H__INCLUDED__
  15. #define __LG__HW__VIDEO__INPUT__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\Templ.h"
  20. #include "..\LgImageDIB.h"
  21. #include "LgHWVideoSwitch.h"
  22. class CLgHWVideoEngine;
  23. class CLgHWVideoCamera;
  24. // video input
  25. class CLgHWVideoCapture :
  26. public CLgHWVideoSwitch, // it is a switching device with several inputs only
  27. public CLgLinkSP<CLgHWVideoCapture,CLgHWVideoCamera>, // used for lock input during caemra activization
  28. public CLgLinkSP<CLgHWVideoCapture,CLgHWVideoEngine>
  29. {
  30. public:
  31. typedef CLgLinkSP<CLgHWVideoCapture,CLgHWVideoCamera> CaptureToCameraLinkSP;
  32. typedef CLgLinkSP<CLgHWVideoCapture,CLgHWVideoEngine> CaptureToEngineLinkSP;
  33. public:
  34. CLgHWVideoCapture();
  35. virtual ~CLgHWVideoCapture();
  36. public:
  37. BOOL Create();
  38. void Destroy();
  39. public:
  40. virtual BOOL HWVideoInputSampleGet( INT nSampleID ) = 0;
  41. virtual void OnHWVideoInputSample( CLgImageDIB*, INT nSampleID );
  42. public:
  43. CLgHWVideoPin *GetVideoPinInput() { return SwitchToInputLinkP::GetCount() ? SwitchToInputLinkP::GetAt(0)->GetThis() : NULL; }
  44. public:
  45. // no switching capabilities
  46. virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) { return FALSE; }
  47. };
  48. #endif