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.
58 lines
1.7 KiB
58 lines
1.7 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgHWVideoCapture.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgHWVideoInput.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__HW__VIDEO__INPUT__H__INCLUDED__
|
|
#define __LG__HW__VIDEO__INPUT__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\Templ.h"
|
|
#include "..\LgImageDIB.h"
|
|
#include "LgHWVideoSwitch.h"
|
|
|
|
class CLgHWVideoEngine;
|
|
class CLgHWVideoCamera;
|
|
|
|
// video input
|
|
class CLgHWVideoCapture :
|
|
public CLgHWVideoSwitch, // it is a switching device with several inputs only
|
|
public CLgLinkSP<CLgHWVideoCapture,CLgHWVideoCamera>, // used for lock input during caemra activization
|
|
public CLgLinkSP<CLgHWVideoCapture,CLgHWVideoEngine>
|
|
{
|
|
public:
|
|
typedef CLgLinkSP<CLgHWVideoCapture,CLgHWVideoCamera> CaptureToCameraLinkSP;
|
|
typedef CLgLinkSP<CLgHWVideoCapture,CLgHWVideoEngine> CaptureToEngineLinkSP;
|
|
|
|
public:
|
|
CLgHWVideoCapture();
|
|
virtual ~CLgHWVideoCapture();
|
|
|
|
public:
|
|
BOOL Create();
|
|
void Destroy();
|
|
|
|
public:
|
|
virtual BOOL HWVideoInputSampleGet( INT nSampleID ) = 0;
|
|
virtual void OnHWVideoInputSample( CLgImageDIB*, INT nSampleID );
|
|
|
|
public:
|
|
CLgHWVideoPin *GetVideoPinInput() { return SwitchToInputLinkP::GetCount() ? SwitchToInputLinkP::GetAt(0)->GetThis() : NULL; }
|
|
|
|
public:
|
|
// no switching capabilities
|
|
virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) { return FALSE; }
|
|
};
|
|
|
|
#endif
|