ID3D11VideoDevice1::GetVideoDecoderCaps method
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
- pDecoderProfile [in]
-
Type: const GUID*
The decode profile for which the capabilities are queried.
- SampleWidth [in]
-
Type: UINT
The video width for which the capabilities are queried.
- SampleHeight [in]
-
Type: UINT
The video height for which the capabilities are queried.
- pFrameRate [in]
-
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.
- BitRate [in]
-
Type: UINT
The bit rate of the video stream. A value of zero indicates that the bit rate can be ignored.
- pCryptoType [in]
-
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.
- pDecoderCaps [out]
-
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
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
See also