PFND3D11_1DDI_VIDEOPROCESSORSETOUTPUTCONSTRICTION callback function (d3d10umddi.h)

Sets the amount of downsampling to perform on the output.

Syntax

PFND3D11_1DDI_VIDEOPROCESSORSETOUTPUTCONSTRICTION Pfnd3d111DdiVideoprocessorsetoutputconstriction;

void Pfnd3d111DdiVideoprocessorsetoutputconstriction(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D11_1DDI_HVIDEOPROCESSOR unnamedParam2,
  BOOL unnamedParam3,
  SIZE unnamedParam4
)
{...}

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hVideoProcessor [in]

A handle to the video processor object that was created through a call to the CreateVideoProcessor function.

unnamedParam3

Enabled [in]

If TRUE, downsampling is enabled. Otherwise, downsampling is disabled and the ConstrictonSize member is ignored.

unnamedParam4

ConstrictonSize [in]

The sampling size.

Return value

None

Remarks

Downsampling is sometimes used to reduce the quality of premium content when other forms of content protection are not available.

By default, downsampling is disabled.

If the Enable parameter is TRUE, the display miniport driver downsamples the composed image to the specified size, and then scales it back to the size of the target rectangle.

The width and height of the ConstrictonSize parameter must be greater than zero. If the size is larger than the target rectangle, downsampling does not occur.

The driver reports its ability to support downsampling through the GetVideoProcessorCaps function. If the driver supports the D3D11_1DDI_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION capability, it supports the ability to downsample the composed image.

Note  If the driver does not support the D3D11_1DDI_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION capability, the Microsoft Direct3D runtime does not call the VideoProcessorSetOutputConstriction function.
 

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See also

CreateVideoProcessor