ID3D11VideoContext1::DecoderEnableDownsampling method (d3d11_1.h)

Indicates that decoder downsampling will be used and that the driver should allocate the appropriate reference frames.

Syntax

HRESULT DecoderEnableDownsampling(
  ID3D11VideoDecoder            *pDecoder,
  DXGI_COLOR_SPACE_TYPE         InputColorSpace,
  const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  UINT                          ReferenceFrameCount
);

Parameters

pDecoder

Type: ID3D11VideoDecoder*

A pointer to the ID3D11VideoDecoder interface.

InputColorSpace

Type: DXGI_COLOR_SPACE_TYPE

The color space information of the reference frame data.

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.

ReferenceFrameCount

Type: UINT

The number of reference frames to be used in the 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 function can only be called once for a specific ID3D11VideoDecoder interface. This method must be called prior to the first call to DecoderBeginFrame. To update the downsampling parameters, use DecoderUpdateDownsampling.

Requirements

   
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

ID3D11VideoContext1