IMFMediaEngine::GetNativeVideoSize method
Gets the size of the video frame, adjusted for aspect ratio.
Syntax
HRESULT GetNativeVideoSize( [out] DWORD *cx, [out] DWORD *cy );
Parameters
- cx [out]
-
Receives the width in pixels.
- cy [out]
-
Receives the height in pixels.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method adjusts for the correct picture aspect ratio. For example, if the encoded frame is 720 × 420 and the picture aspect ratio is 4:3, the method will return a size equal to 640 × 480 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