UnpackRatio function (mfapi.h)

Gets the low-order and high-order UINT32 values from a UINT64 value that represents a ratio.

Syntax

void UnpackRatio(
  [in]  UINT64 unPacked,
  [out] INT32  *pnNumerator,
  [out] UINT32 *punDenominator
);

Parameters

[in] unPacked

The value to convert.

[out] pnNumerator

Receives the high-order 32 bits.

[out] punDenominator

Receives the low-order 32 bits.

Return value

None

Remarks

You can use this function to unpack a UINT64 value that you receive from the IMFAttributes::GetUINT64 method.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfapi.h

See also

MFGetAttributeRatio

MFGetAttributeSize

Media Foundation Functions