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.
 
 
 
 
 

56 lines
1.3 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgHWSiteVideoInput.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgHWSiteVideoInput.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "LgHWSiteVideoInput.h"
#include "..\HWVideo\LgHWVideoSwitch.h"
#include "..\HWVideo\LgHWVideoPin.h"
CLgHWSiteVideoInput::CLgHWSiteVideoInput()
{
m_nSampleID = 0;
m_bNeedSample = FALSE;
}
CLgHWSiteVideoInput::~CLgHWSiteVideoInput()
{
// importent to call for prevent pure functions call
CLgHWVideoCapture::Destroy();
CDirectShowVideo::Unlink();
}
void CLgHWSiteVideoInput::OnVideoSample( double SampleTime )
{
m_nSampleID++;
if( !m_bNeedSample )
return;
m_bNeedSample = FALSE;
// send sample
OnHWVideoInputSample( &GetDirectShowDIB(), m_nSampleID );
}
BOOL CLgHWSiteVideoInput::HWVideoInputSampleGet( INT nSampleID )
{
if( nSampleID == m_nSampleID )
{
m_bNeedSample = TRUE;
return TRUE;
}
// send sample
OnHWVideoInputSample( &GetDirectShowDIB(), m_nSampleID );
return TRUE;
}