[gegl] color-rotate: Make variables lowercase
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] color-rotate: Make variables lowercase
- Date: Wed, 31 Aug 2011 13:29:00 +0000 (UTC)
commit 20998c5c949c9b94bac735ff9a37752f7d6ffd78
Author: Mukund Sivaraman <muks banu com>
Date: Wed Aug 31 18:52:05 2011 +0530
color-rotate: Make variables lowercase
operations/workshop/color-rotate.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/operations/workshop/color-rotate.c b/operations/workshop/color-rotate.c
index 307d7f9..93aefb3 100644
--- a/operations/workshop/color-rotate.c
+++ b/operations/workshop/color-rotate.c
@@ -286,7 +286,7 @@ color_rotate (gfloat *src,
gint offset,
GeglChantO *o)
{
- gfloat H,S,V;
+ gfloat h, s, v;
gboolean skip = FALSE;
gfloat color[4];
gint i;
@@ -294,16 +294,16 @@ color_rotate (gfloat *src,
rgb_to_hsv (src[offset],
src[offset + 1],
src[offset + 2],
- &H, &S, &V);
+ &h, &s, &v);
- if (is_gray (S, o->threshold))
+ if (is_gray (s, o->threshold))
{
if (o->change == FALSE)
{
if (angle_inside_slice (o->hue, o->s_fr, o->s_to, o->s_cl) <= 1)
{
- H = o->hue / TP;
- S = o->saturation;
+ h = o->hue / TP;
+ s = o->saturation;
}
else
{
@@ -313,7 +313,7 @@ color_rotate (gfloat *src,
else
{
skip = TRUE;
- hsv_to_rgb (o->hue / TP, o->saturation, V,
+ hsv_to_rgb (o->hue / TP, o->saturation, v,
color, color + 1, color + 2);
color[3] = src[offset + 3];
}
@@ -321,13 +321,13 @@ color_rotate (gfloat *src,
if (! skip)
{
- H = linear (left_end (o->s_fr, o->s_to, o->s_cl),
+ h = linear (left_end (o->s_fr, o->s_to, o->s_cl),
right_end (o->s_fr, o->s_to, o->s_cl),
left_end (o->d_fr, o->d_to, o->d_cl),
right_end (o->d_fr, o->d_to, o->d_cl),
- H * TP);
- H = angle_mod_2PI (H) / TP;
- hsv_to_rgb (H, S, V,
+ h * TP);
+ h = angle_mod_2PI (h) / TP;
+ hsv_to_rgb (h, s, v,
color, color + 1, color + 2);
color[3] = src[offset + 3];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]