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.

51 lines
1.4 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: VideoCaptureSource.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of VideoCaptureSource.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "VideoCamera.h"
  16. #include "VideoCaptureSource.h"
  17. #include "..\..\LgLib\Version.h"
  18. #ifdef _DEBUG
  19. #undef THIS_FILE
  20. static char THIS_FILE[]=__FILE__;
  21. #define new DEBUG_NEW
  22. #endif
  23. CVideoCaptureSource::CVideoCaptureSource()
  24. {
  25. m_pVideoCamera = NULL;
  26. m_nPreviewMaxImageCount = 0;
  27. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CVideoCaptureSource::CVideoCaptureSource") );
  28. }
  29. CVideoCaptureSource::~CVideoCaptureSource()
  30. {
  31. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CVideoCaptureSource::~CVideoCaptureSource") );
  32. }
  33. BOOL CVideoCaptureSource::AssignVideoCamera( CVideoCamera *pVideoCamera )
  34. {
  35. if( pVideoCamera != m_pVideoCamera )
  36. {
  37. if( m_pVideoCamera )
  38. m_pVideoCamera->AssignCaptureSource( NULL );
  39. m_pVideoCamera = pVideoCamera;
  40. if( m_pVideoCamera )
  41. m_pVideoCamera->AssignCaptureSource( this );
  42. }
  43. return TRUE;
  44. }