Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

MFGetAttributeSize function

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

Syntax


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

Parameters

pAttributes [in]

Pointer to the IMFAttributes interface of the attribute store.

guidKey [in]

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

punWidth [out]

Receives the width.

punHeight [out]

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 | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfapi.h

See also

Media Foundation Functions
MFSetAttributeSize

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.