Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

VideoProcessorSetStreamRotation function

Enables or disables rotation on an input stream of the video processor.

Syntax


VOID APIENTRY* VideoProcessorSetStreamRotation(
  _In_ D3D10DDI_HDEVICE                    hDevice,
  _In_ D3D11_1DDI_HVIDEOPROCESSOR          hVideoProcessor,
  _In_ UINT                                StreamIndex,
  _In_ BOOL                                Enable,
  _In_ D3D11_1DDI_VIDEO_PROCESSOR_ROTATION Rotation
);

Parameters

hDevice [in]

A handle to the display device (graphics context).

hVideoProcessor [in]

A handle to the video processor object that was created through a call to the CreateVideoProcessor function.

StreamIndex [in]

The zero-based index of the input stream.

Enable [in]

If TRUE, rotation is enabled on the input stream. Otherwise, rotation is disabled on the input stream.

Rotation [in]

The clockwise degrees of rotation as specified by a D3D11_1DDI_VIDEO_PROCESSOR_ROTATION enumeration value.

Return value

This function does not return a value.

Remarks

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 or 180 degrees.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Target platform

Desktop

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CreateVideoProcessor
D3D11_1DDI_VIDEO_PROCESSOR_ROTATION

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft