ID3D11VideoDevice1::GetVideoDecoderCaps method (d3d11_1.h)

Retrieves capabilities and limitations of the video decoder.

Syntax

HRESULT GetVideoDecoderCaps(
  [in]  const GUID          *pDecoderProfile,
  [in]  UINT                SampleWidth,
  [in]  UINT                SampleHeight,
  [in]  const DXGI_RATIONAL *pFrameRate,
  [in]  UINT                BitRate,
  [in]  const GUID          *pCryptoType,
  [out] UINT                *pDecoderCaps
);

Parameters

[in] pDecoderProfile

Type: const GUID*

The decode profile for which the capabilities are queried.

[in] SampleWidth

Type: UINT

The video width for which the capabilities are queried.

[in] SampleHeight

Type: UINT

The video height for which the capabilities are queried.

[in] pFrameRate

Type: const DXGI_RATIONAL*

The frame rate of the video content. This information is used by the driver to determine whether the video can be decoded in real-time.

[in] BitRate

Type: UINT

The bit rate of the video stream. A value of zero indicates that the bit rate can be ignored.

[in] pCryptoType

Type: const GUID*

The type of cryptography used to encrypt the video stream. A value of NULL indicates that the video stream is not encrypted.

[out] pDecoderCaps

Type: UINT*

A pointer to a bitwise OR combination of D3D11_VIDEO_DECODER_CAPS values specifying the decoder capabilities.

Return value

Type: HRESULT

This method returns one of the following error codes.

S_OK The operation completed successfully.
E_INVALIDARG An invalid parameter was passed or this function was called using an invalid calling pattern.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header d3d11_1.h

See also

ID3D11VideoDevice1