Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// File: Crossbar.h
|
||||
//
|
||||
// Desc: DirectShow sample code - definition of class for controlling
|
||||
// video crossbars.
|
||||
//
|
||||
// Copyright (c) 1993-2001 Microsoft Corporation. All rights reserved.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef __Crossbar_h__
|
||||
#define __Crossbar_h__
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Name: class CClass
|
||||
// Desc: This class contains routing information for the capture data
|
||||
//------------------------------------------------------------------------------
|
||||
class CRouting {
|
||||
public:
|
||||
class CRouting *pLeftRouting;
|
||||
class CRouting *pRightRouting;
|
||||
LONG VideoInputIndex;
|
||||
LONG VideoOutputIndex;
|
||||
LONG AudioInputIndex;
|
||||
LONG AudioOutputIndex;
|
||||
IAMCrossbar *pXbar;
|
||||
LONG InputPhysicalType;
|
||||
LONG OutputPhysicalType;
|
||||
LONG Depth;
|
||||
|
||||
CRouting () {};
|
||||
~CRouting () {};
|
||||
};
|
||||
|
||||
typedef CGenericList<CRouting> CRoutingList;
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Name: class CCrossbar
|
||||
// Desc: The actual helper class for Crossbars
|
||||
//------------------------------------------------------------------------------
|
||||
class CCrossbar
|
||||
{
|
||||
private:
|
||||
IPin *m_pStartingPin;
|
||||
CRouting m_RoutingRoot;
|
||||
CRoutingList *m_RoutingList;
|
||||
int m_CurrentRoutingIndex;
|
||||
|
||||
HRESULT BuildRoutingList (
|
||||
IPin *pStartingInputPin,
|
||||
CRouting *pCRouting,
|
||||
int Depth);
|
||||
HRESULT SaveRouting (CRouting *pRoutingNew);
|
||||
HRESULT DestroyRoutingList();
|
||||
BOOL StringFromPinType (TCHAR *pc, int nSize, long lType);
|
||||
|
||||
HRESULT GetCrossbarIPinAtIndex(
|
||||
IAMCrossbar *pXbar,
|
||||
LONG PinIndex,
|
||||
BOOL IsInputPin,
|
||||
IPin ** ppPin);
|
||||
HRESULT GetCrossbarIndexFromIPin (
|
||||
IAMCrossbar * pXbar,
|
||||
LONG * PinIndex,
|
||||
BOOL IsInputPin,
|
||||
IPin * pPin);
|
||||
|
||||
public:
|
||||
|
||||
CCrossbar (IPin *pPin);
|
||||
~CCrossbar();
|
||||
|
||||
HRESULT GetInputCount (LONG *pCount);
|
||||
HRESULT GetInputType (LONG Index, LONG * PhysicalType);
|
||||
HRESULT GetInputName (LONG Index, TCHAR * pName, LONG NameSize);
|
||||
HRESULT SetInputIndex (LONG Index);
|
||||
HRESULT GetInputIndex (LONG *Index);
|
||||
|
||||
};
|
||||
|
||||
#endif // __Crossbar_h__
|
||||
Reference in New Issue
Block a user