IDirectXVideoProcessorService::GetVideoProcessorCaps method
Gets the capabilities of a specified video processor device.
Syntax
HRESULT GetVideoProcessorCaps( [in] REFGUID VideoProcDeviceGuid, [in] const DXVA2_VideoDesc *pVideoDesc, [in] D3DFORMAT RenderTargetFormat, [out] DXVA2_VideoProcessorCaps *pCaps );
Parameters
- VideoProcDeviceGuid [in]
-
A GUID that identifies the video processor device. To get the list of video processor GUIDs, call IDirectXVideoProcessorService::GetVideoProcessorDeviceGuids.
- pVideoDesc [in]
-
A pointer to a DXVA2_VideoDesc structure that describes the video content.
- RenderTargetFormat [in]
-
The format of the render target surface, specified as a D3DFORMAT value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the D3DFORMAT enumeration. See Video FOURCCs.
- pCaps [out]
-
A pointer to a DXVA2_VideoProcessorCaps structure that receives the video processor capabilities.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
Examples
// Query video processor capabilities.
hr = g_pDXVAVPS->GetVideoProcessorCaps(
guid, &g_VideoDesc, VIDEO_RENDER_TARGET_FORMAT, &g_VPCaps);
if (FAILED(hr))
{
DBGMSG((L"GetVideoProcessorCaps failed: 0x%x.\n", hr));
return FALSE;
}
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
See also