PFND3DWDDM2_0DDI_VIDEODECODERENABLEDOWNSAMPLING - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

PFND3DWDDM2_0DDI_VIDEODECODERENABLEDOWNSAMPLING Pfnd3dwddm20DdiVideodecoderenabledownsampling;

HRESULT Pfnd3dwddm20DdiVideodecoderenabledownsampling(
  D3D10DDI_HDEVICE hDevice,
  D3D11_1DDI_HDECODE hDecoder,
  D3DDDI_COLOR_SPACE_TYPE InputColorSpace,
  const D3D11_1DDI_VIDEO_DECODER_DESC *pOutputDesc,
  D3DDDI_COLOR_SPACE_TYPE OutputColorSpace,
  UINT ReferenceFrameCount
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d10umddi-pfnd3dwddm2_0ddi_videodecoderenabledownsampling)

PFND3DWDDM2_0DDI_VIDEODECODERENABLEDOWNSAMPLING callback function

Description

Indicates that decoder down-sampling will be used and that the driver should allocate the appropriate reference frames. Optional for Windows Display Driver Model (WDDM) 2.0 or later drivers.

Parameters

hDevice

A handle to the display device (graphics context). The Direct3D runtime passed the user-mode driver this handle as the hDevice member of the D3DDDIARG_CREATEDEVICE structure at device creation.

hDecoder

A handle to the decoder object.

InputColorSpace

A D3DDDI_COLOR_SPACE_TYPE value that indicates the color space information of the reference frame data.

pOutputDesc

Indicates the resolution and the format of the output/display frames. This is the destination resolution and format of the down-sample operation.

Note The decode profile member (Guid) of pOutputDesc can be ignored.

OutputColorSpace

A D3DDDI_COLOR_SPACE_TYPE value that indicates the color space information of the output/display frames.

ReferenceFrameCount

Indicates the number of reference frame used.

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This function can only be called once, prior to the first VideoDecoderBeginFrame call.

See also

D3DDDIARG_CREATEDEVICE

D3DDDI_COLOR_SPACE_TYPE

VideoDecoderBeginFrame