Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFGetAttributeRatio
Collapse the table of content
Expand the table of content

MFGetAttributeRatio function

Retrieves an attribute whose value is a ratio.

Syntax


HRESULT MFGetAttributeRatio(
  _In_  IMFAttributes *pAttributes,
  _In_  REFGUID       guidKey,
  _Out_ UINT32        *pnNumerator,
  _Out_ UINT32        *punDenominator
);

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.

pnNumerator [out]

Receives the numerator of the ratio.

punDenominator [out]

Receives the denominator of the ratio.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Some attributes specify a ratio 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
MFSetAttributeRatio

 

 

Community Additions

ADD
Show:
© 2015 Microsoft