Commit 3fc4eb84 authored by Sven Neumann's avatar Sven Neumann
Browse files

libgimp/gimpcolorspace.c Prefixed all functions with gimp_ to avoid

* libgimp/gimpcolorspace.c
* libgimp/gimpcolorspace.h: Prefixed all functions with gimp_
  to avoid namespace collisions.

Changed the License in the header to LGPL. If you don't like this,
please remove those files! (But I would like them to stay since this
moving those functions into libgimp is something that should have
happened much earlier.) Nice work, Daniel!
parent 35f6f9ad
Mon Jan 3 02:49:37 CET 2000 Sven Neumann <sven@gimp.org>
* libgimp/gimpcolorspace.c
* libgimp/gimpcolorspace.h: Prefixed all functions with gimp_
to avoid namespace collisions.
Changed the License in the header to LGPL. If you don't like this,
please remove those files! (But I would like them to stay since
moving those functions into libgimp is something that should have
happened much earlier.) Nice work, Daniel!
Sun Jan 2 21:37:02 CET 2000 Marc Lehmann <pcg@goof.com>
 
Applied Patch by Daniel Egger, slightly modified.
......
......@@ -25,6 +25,7 @@
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
#define CYAN_RED 0x1
#define MAGENTA_GREEN 0x2
......@@ -104,9 +105,9 @@ color_balance (PixelRegion *srcPR,
if (cbd->preserve_luminosity)
{
rgb_to_hls (&r_n, &g_n, &b_n);
g_n = rgb_to_l (r, g, b);
hls_to_rgb (&r_n, &g_n, &b_n);
gimp_rgb_to_hls (&r_n, &g_n, &b_n);
g_n = gimp_rgb_to_l (r, g, b);
gimp_hls_to_rgb (&r_n, &g_n, &b_n);
}
d[RED_PIX] = r_n;
......
......@@ -29,6 +29,7 @@
#include "hue_saturation.h"
#include "interface.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
......@@ -172,7 +173,7 @@ hue_saturation (PixelRegion *srcPR,
g = s[GREEN_PIX];
b = s[BLUE_PIX];
rgb_to_hls (&r, &g, &b);
gimp_rgb_to_hls (&r, &g, &b);
if (r < 43)
hue = 0;
......@@ -191,7 +192,7 @@ hue_saturation (PixelRegion *srcPR,
g = lightness_transfer[hue][g];
b = saturation_transfer[hue][b];
hls_to_rgb (&r, &g, &b);
gimp_hls_to_rgb (&r, &g, &b);
d[RED_PIX] = r;
d[GREEN_PIX] = g;
......@@ -611,13 +612,13 @@ hue_saturation_update (HueSaturationDialog *hsd,
rgb[GREEN_PIX] = default_colors[i][GREEN_PIX];
rgb[BLUE_PIX] = default_colors[i][BLUE_PIX];
rgb_to_hls (rgb, rgb + 1, rgb + 2);
gimp_rgb_to_hls (rgb, rgb + 1, rgb + 2);
rgb[RED_PIX] = hue_transfer[i][rgb[RED_PIX]];
rgb[GREEN_PIX] = lightness_transfer[i][rgb[GREEN_PIX]];
rgb[BLUE_PIX] = saturation_transfer[i][rgb[BLUE_PIX]];
hls_to_rgb (rgb, rgb + 1, rgb + 2);
gimp_hls_to_rgb (rgb, rgb + 1, rgb + 2);
for (j = 0; j < DA_WIDTH; j++)
for (b = 0; b < 3; b++)
......
......@@ -1314,7 +1314,7 @@ gradient_render_pixel (double x,
color->a = rbd->fg.a + (rbd->bg.a - rbd->fg.a) * factor;
if (rbd->blend_mode == FG_BG_HSV_MODE)
hsv_to_rgb_double (&color->r, &color->g, &color->b);
gimp_hsv_to_rgb_double (&color->r, &color->g, &color->b);
}
}
......@@ -1409,8 +1409,8 @@ gradient_fill_region (GImage *gimage,
case FG_BG_HSV_MODE:
/* Convert to HSV */
rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
gimp_rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
gimp_rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
break;
......
......@@ -25,6 +25,7 @@
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
#define CYAN_RED 0x1
#define MAGENTA_GREEN 0x2
......@@ -104,9 +105,9 @@ color_balance (PixelRegion *srcPR,
if (cbd->preserve_luminosity)
{
rgb_to_hls (&r_n, &g_n, &b_n);
g_n = rgb_to_l (r, g, b);
hls_to_rgb (&r_n, &g_n, &b_n);
gimp_rgb_to_hls (&r_n, &g_n, &b_n);
g_n = gimp_rgb_to_l (r, g, b);
gimp_hls_to_rgb (&r_n, &g_n, &b_n);
}
d[RED_PIX] = r_n;
......
......@@ -1314,7 +1314,7 @@ gradient_render_pixel (double x,
color->a = rbd->fg.a + (rbd->bg.a - rbd->fg.a) * factor;
if (rbd->blend_mode == FG_BG_HSV_MODE)
hsv_to_rgb_double (&color->r, &color->g, &color->b);
gimp_hsv_to_rgb_double (&color->r, &color->g, &color->b);
}
}
......@@ -1409,8 +1409,8 @@ gradient_fill_region (GImage *gimage,
case FG_BG_HSV_MODE:
/* Convert to HSV */
rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
gimp_rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
gimp_rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
break;
......
......@@ -708,8 +708,8 @@ gradient_get_color_at (gradient_t *gradient,
s1 = seg->g1;
v1 = seg->b1;
rgb_to_hsv_double(&h0, &s0, &v0);
rgb_to_hsv_double(&h1, &s1, &v1);
gimp_rgb_to_hsv_double(&h0, &s0, &v0);
gimp_rgb_to_hsv_double(&h1, &s1, &v1);
s0 = s0 + (s1 - s0) * factor;
v0 = v0 + (v1 - v0) * factor;
......@@ -749,7 +749,7 @@ gradient_get_color_at (gradient_t *gradient,
*g = s0;
*b = v0;
hsv_to_rgb_double (r, g, b);
gimp_hsv_to_rgb_double (r, g, b);
}
}
......@@ -2289,7 +2289,7 @@ prev_set_hint (gint x)
s = g;
v = b;
rgb_to_hsv_double (&h, &s, &v);
gimp_rgb_to_hsv_double (&h, &s, &v);
g_snprintf (str, sizeof (str), _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
......
......@@ -708,8 +708,8 @@ gradient_get_color_at (gradient_t *gradient,
s1 = seg->g1;
v1 = seg->b1;
rgb_to_hsv_double(&h0, &s0, &v0);
rgb_to_hsv_double(&h1, &s1, &v1);
gimp_rgb_to_hsv_double(&h0, &s0, &v0);
gimp_rgb_to_hsv_double(&h1, &s1, &v1);
s0 = s0 + (s1 - s0) * factor;
v0 = v0 + (v1 - v0) * factor;
......@@ -749,7 +749,7 @@ gradient_get_color_at (gradient_t *gradient,
*g = s0;
*b = v0;
hsv_to_rgb_double (r, g, b);
gimp_hsv_to_rgb_double (r, g, b);
}
}
......@@ -2289,7 +2289,7 @@ prev_set_hint (gint x)
s = g;
v = b;
rgb_to_hsv_double (&h, &s, &v);
gimp_rgb_to_hsv_double (&h, &s, &v);
g_snprintf (str, sizeof (str), _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
......
......@@ -708,8 +708,8 @@ gradient_get_color_at (gradient_t *gradient,
s1 = seg->g1;
v1 = seg->b1;
rgb_to_hsv_double(&h0, &s0, &v0);
rgb_to_hsv_double(&h1, &s1, &v1);
gimp_rgb_to_hsv_double(&h0, &s0, &v0);
gimp_rgb_to_hsv_double(&h1, &s1, &v1);
s0 = s0 + (s1 - s0) * factor;
v0 = v0 + (v1 - v0) * factor;
......@@ -749,7 +749,7 @@ gradient_get_color_at (gradient_t *gradient,
*g = s0;
*b = v0;
hsv_to_rgb_double (r, g, b);
gimp_hsv_to_rgb_double (r, g, b);
}
}
......@@ -2289,7 +2289,7 @@ prev_set_hint (gint x)
s = g;
v = b;
rgb_to_hsv_double (&h, &s, &v);
gimp_rgb_to_hsv_double (&h, &s, &v);
g_snprintf (str, sizeof (str), _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
......
......@@ -29,6 +29,7 @@
#include "hue_saturation.h"
#include "interface.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
......@@ -172,7 +173,7 @@ hue_saturation (PixelRegion *srcPR,
g = s[GREEN_PIX];
b = s[BLUE_PIX];
rgb_to_hls (&r, &g, &b);
gimp_rgb_to_hls (&r, &g, &b);
if (r < 43)
hue = 0;
......@@ -191,7 +192,7 @@ hue_saturation (PixelRegion *srcPR,
g = lightness_transfer[hue][g];
b = saturation_transfer[hue][b];
hls_to_rgb (&r, &g, &b);
gimp_hls_to_rgb (&r, &g, &b);
d[RED_PIX] = r;
d[GREEN_PIX] = g;
......@@ -611,13 +612,13 @@ hue_saturation_update (HueSaturationDialog *hsd,
rgb[GREEN_PIX] = default_colors[i][GREEN_PIX];
rgb[BLUE_PIX] = default_colors[i][BLUE_PIX];
rgb_to_hls (rgb, rgb + 1, rgb + 2);
gimp_rgb_to_hls (rgb, rgb + 1, rgb + 2);
rgb[RED_PIX] = hue_transfer[i][rgb[RED_PIX]];
rgb[GREEN_PIX] = lightness_transfer[i][rgb[GREEN_PIX]];
rgb[BLUE_PIX] = saturation_transfer[i][rgb[BLUE_PIX]];
hls_to_rgb (rgb, rgb + 1, rgb + 2);
gimp_hls_to_rgb (rgb, rgb + 1, rgb + 2);
for (j = 0; j < DA_WIDTH; j++)
for (b = 0; b < 3; b++)
......
......@@ -33,6 +33,7 @@
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
#define STD_BUF_SIZE 1021
#define MAXDIFF 195076
......@@ -821,8 +822,8 @@ hsv_only_pixels (const unsigned char *src1,
{
r1 = src1[0]; g1 = src1[1]; b1 = src1[2];
r2 = src2[0]; g2 = src2[1]; b2 = src2[2];
rgb_to_hsv (&r1, &g1, &b1);
rgb_to_hsv (&r2, &g2, &b2);
gimp_rgb_to_hsv (&r1, &g1, &b1);
gimp_rgb_to_hsv (&r2, &g2, &b2);
switch (mode)
{
......@@ -838,7 +839,7 @@ hsv_only_pixels (const unsigned char *src1,
}
/* set the destination */
hsv_to_rgb (&r1, &g1, &b1);
gimp_hsv_to_rgb (&r1, &g1, &b1);
dest[0] = r1; dest[1] = g1; dest[2] = b1;
......@@ -873,15 +874,15 @@ color_only_pixels (const unsigned char *src1,
{
r1 = src1[0]; g1 = src1[1]; b1 = src1[2];
r2 = src2[0]; g2 = src2[1]; b2 = src2[2];
rgb_to_hls (&r1, &g1, &b1);
rgb_to_hls (&r2, &g2, &b2);
gimp_rgb_to_hls (&r1, &g1, &b1);
gimp_rgb_to_hls (&r2, &g2, &b2);
/* transfer hue and saturation to the source pixel */
r1 = r2;
b1 = b2;
/* set the destination */
hls_to_rgb (&r1, &g1, &b1);
gimp_hls_to_rgb (&r1, &g1, &b1);
dest[0] = r1; dest[1] = g1; dest[2] = b1;
......
......@@ -33,6 +33,7 @@
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
#define STD_BUF_SIZE 1021
#define MAXDIFF 195076
......@@ -821,8 +822,8 @@ hsv_only_pixels (const unsigned char *src1,
{
r1 = src1[0]; g1 = src1[1]; b1 = src1[2];
r2 = src2[0]; g2 = src2[1]; b2 = src2[2];
rgb_to_hsv (&r1, &g1, &b1);
rgb_to_hsv (&r2, &g2, &b2);
gimp_rgb_to_hsv (&r1, &g1, &b1);
gimp_rgb_to_hsv (&r2, &g2, &b2);
switch (mode)
{
......@@ -838,7 +839,7 @@ hsv_only_pixels (const unsigned char *src1,
}
/* set the destination */
hsv_to_rgb (&r1, &g1, &b1);
gimp_hsv_to_rgb (&r1, &g1, &b1);
dest[0] = r1; dest[1] = g1; dest[2] = b1;
......@@ -873,15 +874,15 @@ color_only_pixels (const unsigned char *src1,
{
r1 = src1[0]; g1 = src1[1]; b1 = src1[2];
r2 = src2[0]; g2 = src2[1]; b2 = src2[2];
rgb_to_hls (&r1, &g1, &b1);
rgb_to_hls (&r2, &g2, &b2);
gimp_rgb_to_hls (&r1, &g1, &b1);
gimp_rgb_to_hls (&r2, &g2, &b2);
/* transfer hue and saturation to the source pixel */
r1 = r2;
b1 = b2;
/* set the destination */
hls_to_rgb (&r1, &g1, &b1);
gimp_hls_to_rgb (&r1, &g1, &b1);
dest[0] = r1; dest[1] = g1; dest[2] = b1;
......
......@@ -1314,7 +1314,7 @@ gradient_render_pixel (double x,
color->a = rbd->fg.a + (rbd->bg.a - rbd->fg.a) * factor;
if (rbd->blend_mode == FG_BG_HSV_MODE)
hsv_to_rgb_double (&color->r, &color->g, &color->b);
gimp_hsv_to_rgb_double (&color->r, &color->g, &color->b);
}
}
......@@ -1409,8 +1409,8 @@ gradient_fill_region (GImage *gimage,
case FG_BG_HSV_MODE:
/* Convert to HSV */
rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
gimp_rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
gimp_rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
break;
......
......@@ -25,6 +25,7 @@
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
#define CYAN_RED 0x1
#define MAGENTA_GREEN 0x2
......@@ -104,9 +105,9 @@ color_balance (PixelRegion *srcPR,
if (cbd->preserve_luminosity)
{
rgb_to_hls (&r_n, &g_n, &b_n);
g_n = rgb_to_l (r, g, b);
hls_to_rgb (&r_n, &g_n, &b_n);
gimp_rgb_to_hls (&r_n, &g_n, &b_n);
g_n = gimp_rgb_to_l (r, g, b);
gimp_hls_to_rgb (&r_n, &g_n, &b_n);
}
d[RED_PIX] = r_n;
......
......@@ -1314,7 +1314,7 @@ gradient_render_pixel (double x,
color->a = rbd->fg.a + (rbd->bg.a - rbd->fg.a) * factor;
if (rbd->blend_mode == FG_BG_HSV_MODE)
hsv_to_rgb_double (&color->r, &color->g, &color->b);
gimp_hsv_to_rgb_double (&color->r, &color->g, &color->b);
}
}
......@@ -1409,8 +1409,8 @@ gradient_fill_region (GImage *gimage,
case FG_BG_HSV_MODE:
/* Convert to HSV */
rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
gimp_rgb_to_hsv_double(&rbd.fg.r, &rbd.fg.g, &rbd.fg.b);
gimp_rgb_to_hsv_double(&rbd.bg.r, &rbd.bg.g, &rbd.bg.b);
break;
......
......@@ -25,6 +25,7 @@
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
#include "libgimp/gimpcolorspace.h"
#define CYAN_RED 0x1
#define MAGENTA_GREEN 0x2
......@@ -104,9 +105,9 @@ color_balance (PixelRegion *srcPR,
if (cbd->preserve_luminosity)
{
rgb_to_hls (&r_n, &g_n, &b_n);
g_n = rgb_to_l (r, g, b);
hls_to_rgb (&r_n, &g_n, &b_n);
gimp_rgb_to_hls (&r_n, &g_n, &b_n);
g_n = gimp_rgb_to_l (r, g, b);
gimp_hls_to_rgb (&r_n, &g_n, &b_n);
}
d[RED_PIX] = r_n;
......
......@@ -29,6 +29,7 @@
#include "hue_saturation.h"
#include "interface.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
......@@ -172,7 +173,7 @@ hue_saturation (PixelRegion *srcPR,
g = s[GREEN_PIX];
b = s[BLUE_PIX];
rgb_to_hls (&r, &g, &b);
gimp_rgb_to_hls (&r, &g, &b);
if (r < 43)
hue = 0;
......@@ -191,7 +192,7 @@ hue_saturation (PixelRegion *srcPR,
g = lightness_transfer[hue][g];
b = saturation_transfer[hue][b];
hls_to_rgb (&r, &g, &b);
gimp_hls_to_rgb (&r, &g, &b);
d[RED_PIX] = r;
d[GREEN_PIX] = g;
......@@ -611,13 +612,13 @@ hue_saturation_update (HueSaturationDialog *hsd,
rgb[GREEN_PIX] = default_colors[i][GREEN_PIX];
rgb[BLUE_PIX] = default_colors[i][BLUE_PIX];
rgb_to_hls (rgb, rgb + 1, rgb + 2);
gimp_rgb_to_hls (rgb, rgb + 1, rgb + 2);
rgb[RED_PIX] = hue_transfer[i][rgb[RED_PIX]];
rgb[GREEN_PIX] = lightness_transfer[i][rgb[GREEN_PIX]];
rgb[BLUE_PIX] = saturation_transfer[i][rgb[BLUE_PIX]];
hls_to_rgb (rgb, rgb + 1, rgb + 2);
gimp_hls_to_rgb (rgb, rgb + 1, rgb + 2);
for (j = 0; j < DA_WIDTH; j++)
for (b = 0; b < 3; b++)
......
......@@ -29,6 +29,7 @@
#include "hue_saturation.h"
#include "interface.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
......@@ -172,7 +173,7 @@ hue_saturation (PixelRegion *srcPR,
g = s[GREEN_PIX];
b = s[BLUE_PIX];
rgb_to_hls (&r, &g, &b);
gimp_rgb_to_hls (&r, &g, &b);
if (r < 43)
hue = 0;
......@@ -191,7 +192,7 @@ hue_saturation (PixelRegion *srcPR,
g = lightness_transfer[hue][g];
b = saturation_transfer[hue][b];
hls_to_rgb (&r, &g, &b);
gimp_hls_to_rgb (&r, &g, &b);
d[RED_PIX] = r;
d[GREEN_PIX] = g;
......@@ -611,13 +612,13 @@ hue_saturation_update (HueSaturationDialog *hsd,
rgb[GREEN_PIX] = default_colors[i][GREEN_PIX];
rgb[BLUE_PIX] = default_colors[i][BLUE_PIX];
rgb_to_hls (rgb, rgb + 1, rgb + 2);
gimp_rgb_to_hls (rgb, rgb + 1, rgb + 2);
rgb[RED_PIX] = hue_transfer[i][rgb[RED_PIX]];
rgb[GREEN_PIX] = lightness_transfer[i][rgb[GREEN_PIX]];
rgb[BLUE_PIX] = saturation_transfer[i][rgb[BLUE_PIX]];
hls_to_rgb (rgb, rgb + 1, rgb + 2);
gimp_hls_to_rgb (rgb, rgb + 1, rgb + 2);
for (j = 0; j < DA_WIDTH; j++)
for (b = 0; b < 3; b++)
......
......@@ -708,8 +708,8 @@ gradient_get_color_at (gradient_t *gradient,
s1 = seg->g1;
v1 = seg->b1;
rgb_to_hsv_double(&h0, &s0, &v0);
rgb_to_hsv_double(&h1, &s1, &v1);
gimp_rgb_to_hsv_double(&h0, &s0, &v0);
gimp_rgb_to_hsv_double(&h1, &s1, &v1);
s0 = s0 + (s1 - s0) * factor;
v0 = v0 + (v1 - v0) * factor;
......@@ -749,7 +749,7 @@ gradient_get_color_at (gradient_t *gradient,
*g = s0;
*b = v0;
hsv_to_rgb_double (r, g, b);
gimp_hsv_to_rgb_double (r, g, b);
}
}
......@@ -2289,7 +2289,7 @@ prev_set_hint (gint x)
s = g;
v = b;
rgb_to_hsv_double (&h, &s, &v);
gimp_rgb_to_hsv_double (&h, &s, &v);
g_snprintf (str, sizeof (str), _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
......
/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
* Copyright (C) 1999 Daniel Egger
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <glib.h>
......@@ -26,9 +26,9 @@
*********************************/
void
rgb_to_hsv (int *r,
int *g,
int *b)
gimp_rgb_to_hsv (int *r,
int *g,
int *b)
{
int red, green, blue;
float h, s, v;
......@@ -98,9 +98,9 @@ rgb_to_hsv (int *r,
}
void
hsv_to_rgb (int *h,
int *s,