COPPCloseVideoSession 函数
示例 COPPCloseVideoSession 函数关闭用于当前视频会话的 COPP DirectX VA 设备对象。
语法
HRESULT COPPCloseVideoSession(
_In_ COPP_DeviceData pThis
);
参数
pThis [in]
- 指向 COPP DirectX VA 设备对象的指针。
返回值
如果成功,则返回零 (S_OK 或DD_OK) ;否则,将返回错误代码。
注解
在视频会话仍应用输出保护时,可以调用 COPPCloseVideoSession 函数。 COPPCloseVideoSession 应撤消 COPP DirectX VA 设备对象的保护设置,并相应地调整全局保护设置。
COPPCloseVideoSession 函数直接映射到DD_MOTIONCOMPCALLBACKS结构的 DestroyMoComp 成员。 DestroyMoComp 成员指向显示驱动程序提供的 DdMoCompDestroy 回调函数。
示例代码
以下代码提供了如何实现 COPPCloseVideoSession 函数的示例:
HRESULT
COPPCloseVideoSession(
COPP_DeviceData* pThis
)
{
DWORD j, i;
// enumerate all the protection types supported by this connector
for (j = COPP_ProtectionType_HDCP, i = COPP_ProtectionTypeIndex_HDCP;
j & COPP_ProtectionType_Mask; j <<= 1, i++) {
// for each type supported, make sure the initial level
// is set correctly
if (g_ConnectorInfo[pThis->m_DevID].ProtectionTypeMask & j) {
DWORD oldLevel = pThis->m_LocalLevel[i];
g_COPPLevels[pThis->m_DevID].Levels[i][oldLevel]--;
}
}
ResetKey(&pThis->m_AesHelper);
return NO_ERROR;
}
要求
目标平台 | 版本 |
---|---|
桌面 | 此函数仅适用于 SP1 及更高版本的 Windows Server 2003 以及 SP2 及更高版本的 Windows XP。 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈