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 |
|
See also