MFGetAttributeSize function (mfapi.h)

Retrieves an attribute whose value is a size, expressed as a width and height.

Syntax

HRESULT MFGetAttributeSize(
  IMFAttributes *pAttributes,
  REFGUID       guidKey,
  UINT32        *punWidth,
  UINT32        *punHeight
);

Parameters

pAttributes

Pointer to the IMFAttributes interface of the attribute store.

guidKey

GUID that identifies which value to retrieve. The attribute type must be MF_ATTRIBUTE_UINT64.

punWidth

Receives the width.

punHeight

Receives the height.

Return value

This function can return one of these values.

Remarks

Some attributes specify a size as a packed UINT64 value. Use this function to get the numerator and denominator as separate 32-bit values.

Requirements

   
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfapi.h

See also

MFSetAttributeSize

Media Foundation Functions