diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-13 20:12:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-13 20:12:43 +0200 |
commit | d2f79ceff904114d774d71ee72fe5f3b745a31ad (patch) | |
tree | d4e84eaa2ad648906e02842c1fcc74919f86e70a /src/libclut.h | |
parent | More tests and bug fixes (diff) | |
download | libclut-d2f79ceff904114d774d71ee72fe5f3b745a31ad.tar.gz libclut-d2f79ceff904114d774d71ee72fe5f3b745a31ad.tar.bz2 libclut-d2f79ceff904114d774d71ee72fe5f3b745a31ad.tar.xz |
Test and fix libclut_linearise and libclut_standardise
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libclut.h')
-rw-r--r-- | src/libclut.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libclut.h b/src/libclut.h index d355d13..e469260 100644 --- a/src/libclut.h +++ b/src/libclut.h @@ -941,7 +941,7 @@ LIBCLUT_GCC_ONLY__(__attribute__((__const__, __leaf__))) double (libclut_model_linear_to_standard1)(double); #define libclut_model_linear_to_standard1(c) \ - (((double)(c) <= 0.0031308) ? (12.92 * (double)(c)) : ((1.0 + 0.055) * pow((double)(c), 1.0 / 2.4))) + (((double)(c) <= 0.0031308) ? (12.92 * (double)(c)) : ((1.0 + 0.055) * pow((double)(c), 1.0 / 2.4) - 0.055)) /** |