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.

49 lines
1.2 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.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of LgHWVideoInput.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "LgHWVideoInput.h"
  16. #include "LgHWVideoCamera.h"
  17. #include "LgHWVideoPinInput.h"
  18. #include "LgHWVideoPinOutput.h"
  19. CLgHWVideoInput::CLgHWVideoInput()
  20. {
  21. }
  22. CLgHWVideoInput::~CLgHWVideoInput()
  23. {
  24. Destroy();
  25. }
  26. BOOL CLgHWVideoInput::Create()
  27. {
  28. // create video device with one video input
  29. return CLgHWVideoSwitchDevice::Create( 1, 0 );
  30. }
  31. void CLgHWVideoInput::Destroy()
  32. {
  33. // nessesary to call for prevent pure functions call
  34. CLgHWVideoSwitchDevice::Destroy();
  35. }
  36. void CLgHWVideoInput::OnHWVideoInputSample( CLgImageDIB* pDIB, INT nSampleID )
  37. {
  38. CLgHWVideoCamera *pCamera = *this;
  39. if( !pCamera )
  40. return;
  41. // pass sample to connected camera
  42. pCamera->OnHWVideoCameraSample( pDIB, nSampleID );
  43. }