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

MFllMulDiv function

Calculates ((a * b) + d) / c, where each term is a 64-bit signed value.

Syntax


LONGLONG WINAPI MFllMulDiv(
   LONGLONG a,
   LONGLONG b,
   LONGLONG c,
   LONGLONG d
);

Parameters

a

A multiplier.

b

Another multiplier.

c

The divisor.

d

The rounding factor.

Return value

Returns the result of the calculation. If numeric overflow occurs, the function returns _I64_MAX (positive overflow) or LLONG_MIN (negative overflow). If Mfplat.dll cannot be loaded, the function returns _I64_MAX.

Remarks

Note  A previous version of this topic described the parameters incorrectly. The divisor is c and the rounding factor is d.
 

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft