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.

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

 

 

Show:
© 2016 Microsoft