ID3D11VideoContext1::DecoderUpdateDownsampling method
Updates the decoder downsampling parameters.
Syntax
HRESULT DecoderUpdateDownsampling( [in] ID3D11VideoDecoder *pDecoder, [in] const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc );
Parameters
- pDecoder [in]
-
Type: ID3D11VideoDecoder*
A pointer to the ID3D11VideoDecoder interface.
- pOutputDesc [in]
-
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
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
See also
Show: