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.
65 lines
1.8 KiB
65 lines
1.8 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgHWVideoSwitch.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgHWVideoSwitchDevice.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__HW__VIDEO__SWITCH__DEVICE__H__INCLUDED__
|
|
#define __LG__HW__VIDEO__SWITCH__DEVICE__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\LgLink.h"
|
|
#include "LgHWVideoPin.h"
|
|
|
|
class CLgHWVideoPinInput;
|
|
class CLgHWVideoPinOutput;
|
|
class CLgHWVideoJob;
|
|
|
|
// switch device
|
|
class CLgHWVideoSwitch :
|
|
public CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinInput>, // input video pins
|
|
public CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinOutput>,// output video pins
|
|
public CLgLinkP<CLgHWVideoSwitch,CLgHWVideoJob>
|
|
{
|
|
public:
|
|
typedef CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinInput> SwitchToInputLinkP;
|
|
typedef CLgLinkP<CLgHWVideoSwitch,CLgHWVideoPin,CLgHWVideoPinOutput> SwitchToOutputLinkP;
|
|
typedef CLgLinkP<CLgHWVideoSwitch,CLgHWVideoJob> SwitchToJobLinkP;
|
|
|
|
public:
|
|
CLgHWVideoSwitch();
|
|
virtual ~CLgHWVideoSwitch();
|
|
|
|
public:
|
|
BOOL Create( INT nInput, INT nOutput );
|
|
void Destroy();
|
|
|
|
public:
|
|
virtual BOOL Link( CLgLink<CLgHWVideoJob,CLgHWVideoSwitch> *pJob );
|
|
|
|
public:
|
|
// switching method
|
|
virtual BOOL HWVideoSwitchDeviceSwitch( INT nInput, INT nOutput ) = 0;
|
|
|
|
public:
|
|
// notification about switching
|
|
virtual void OnHWVideoSwitchDeviceSwitch( INT nInput, INT nOutput );
|
|
|
|
private:
|
|
BOOL CheckJobArray();
|
|
|
|
private:
|
|
INT m_nRequestCount;
|
|
};
|
|
|
|
#endif
|