xbar.cpp
来自「winddk src目录下的WDM源码压缩!」· C++ 代码 · 共 43 行
CPP
43 行
//==========================================================================;
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
// Copyright (c) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
//
//==========================================================================;
#ifdef __cplusplus
extern "C" {
#endif
#include "strmini.h"
#include "ksmedia.h"
#ifdef __cplusplus
}
#endif
#include "capmain.h"
#include "capdebug.h"
#include "device.h"
#include "xbar.h"
BOOL CrossBar::TestRoute(ULONG InPin, ULONG OutPin)
{
if ((InputPins [InPin].PinType == KS_PhysConn_Video_Tuner ||
InputPins [InPin].PinType == KS_PhysConn_Video_Composite ||
InputPins [InPin].PinType == KS_PhysConn_Video_SVideo) &&
(OutputPins [OutPin].PinType == KS_PhysConn_Video_VideoDecoder)) {
return TRUE;
}
else
return FALSE;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?