Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ID3D11VideoContext::VideoProcessorSetOutputConstriction method

Sets the amount of downsampling to perform on the output.


void VideoProcessorSetOutputConstriction(
  [in] ID3D11VideoProcessor *pVideoProcessor,
       BOOL                 Enable,
       SIZE                 Size


pVideoProcessor [in]

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

This method does not return a 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.

Windows Phone 8: This API is supported.


Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]



See also




Community Additions

© 2015 Microsoft