ID3D11VideoContext::VideoProcessorSetOutputConstriction method (d3d11.h)

Sets the amount of downsampling to perform on the output.


void VideoProcessorSetOutputConstriction(
  ID3D11VideoProcessor *pVideoProcessor,
  BOOL                 Enable,
  SIZE                 Size



A pointer to the ID3D11VideoProcessor interface. To get this pointer, call ID3D11VideoDevice::CreateVideoProcessor.


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


The sampling size.

Return value



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 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 Size must be greater than zero. If the size is larger than the target rectangle, downsampling does not occur.

To use this feature, the driver must support downsampling, indicated by the D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION capability flag. To query for this capability, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps.


Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h

See also