Export (0) Print
Expand All
Expand Minimize

ID3D11VideoContext::VideoProcessorSetStreamDestRect method

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

Syntax


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

Parameters

pVideoProcessor [in]

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

StreamIndex [in]

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

Enable [in]

Specifies whether to apply the destination rectangle.

pRect [in]

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

Return value

This method does not return a value.

Remarks

The destination rectangle is the portion of the output surface that receives the blit for this stream. The destination rectangle is given in pixel coordinates, relative to the output surface.

The default destination rectangle is an empty rectangle (0, 0, 0, 0). If this method is never called, or if the Enable parameter is FALSE, no data is written from this stream.

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