ID3D11VideoContext::VideoProcessorSetStreamSourceRect method (d3d11.h)

Sets the source rectangle for an input stream on the video processor.

Syntax

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

Parameters

[in] pVideoProcessor

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

[in] StreamIndex

The zero-based index of the input stream. To get the maximum number of streams, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps and check the MaxStreamStates structure member.

[in] Enable

Specifies whether to apply the source rectangle.

[in] pRect

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

Return value

None

Remarks

The source rectangle is the portion of the input surface that is blitted to the destination surface. The source rectangle is given in pixel coordinates, relative to the input surface.

If this method is never called, or if the Enable parameter is FALSE, the video processor reads from the entire input 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