Retrieves an attribute whose value is a size, expressed as a width and height.
HRESULT MFGetAttributeSize(
IMFAttributes *pAttributes,
REFGUID guidKey,
UINT32 *punWidth,
UINT32 *punHeight
)
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.
Type: HRESULT
| Return code | Description |
|---|
Refer to Media Foundation return codes.
Some attributes specify a size as a packed UINT64 value. Use this function to get the numerator and denominator as separate 32-bit values.
Header: Declared in mfapi.h.