From d38d969e904cc348ec32f821fac9a31e34bffdae Mon Sep 17 00:00:00 2001 From: Dave Neary Date: Sat, 8 Nov 2003 21:26:21 +0000 Subject: [PATCH] Finished gtk-docs. The docs for these could perhaps include formulae, but 2003-11-08 Dave Neary * libgimpcolor/gimpcolorspace.c: Finished gtk-docs. The docs for these could perhaps include formulae, but for most of the colorspaces that would be the same thing as copying the code into a comment, which seems pointless. --- ChangeLog | 7 +++++++ libgimpcolor/gimpcolorspace.c | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5a3fe9bf14..d577de1fb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-11-08 Dave Neary + + * libgimpcolor/gimpcolorspace.c: Finished gtk-docs. The docs for + these could perhaps include formulae, but for most of the + colorspaces that would be the same thing as copying the code + into a comment, which seems pointless. + 2003-11-08 Sven Neumann * app/widgets/gimptemplateeditor.c: don't show a radio button for diff --git a/libgimpcolor/gimpcolorspace.c b/libgimpcolor/gimpcolorspace.c index 8184232e50..f193935168 100644 --- a/libgimpcolor/gimpcolorspace.c +++ b/libgimpcolor/gimpcolorspace.c @@ -933,6 +933,14 @@ gimp_cmyk_to_rgb_int (gint *cyan, *yellow = 255 - y; } +/** + * gimp_rgb_to_hsv4: + * @rgb: RGB triplet, rgb[0] is red channel, rgb[1] is green, + * rgb[2] is blue (0..255) + * @hue: Pointer to hue channel (0..1) + * @saturation: Pointer to saturation channel (0..1) + * @value: Pointer to value channel (0..1) + **/ void gimp_rgb_to_hsv4 (guchar *rgb, @@ -998,6 +1006,15 @@ gimp_rgb_to_hsv4 (guchar *rgb, *value = v; } +/** + * gimp_hsv_to_rgb4: + * @rgb: RGB triplet, rgb[0] is red channel, rgb[1] is green, + * rgb[2] is blue (0..255) + * @hue: Hue channel (0..1) + * @saturation: Saturation channel (0..1) + * @value: Value channel (0..1) + **/ + void gimp_hsv_to_rgb4 (guchar *rgb, gdouble hue,