aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-16 15:46:04 +0100
committerMattias Andrée <maandree@kth.se>2016-12-16 15:46:04 +0100
commita696a6f41cdd0460d728b4cc3acbf690c2aa93f7 (patch)
tree0d2d4d590d845a8ae51763545577c227167b2afa /doc
parentupdate todo (diff)
downloadlibcolour-a696a6f41cdd0460d728b4cc3acbf690c2aa93f7.tar.gz
libcolour-a696a6f41cdd0460d728b4cc3acbf690c2aa93f7.tar.bz2
libcolour-a696a6f41cdd0460d728b4cc3acbf690c2aa93f7.tar.xz
add tests, fixes errors, and improve percision
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--doc/info/chap/colour-spaces.texinfo13
-rw-r--r--doc/info/chap/functions.texinfo6
2 files changed, 5 insertions, 14 deletions
diff --git a/doc/info/chap/colour-spaces.texinfo b/doc/info/chap/colour-spaces.texinfo
index eb26ba0..a214feb 100644
--- a/doc/info/chap/colour-spaces.texinfo
+++ b/doc/info/chap/colour-spaces.texinfo
@@ -403,21 +403,8 @@ function is available for your use:
@table @code
@item double libcolour_srgb_encode(double x)
Applies the sRGB transfer function.
-It's full code is
-@example
-return x <= 0.0031306684425217108
- ? 12.92 * x
- : 1.055 * pow(x, 1 / 2.4) - 0.055;
-@end example
-
@item double libcolour_srgb_decode(double x)
Unapplies the sRGB transfer function.
-It's full code is
-@example
-return x <= 0.040448236277380506
- ? x / 12.92
- : pow((x + 0.055) / 1.055, 2.4);
-@end example
@end table
diff --git a/doc/info/chap/functions.texinfo b/doc/info/chap/functions.texinfo
index b47a584..9ddefdf 100644
--- a/doc/info/chap/functions.texinfo
+++ b/doc/info/chap/functions.texinfo
@@ -18,7 +18,11 @@ Described in @ref{sRGB}.
@item int libcolour_delta_e(const libcolour_colour_t*, const libcolour_colour_t*, double*)
Calculates the @math{\Delta E^*_{ab}} distance
-(the distance in CIE L*a*b*) of two colours.
+(the distance in CIE L*a*b*) of two colours,
+and outputs it to the last parameter.
+Returns 0 on success and @math{-1} one error.
+This function fails if and only if
+@code{libcolour_convert} fails.
@item int libcolour_proper(libcolour_colour_t*)
Sets any member or submember that may be