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.
74 lines
2.5 KiB
74 lines
2.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgHWVideoCamera.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgHWVideoCamera.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__HW__VIDEO__CAMERA__H__INCLUDED__
|
|
#define __LG__HW__VIDEO__CAMERA__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\Templ.h"
|
|
#include "..\LgImageDIB.h"
|
|
#include "LgHWVideoPin.h"
|
|
#include "LgHWVideoSwitch.h"
|
|
|
|
class CLgHWVideoJob;
|
|
class CLgHWVideoEngine;
|
|
class CLgHWVideoSwitch;
|
|
class CLgHWVideoCapture;
|
|
|
|
// video lines owner
|
|
class CLgHWVideoCamera :
|
|
public CLgHWVideoSwitch, // it is a switching device with one output
|
|
public CLgLinkSP<CLgHWVideoCamera,CLgHWVideoCapture>, // for lock video capture during building and activating
|
|
public CLgLinkP<CLgHWVideoCamera,CLgHWVideoPin>, // used for locking pins that are used in logical connection scheme
|
|
public CLgLinkP<CLgHWVideoCamera,CLgHWVideoJob>, // holds all switching jobs
|
|
public CLgLinkSP<CLgHWVideoCamera,CLgHWVideoEngine>
|
|
{
|
|
public:
|
|
typedef CLgLinkSP<CLgHWVideoCamera,CLgHWVideoCapture> CameraToCaptureLinkSP;
|
|
typedef CLgLinkP<CLgHWVideoCamera,CLgHWVideoPin> CameraToPinLinkP;
|
|
typedef CLgLinkP<CLgHWVideoCamera,CLgHWVideoJob> CameraToJobLinkP;
|
|
typedef CLgLinkSP<CLgHWVideoCamera,CLgHWVideoEngine> CameraToEngineLinkSP;
|
|
|
|
public:
|
|
CLgHWVideoCamera();
|
|
virtual ~CLgHWVideoCamera();
|
|
|
|
public:
|
|
BOOL Create();
|
|
void Destroy();
|
|
|
|
public:
|
|
// external access methods/events
|
|
virtual BOOL HWVideoCameraActivate( BOOL bActivate );
|
|
virtual void OnHWVideoCameraActivate( BOOL bActivate ) = 0;
|
|
virtual BOOL HWVideoCameraSampleGet( INT nSampleID );
|
|
virtual void OnHWVideoCameraSample( CLgImageDIB*, INT nSampleID ) = 0;
|
|
|
|
public:
|
|
CLgHWVideoPin *GetVideoPinOutput() { return SwitchToOutputLinkP::GetCount() ? SwitchToOutputLinkP::GetAt(0)->GetThis() : NULL; }
|
|
|
|
private:
|
|
BOOL GraphClear( CLgHWVideoPin *pPinInput, CLgHWVideoPin *pPinOutput );
|
|
BOOL GraphSetCost( CLgHWVideoPin *pPinInput, CLgHWVideoPin *pPinOutput, INT nCost );
|
|
BOOL GraphWayLock( CLgHWVideoPin *pPinInput, CLgHWVideoPin *pPinOutput );
|
|
BOOL GraphWayUnlock();
|
|
|
|
public:
|
|
// no switching capabilities
|
|
virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) { return FALSE; }
|
|
};
|
|
|
|
#endif
|