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.

65 lines
1.8 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: LgHWVideoSwitch.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgHWVideoSwitchDevice.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__HW__VIDEO__SWITCH__DEVICE__H__INCLUDED__
  15. #define __LG__HW__VIDEO__SWITCH__DEVICE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\LgLink.h"
  20. #include "LgHWVideoPin.h"
  21. class CLgHWVideoPinInput;
  22. class CLgHWVideoPinOutput;
  23. class CLgHWVideoJob;
  24. // switch device
  25. class CLgHWVideoSwitch :
  26. public CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinInput>, // input video pins
  27. public CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinOutput>,// output video pins
  28. public CLgLinkP<CLgHWVideoSwitch,CLgHWVideoJob>
  29. {
  30. public:
  31. typedef CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinInput> SwitchToInputLinkP;
  32. typedef CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinOutput> SwitchToOutputLinkP;
  33. typedef CLgLinkP<CLgHWVideoSwitch,CLgHWVideoJob> SwitchToJobLinkP;
  34. public:
  35. CLgHWVideoSwitch();
  36. virtual ~CLgHWVideoSwitch();
  37. public:
  38. BOOL Create( INT nInput, INT nOutput );
  39. void Destroy();
  40. public:
  41. virtual BOOL Link( CLgLink<CLgHWVideoJob,CLgHWVideoSwitch> *pJob );
  42. public:
  43. // switching method
  44. virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) = 0;
  45. public:
  46. // notification about switching
  47. virtual void OnHWVideoSwitchDeviceSwitch( INT nInput, INT nOutput );
  48. private:
  49. BOOL CheckJobArray();
  50. private:
  51. INT m_nRequestCount;
  52. };
  53. #endif