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
49 lines
1.2 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 05/12/2002
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgHWVideoInput.cpp
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Source file of LgHWVideoInput.cpp
|
|
//----------------------------------------------------------------------------
|
|
#include "stdafx.h"
|
|
#include "LgHWVideoInput.h"
|
|
#include "LgHWVideoCamera.h"
|
|
#include "LgHWVideoPinInput.h"
|
|
#include "LgHWVideoPinOutput.h"
|
|
|
|
CLgHWVideoInput::CLgHWVideoInput()
|
|
{
|
|
}
|
|
|
|
CLgHWVideoInput::~CLgHWVideoInput()
|
|
{
|
|
Destroy();
|
|
}
|
|
|
|
BOOL CLgHWVideoInput::Create()
|
|
{
|
|
// create video device with one video input
|
|
return CLgHWVideoSwitchDevice::Create( 1, 0 );
|
|
}
|
|
|
|
void CLgHWVideoInput::Destroy()
|
|
{
|
|
// nessesary to call for prevent pure functions call
|
|
CLgHWVideoSwitchDevice::Destroy();
|
|
}
|
|
|
|
void CLgHWVideoInput::OnHWVideoInputSample( CLgImageDIB* pDIB, INT nSampleID )
|
|
{
|
|
CLgHWVideoCamera *pCamera = *this;
|
|
if( !pCamera )
|
|
return;
|
|
|
|
// pass sample to connected camera
|
|
pCamera->OnHWVideoCameraSample( pDIB, nSampleID );
|
|
}
|