IMFMediaEngine::GetVideoAspectRatio method
Gets the picture aspect ratio of the video stream.
Syntax
HRESULT GetVideoAspectRatio( [out] DWORD *cx, [out] DWORD *cy );
Parameters
- cx [out]
-
Receives the x component of the aspect ratio.
- cy [out]
-
Receives the y component of the aspect ratio.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The Media Engine automatically converts the pixel aspect ratio to 1:1 (square pixels).
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
|
See also