PFND3DWDDM2_0DDI_VIDEODECODERUPDATEDOWNSAMPLING callback function (d3d10umddi.h)
Updates the decoder down sampling parameters. Optional for Windows Display Driver Model (WDDM) 2.0, or later, drivers.
Syntax
PFND3DWDDM2_0DDI_VIDEODECODERUPDATEDOWNSAMPLING Pfnd3dwddm20DdiVideodecoderupdatedownsampling;
HRESULT Pfnd3dwddm20DdiVideodecoderupdatedownsampling(
D3D10DDI_HDEVICE hDevice,
D3D11_1DDI_HDECODE hDecoder,
const D3D11_1DDI_VIDEO_DECODER_DESC *pOutputDesc,
D3DDDI_COLOR_SPACE_TYPE OutputColorSpace
)
{...}
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 video decoder object.
pOutputDesc
Contains the resolution and the format of the output/display frames. This is the destination resolution and format of the down sample operation.
OutputColorSpace
A D3DDDI_COLOR_SPACE_TYPE value that contains the color space information of the output/display frame data.
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 after VideoDecoderEnableDownsampling has been called.
This function will only be called if the driver reports the D3DWDDM2_0DDI_VIDEO_DECODER_CAPS_DOWN_SAMPLE_DYNAMIC capability.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Minimum supported server | Windows Server 2016 |
Target Platform | Desktop |
Header | d3d10umddi.h (include D3d10umddi.h) |