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.

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 | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8

Header

Mfmediaengine.h

See also

Picture Aspect Ratio
IMFMediaEngine

 

 

Show:
© 2018 Microsoft