Skip to content

Latest commit

 

History

History
61 lines (34 loc) · 1.91 KB

mf-mt-pixel-aspect-ratio-attribute.md

File metadata and controls

61 lines (34 loc) · 1.91 KB
description ms.assetid title ms.topic ms.date
Pixel aspect ratio for a video media type.
e82cdd22-7d3f-4858-befd-43fa6f9f915e
MF_MT_PIXEL_ASPECT_RATIO attribute (Mfapi.h)
reference
05/31/2018

MF_MT_PIXEL_ASPECT_RATIO attribute

Pixel aspect ratio for a video media type.

Data type

UINT64

Remarks

The upper 32 bits contain the numerator of the pixel aspect ratio and the lower 32 bits contain the denominator. The numerator is the horizontal component of the aspect ratio; the denominator is the vertical component.

To set this attribute, use the MFSetAttributeRatio function. To get this attribute, use the MFGetAttributeRatio function.

The pixel aspect ratio describes the shape of the pixels in the displayed video image. Set this attribute if the image has non-square pixels. To display correctly on a display device with square pixels, the image must be scaled by the inverse of the image's pixel aspect ratio.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 [desktop apps | UWP apps]
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

Media Type Attributes

Media Foundation Attributes

Picture Aspect Ratio