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.
83 lines
2.1 KiB
83 lines
2.1 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: VideoPin.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of VideoPin.h
|
|
//----------------------------------------------------------------------------
|
|
// VideoPin.h: interface for the CVideoPin class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_VIDEOPIN_H__609B3AE9_84DA_4F9E_9070_415C86E9DB2E__INCLUDED_)
|
|
#define AFX_VIDEOPIN_H__609B3AE9_84DA_4F9E_9070_415C86E9DB2E__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class CVideoPin
|
|
{
|
|
public:
|
|
CVideoPin();
|
|
virtual ~CVideoPin();
|
|
|
|
public:
|
|
BOOL WayLock( CVideoPin *pEPin );
|
|
BOOL WayCheck();
|
|
void WayUnlock();
|
|
|
|
private:
|
|
void GraphClear();
|
|
BOOL GraphSearch( CVideoPin* pEPin, int nCost );
|
|
void GraphLock();
|
|
|
|
public:
|
|
virtual BOOL Connect( CVideoPin *pPin );
|
|
|
|
protected:
|
|
friend class CVideoDevice;
|
|
void SetPinDir( int nPinDir ) { m_nPinDir = nPinDir; }
|
|
int GetIndex() { return m_nIndex; }
|
|
void SetVideoDevice( CVideoDevice *pVideoDevice, int nIndex ) { m_pVideoDevice = pVideoDevice; m_nIndex = nIndex; }
|
|
|
|
public:
|
|
void GetVideoDevice( CVideoDevice **ppVideoDevice, PINT pIndex ) { *ppVideoDevice = m_pVideoDevice; *pIndex = m_nIndex; }
|
|
|
|
public:
|
|
CVideoPin* GetCPin() { return m_pCPin; }
|
|
virtual BOOL Associate( CVideoPin *pPin );
|
|
CVideoPin* GetAPin() { return m_pAPin; }
|
|
|
|
protected:
|
|
void Lock() { m_bLock = TRUE; }
|
|
void Unlock() { m_bLock = FALSE; }
|
|
|
|
public:
|
|
int TestConnection( CVideoPin *pOutputPin );
|
|
BOOL IsLocked() { return m_bLock; }
|
|
|
|
protected:
|
|
int GetCost() { return m_nCost; }
|
|
void SetCost( int nCost ) { m_nCost = nCost; }
|
|
|
|
private:
|
|
CVideoPin *m_pCPin;
|
|
CVideoPin *m_pAPin;
|
|
enum{ PD_INPUT, PD_OUTPUT };
|
|
int m_nPinDir;
|
|
BOOL m_bLock;
|
|
int m_nCost;
|
|
int m_nIndex;
|
|
|
|
private:
|
|
CVideoDevice *m_pVideoDevice;
|
|
};
|
|
|
|
#endif
|