Export (0) Print
Expand All
Expand Minimize

ID3D11VideoContext::VideoProcessorSetOutputConstriction method

Sets the amount of downsampling to perform on the output.

Syntax


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

Parameters

pVideoProcessor [in]

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

Enable

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

Size

The sampling size.

Return value

This method does not return a value.

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 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.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

ID3D11VideoContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft