[gegl] color-rotate: Rename function



commit 0cfcf4a9029e757469e9013b7976ab4b76d6e682
Author: Mukund Sivaraman <muks banu com>
Date:   Wed Aug 31 01:01:39 2011 +0530

    color-rotate: Rename function

 operations/workshop/color-rotate.c |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/operations/workshop/color-rotate.c b/operations/workshop/color-rotate.c
index c7e91d7..b16fef0 100644
--- a/operations/workshop/color-rotate.c
+++ b/operations/workshop/color-rotate.c
@@ -74,14 +74,13 @@ static void prepare (GeglOperation *operation)
                              babl_format ("RGBA float"));
 }
 
-
 static void
-gegl_rgb_to_hsv_double (gfloat  r,
-                        gfloat  g,
-                        gfloat  b,
-                        gfloat *h,
-                        gfloat *s,
-                        gfloat *v)
+gegl_rgb_to_hsv (gfloat  r,
+                 gfloat  g,
+                 gfloat  b,
+                 gfloat *h,
+                 gfloat *s,
+                 gfloat *v)
 {
   gfloat min, max;
   gfloat delta;
@@ -314,10 +313,10 @@ color_rotate (gfloat     *src,
   S = src[offset + 1];
   V = src[offset + 2];
 
-  gegl_rgb_to_hsv_double (src[offset],
-                          src[offset + 1],
-                          src[offset + 2],
-                          &H, &S, &V);
+  gegl_rgb_to_hsv (src[offset],
+                   src[offset + 1],
+                   src[offset + 2],
+                   &H, &S, &V);
 
   if (is_gray (S, o->threshold))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]