IDirectXVideoProcessor::GetCreationParameters method

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

pDeviceGuid [out]

Receives the device GUID. This parameter can be NULL.

pVideoDesc [out]

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.

pRenderTargetFormat [out]

Receives the render target format, specified as a D3DFORMAT value. For more information, see the Direct3D documentation. This parameter can be NULL.

pMaxNumSubStreams [out]

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 codeDescription
S_OK

The method succeeded.

E_INVALIDARG

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

See also

IDirectXVideoProcessor
DXVA Video Processing

 

 

Show: