IDirectXVideoProcessor::GetCreationParameters method (dxva2api.h)
Retrieves the parameters that were used to create this device.
Syntax
HRESULT GetCreationParameters(
[out] GUID *pDeviceGuid,
[out] DXVA2_VideoDesc *pVideoDesc,
[out] D3DFORMAT *pRenderTargetFormat,
[out] UINT *pMaxNumSubStreams
);
Parameters
[out] pDeviceGuid
Receives the device GUID. This parameter can be NULL.
[out] pVideoDesc
Pointer to a DXVA2_VideoDesc structure allocated by the caller. The method fills the structure with a description of the video format. This parameter can be NULL.
[out] pRenderTargetFormat
Receives the render target format, specified as a D3DFORMAT value. For more information, see the Direct3D documentation. This parameter can be NULL.
[out] pMaxNumSubStreams
Receives the maximum number of streams supported by the device. This parameter can be NULL.
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. |
|
Invalid argument. At least one parameter must be non-NULL. |
Remarks
You can set any parameter to NULL if you are not interested in the result. At least one parameter must be non-NULL.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | dxva2api.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for