Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11VideoContext1::DecoderEnableDownsampling method

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

Syntax


HRESULT DecoderEnableDownsampling(
  [in]       ID3D11VideoDecoder      *pDecoder,
  [in]       DXGI_COLOR_SPACE_TYPE   InputColorSpace,
  [inconst D3D11_VIDEO_SAMPLE_DESC *pOutputDesc,
  [in]       UINT                    ReferenceFrameCount
);

Parameters

pDecoder [in]

Type: ID3D11VideoDecoder*

A pointer to the ID3D11VideoDecoder interface.

InputColorSpace [in]

Type: DXGI_COLOR_SPACE_TYPE

The color space information of the reference frame data.

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.

ReferenceFrameCount [in]

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_OKThe operation completed successfully.
E_INVALIDARGAn invalid parameter was passed or this function was called using an invalid calling pattern.
E_OUTOFMEMORYThere 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]

Header

D3d11_1.h

See also

ID3D11VideoContext1

 

 

Show:
© 2017 Microsoft