[gegl] color-rotate: Change type of color components to float



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]