MFllMulDiv function (mfapi.h)

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

Syntax

LONGLONG 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.
 

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

See also

Media Foundation Functions