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.
59 lines
1.5 KiB
59 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 05/12/2002
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgHWVideoSwitchDevice.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"
|
|
|
|
class CLgHWVideoPinInput;
|
|
class CLgHWVideoPinOutput;
|
|
class CLgHWVideoSwitchJob;
|
|
|
|
// switch device
|
|
class CLgHWVideoSwitchDevice :
|
|
public CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoPinInput>,
|
|
public CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoPinOutput>,
|
|
public CLgLink<CLgHWVideoSwitchDevice,CLgHWVideoSwitchJob>
|
|
{
|
|
public:
|
|
CLgHWVideoSwitchDevice();
|
|
virtual ~CLgHWVideoSwitchDevice();
|
|
|
|
public:
|
|
BOOL Create( INT nInput, INT nOutput );
|
|
void Destroy();
|
|
|
|
public:
|
|
virtual BOOL Link( CLgLink<CLgHWVideoSwitchJob,CLgHWVideoSwitchDevice> *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 CheckSwitchJobArray();
|
|
|
|
private:
|
|
INT m_nRequestCount;
|
|
};
|
|
|
|
#endif
|