MFGetAttributeSize

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
Type: IMFAttributes *

Pointer to the IMFAttributes interface of the attribute store.

guidKey
Type: REFGUID 

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

punWidth
Type: UINT32 *

[out]

Receives the width.

punHeight
Type: UINT32 *

[out]

Receives the height.

Return value

Type: HRESULT 

Return codes
Return code Description

Refer to Media Foundation return codes.

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

Header: Declared in mfapi.h.