Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

 

Show:
© 2017 Microsoft