MF_MT_PIXEL_ASPECT_RATIO attribute

Pixel aspect ratio for a video media type.

Data type

UINT64

Syntax

GUID MF_MT_PIXEL_ASPECT_RATIO = {0xc6376a1e,0x8d0a,0x4027,{0xbe,0x45,0x6d,0x9a,0x0a,0xd3,0x9b,0xb6} }  

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

Header: Declared in mfapi.h.