Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11VideoContext::VideoProcessorSetStreamRotation method

Sets the stream rotation for an input stream on the video processor.

Syntax


void VideoProcessorSetStreamRotation(
   ID3D11VideoProcessor           *pVideoProcessor,
   UINT                           StreamIndex,
   BOOL                           Enable,
   D3D11_VIDEO_PROCESSOR_ROTATION Rotation
);

Parameters

pVideoProcessor

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

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.

Enable

Specifies if the stream is to be rotated in a clockwise orientation.

Rotation

Specifies the rotation of the stream.

Return value

This method does not return a value.

Remarks

This is an optional state and the application should only use it if D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION is reported in D3D11_VIDEO_PROCESSOR_CAPS.FeatureCaps.

The stream source rectangle will be specified in the pre-rotation coordinates (typically landscape) and the stream destination rectangle will be specified in the post-rotation coordinates (typically portrait). The application must update the stream destination rectangle correctly when using a rotation value other than 0° and 180°.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

D3d11.h

See also

ID3D11VideoContext

 

 

Show:
© 2017 Microsoft