ID3D11VideoContext1::DecoderUpdateDownsampling method (d3d11_1.h)
Updates the decoder downsampling parameters.
Syntax
HRESULT DecoderUpdateDownsampling(
[in] ID3D11VideoDecoder *pDecoder,
[in] const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc
);
Parameters
[in] pDecoder
Type: ID3D11VideoDecoder*
A pointer to the ID3D11VideoDecoder interface.
[in] pOutputDesc
Type: const D3D11_VIDEO_SAMPLE_DESC*
The resolution, format, and colorspace of the output/display frames. This is the destination resolution and format of the downsample operation.
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. |
E_OUTOFMEMORY | There is insufficient memory to complete the operation. |
Remarks
This method can only be called after decode downsampling is enabled by calling DecoderEnableDownsampling. This method is only supported if the D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_DYNAMIC capability is reported.
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 |