gegl r2538 - trunk/operations/common
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2538 - trunk/operations/common
- Date: Mon, 28 Jul 2008 22:31:30 +0000 (UTC)
Author: neo
Date: Mon Jul 28 22:31:30 2008
New Revision: 2538
URL: http://svn.gnome.org/viewvc/gegl?rev=2538&view=rev
Log:
minor coding style changes
Modified:
   trunk/operations/common/color-temperature.c
Modified: trunk/operations/common/color-temperature.c
==============================================================================
--- trunk/operations/common/color-temperature.c	(original)
+++ trunk/operations/common/color-temperature.c	Mon Jul 28 22:31:30 2008
@@ -34,11 +34,10 @@
 static const gfloat rgb_r55[][12];
 
 static void
-convert_k_to_rgb (gfloat temperature,
+convert_k_to_rgb (gfloat  temperature,
                   gfloat *rgb)
 {
-  gfloat nomin, denom;
-  int    channel, deg;
+  gint channel;
 
   if (temperature < LOWEST_TEMPERATURE)
     temperature = LOWEST_TEMPERATURE;
@@ -53,6 +52,9 @@
    */
   for (channel = 0; channel < 3; channel++)
     {
+      gfloat nomin, denom;
+      gint   deg;
+
       nomin = rgb_r55[channel][0];
       for (deg = 1; deg < 6; deg++)
         nomin = nomin * temperature + rgb_r55[channel][deg];
@@ -91,7 +93,7 @@
   gfloat      coeffs[3];
   glong       i;
 
-  in_pixel  = in_buf;
+  in_pixel = in_buf;
   out_pixel = out_buf;
 
   convert_k_to_rgb (o->original_temperature, original_temperature_rgb);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]