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

MFSetAttributeRatio function

Sets a ratio as a 64-bit attribute value.

Syntax


HRESULT MFSetAttributeRatio(
  _In_ IMFAttributes *pAttributes,
  _In_ REFGUID       guidKey,
  _In_ UINT32        unNumerator,
  _In_ UINT32        unDenominator
);

Parameters

pAttributes [in]

A pointer to the IMFAttributes interface of the attribute store.

guidKey [in]

A GUID that identifies the value to set. If this key already exists, the function overwrites the old value.

unNumerator [in]

The numerator of the ratio.

unDenominator [in]

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. This function packs the numerator and denominator into a single UINT64 value.

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

Attributes in Media Foundation
Media Foundation Functions
MFGetAttributeRatio

 

 

Community Additions

ADD
Show:
© 2015 Microsoft