[gegl] color-rotate: Change type of color components to float
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] color-rotate: Change type of color components to float
- Date: Tue, 30 Aug 2011 19:44:02 +0000 (UTC)
commit 0a6b4dca3c79e75db7ea076a445924481b9cee58
Author: Mukund Sivaraman <muks banu com>
Date: Wed Aug 31 00:56:51 2011 +0530
color-rotate: Change type of color components to float
operations/workshop/color-rotate.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/operations/workshop/color-rotate.c b/operations/workshop/color-rotate.c
index ed22684..6b7b78b 100644
--- a/operations/workshop/color-rotate.c
+++ b/operations/workshop/color-rotate.c
@@ -76,14 +76,14 @@ static void prepare (GeglOperation *operation)
static void
-gegl_rgb_to_hsv_double (gdouble *red,
- gdouble *green,
- gdouble *blue)
+gegl_rgb_to_hsv_double (gfloat *red,
+ gfloat *green,
+ gfloat *blue)
{
- gdouble r, g, b;
- gdouble h, s, v;
- gdouble min, max;
- gdouble delta;
+ gfloat r, g, b;
+ gfloat h, s, v;
+ gfloat min, max;
+ gfloat delta;
r = *red;
g = *green;
@@ -312,7 +312,7 @@ color_rotate (gfloat *src,
gint offset,
GeglChantO *o)
{
- gdouble H,S,V;
+ gfloat H,S,V;
gboolean skip = FALSE;
gfloat color[4];
gint i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]