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.

54 lines
1.5 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: 05/12/2002
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgHWVideoInput.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 "LgHWVideoSwitchDevice.h"
  22. class CLgHWVideoEngine;
  23. class CLgHWVideoCamera;
  24. // video input
  25. class CLgHWVideoInput :
  26. public CLgHWVideoSwitchDevice,
  27. public CLgSingleLink<CLgHWVideoInput,CLgHWVideoEngine>,
  28. public CLgSingleLink<CLgHWVideoInput,CLgHWVideoCamera>
  29. {
  30. public:
  31. CLgHWVideoInput();
  32. virtual ~CLgHWVideoInput();
  33. public:
  34. BOOL Create();
  35. void Destroy();
  36. public:
  37. virtual BOOL HWVideoInputSampleGet( INT nSampleID ) = 0;
  38. virtual void OnHWVideoInputSample( CLgImageDIB*, INT nSampleID );
  39. public:
  40. CLgHWVideoPinInput *GetVideoPinInput() { return CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoPinInput>::GetCount() ? CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoPinInput>::GetAt(0)->GetThis() : NULL; }
  41. public:
  42. // no switching capabilities
  43. virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) { return FALSE; }
  44. };
  45. #endif