IMFVideoProcessorControl::SetRotation method
Specifies whether to rotate the video to the correct orientation.
Syntax
HRESULT SetRotation( MF_VIDEO_PROCESSOR_ROTATION eRotation );
Parameters
- eRotation
-
A MF_VIDEO_PROCESSOR_ROTATION value that specifies whether to rotate the image.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The original orientation of the video is specified by the MF_MT_VIDEO_ROTATION attribute of the input media type.
If eRotation is ROTATION_NONE, the video processor does not correct the orientation of the output video. If the original video is rotated, and eRotation is ROTATION_NORMAL, the video processor corrects the orientation, so that the ouput video is not rotated. The video processor letterboxes the output as needed.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
See also