digiKam
blackframeparser.cpp File Reference

Namespaces

 Digikam
 

Macros

#define DENOM   (DENOM_SQRT * DENOM_SQRT)
 Denominator for relative quantities. More...
 
#define DENOM_SQRT   10000
 Square root of denominator for relative quantities. More...
 
#define REL_TO_ABS(n, m)    ((((n) / DENOM_SQRT) * (m) + ((n) % DENOM_SQRT) * (m) / DENOM_SQRT) / DENOM_SQRT)
 Convert relative to absolute numbers. Care must be taken not to overflow integers. More...
 

Macro Definition Documentation

◆ DENOM

#define DENOM   (DENOM_SQRT * DENOM_SQRT)

Denominator for relative quantities.

◆ DENOM_SQRT

#define DENOM_SQRT   10000

Square root of denominator for relative quantities.

◆ REL_TO_ABS

#define REL_TO_ABS (   n,
 
)     ((((n) / DENOM_SQRT) * (m) + ((n) % DENOM_SQRT) * (m) / DENOM_SQRT) / DENOM_SQRT)

Convert relative to absolute numbers. Care must be taken not to overflow integers.