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.

PackRatio macro

Packs two UINT32 values, which represent a ratio, into a UINT64 value.

Syntax


UINT64 PackRatio(
  [in] UINT32 nNumerator,
  [in] UINT32 unDenominator
);

Parameters

nNumerator [in]

Value to store the UINT32 numerator value.

unDenominator [in]

Value to store the UINT32 denominator value.

Return value

Returns the packed UINT64 value.

Remarks

This function stores two 32-bit values in a 64-bit value that is suitable for the IMFAttributes::SetUINT64 method.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfapi.h

See also

Media Foundation Functions
MFGetAttributeRatio
MFGetAttributeSize

 

 

Show:
© 2017 Microsoft