ID3D11VideoContext::VideoProcessorSetOutputTargetRect method (d3d11.h)

Sets the target rectangle for the video processor.

Syntax

void VideoProcessorSetOutputTargetRect(
  [in] ID3D11VideoProcessor *pVideoProcessor,
  [in] BOOL                 Enable,
  [in] const RECT           *pRect
);

Parameters

[in] pVideoProcessor

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

[in] Enable

Specifies whether to apply the target rectangle.

[in] pRect

A pointer to a RECT structure that specifies the target rectangle. If Enable is FALSE, this parameter is ignored.

Return value

None

Remarks

The target rectangle is the area within the destination surface where the output will be drawn. The target rectangle is given in pixel coordinates, relative to the destination surface.

If this method is never called, or if the Enable parameter is FALSE, the video processor writes to the entire destination surface.

Requirements

Requirement Value
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

ID3D11VideoContext