[gegl] cosmetic



commit e107ebb68dc4b518e95d2a7e296b257ca8abdbfc
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Tue Jan 1 09:45:28 2013 -0500

    cosmetic

 gegl/buffer/gegl-sampler-lohalo.c |  105 ++++++++++++++++++-------------------
 1 files changed, 52 insertions(+), 53 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 00563b2..d255cbf 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -458,7 +458,7 @@ static inline float
 sigmoidalf (const float p)
 {
   return tanhf ((gfloat) (0.5*LOHALO_CONTRAST) * p +
-		(gfloat) (-0.25*LOHALO_CONTRAST));
+                (gfloat) (-0.25*LOHALO_CONTRAST));
 }
 
 static inline gfloat
@@ -781,79 +781,78 @@ gegl_sampler_lohalo_get (      GeglSampler*    restrict  self,
   newval[0] =
     extended_sigmoidal (
       uno * ( one * inverse_sigmoidal (input_ptr[ uno_one_shift ]) +
-	      two * inverse_sigmoidal (input_ptr[ uno_two_shift ]) +
-	      thr * inverse_sigmoidal (input_ptr[ uno_thr_shift ]) +
-	      fou * inverse_sigmoidal (input_ptr[ uno_fou_shift ]) ) +
+              two * inverse_sigmoidal (input_ptr[ uno_two_shift ]) +
+              thr * inverse_sigmoidal (input_ptr[ uno_thr_shift ]) +
+              fou * inverse_sigmoidal (input_ptr[ uno_fou_shift ]) ) +
       dos * ( one * inverse_sigmoidal (input_ptr[ dos_one_shift ]) +
-	      two * inverse_sigmoidal (input_ptr[ dos_two_shift ]) +
-	      thr * inverse_sigmoidal (input_ptr[ dos_thr_shift ]) +
-	      fou * inverse_sigmoidal (input_ptr[ dos_fou_shift ]) ) +
+              two * inverse_sigmoidal (input_ptr[ dos_two_shift ]) +
+              thr * inverse_sigmoidal (input_ptr[ dos_thr_shift ]) +
+              fou * inverse_sigmoidal (input_ptr[ dos_fou_shift ]) ) +
       tre * ( one * inverse_sigmoidal (input_ptr[ tre_one_shift ]) +
-	      two * inverse_sigmoidal (input_ptr[ tre_two_shift ]) +
-	      thr * inverse_sigmoidal (input_ptr[ tre_thr_shift ]) +
-	      fou * inverse_sigmoidal (input_ptr[ tre_fou_shift ]) ) +
+              two * inverse_sigmoidal (input_ptr[ tre_two_shift ]) +
+              thr * inverse_sigmoidal (input_ptr[ tre_thr_shift ]) +
+              fou * inverse_sigmoidal (input_ptr[ tre_fou_shift ]) ) +
       qua * ( one * inverse_sigmoidal (input_ptr[ qua_one_shift ]) +
-	      two * inverse_sigmoidal (input_ptr[ qua_two_shift ]) +
-	      thr * inverse_sigmoidal (input_ptr[ qua_thr_shift ]) +
-	      fou * inverse_sigmoidal (input_ptr[ qua_fou_shift ]) ) );
+              two * inverse_sigmoidal (input_ptr[ qua_two_shift ]) +
+              thr * inverse_sigmoidal (input_ptr[ qua_thr_shift ]) +
+              fou * inverse_sigmoidal (input_ptr[ qua_fou_shift ]) ) );
   newval[1] =
     extended_sigmoidal (
       uno * ( one * inverse_sigmoidal (input_ptr[ uno_one_shift + 1 ]) +
-	      two * inverse_sigmoidal (input_ptr[ uno_two_shift + 1 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ uno_thr_shift + 1 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ uno_fou_shift + 1 ]) ) +
+              two * inverse_sigmoidal (input_ptr[ uno_two_shift + 1 ]) +
+              thr * inverse_sigmoidal (input_ptr[ uno_thr_shift + 1 ]) +
+              fou * inverse_sigmoidal (input_ptr[ uno_fou_shift + 1 ]) ) +
       dos * ( one * inverse_sigmoidal (input_ptr[ dos_one_shift + 1 ]) +
-	      two * inverse_sigmoidal (input_ptr[ dos_two_shift + 1 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ dos_thr_shift + 1 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ dos_fou_shift + 1 ]) ) +
+              two * inverse_sigmoidal (input_ptr[ dos_two_shift + 1 ]) +
+              thr * inverse_sigmoidal (input_ptr[ dos_thr_shift + 1 ]) +
+              fou * inverse_sigmoidal (input_ptr[ dos_fou_shift + 1 ]) ) +
       tre * ( one * inverse_sigmoidal (input_ptr[ tre_one_shift + 1 ]) +
-	      two * inverse_sigmoidal (input_ptr[ tre_two_shift + 1 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ tre_thr_shift + 1 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ tre_fou_shift + 1 ]) ) +
+              two * inverse_sigmoidal (input_ptr[ tre_two_shift + 1 ]) +
+              thr * inverse_sigmoidal (input_ptr[ tre_thr_shift + 1 ]) +
+              fou * inverse_sigmoidal (input_ptr[ tre_fou_shift + 1 ]) ) +
       qua * ( one * inverse_sigmoidal (input_ptr[ qua_one_shift + 1 ]) +
-	      two * inverse_sigmoidal (input_ptr[ qua_two_shift + 1 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ qua_thr_shift + 1 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ qua_fou_shift + 1 ]) ) );
+              two * inverse_sigmoidal (input_ptr[ qua_two_shift + 1 ]) +
+              thr * inverse_sigmoidal (input_ptr[ qua_thr_shift + 1 ]) +
+              fou * inverse_sigmoidal (input_ptr[ qua_fou_shift + 1 ]) ) );
   newval[2] =
     extended_sigmoidal (
       uno * ( one * inverse_sigmoidal (input_ptr[ uno_one_shift + 2 ]) +
-	      two * inverse_sigmoidal (input_ptr[ uno_two_shift + 2 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ uno_thr_shift + 2 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ uno_fou_shift + 2 ]) ) +
+              two * inverse_sigmoidal (input_ptr[ uno_two_shift + 2 ]) +
+              thr * inverse_sigmoidal (input_ptr[ uno_thr_shift + 2 ]) +
+              fou * inverse_sigmoidal (input_ptr[ uno_fou_shift + 2 ]) ) +
       dos * ( one * inverse_sigmoidal (input_ptr[ dos_one_shift + 2 ]) +
-	      two * inverse_sigmoidal (input_ptr[ dos_two_shift + 2 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ dos_thr_shift + 2 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ dos_fou_shift + 2 ]) ) +
+              two * inverse_sigmoidal (input_ptr[ dos_two_shift + 2 ]) +
+              thr * inverse_sigmoidal (input_ptr[ dos_thr_shift + 2 ]) +
+              fou * inverse_sigmoidal (input_ptr[ dos_fou_shift + 2 ]) ) +
       tre * ( one * inverse_sigmoidal (input_ptr[ tre_one_shift + 2 ]) +
-	      two * inverse_sigmoidal (input_ptr[ tre_two_shift + 2 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ tre_thr_shift + 2 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ tre_fou_shift + 2 ]) ) +
+              two * inverse_sigmoidal (input_ptr[ tre_two_shift + 2 ]) +
+              thr * inverse_sigmoidal (input_ptr[ tre_thr_shift + 2 ]) +
+              fou * inverse_sigmoidal (input_ptr[ tre_fou_shift + 2 ]) ) +
       qua * ( one * inverse_sigmoidal (input_ptr[ qua_one_shift + 2 ]) +
-	      two * inverse_sigmoidal (input_ptr[ qua_two_shift + 2 ]) +
-	      thr * inverse_sigmoidal (input_ptr[ qua_thr_shift + 2 ]) +
-	      fou * inverse_sigmoidal (input_ptr[ qua_fou_shift + 2 ]) ) );
+              two * inverse_sigmoidal (input_ptr[ qua_two_shift + 2 ]) +
+              thr * inverse_sigmoidal (input_ptr[ qua_thr_shift + 2 ]) +
+              fou * inverse_sigmoidal (input_ptr[ qua_fou_shift + 2 ]) ) );
   /*
-   * Nicolas is not sure, but it appears that it is a bad idea to
-   * sigmoidize the transparency channel (in RaGaBaA, at least). So
-   * don't.
+   * It appears that it is a bad idea to sigmoidize the transparency
+   * channel (in RaGaBaA, at least). So don't.
    */
   newval[3] = uno * ( one * input_ptr[ uno_one_shift + 3 ] +
-		      two * input_ptr[ uno_two_shift + 3 ] +
-		      thr * input_ptr[ uno_thr_shift + 3 ] +
-		      fou * input_ptr[ uno_fou_shift + 3 ] ) +
+                      two * input_ptr[ uno_two_shift + 3 ] +
+                      thr * input_ptr[ uno_thr_shift + 3 ] +
+                      fou * input_ptr[ uno_fou_shift + 3 ] ) +
               dos * ( one * input_ptr[ dos_one_shift + 3 ] +
-		      two * input_ptr[ dos_two_shift + 3 ] +
-		      thr * input_ptr[ dos_thr_shift + 3 ] +
-		      fou * input_ptr[ dos_fou_shift + 3 ] ) +
+                      two * input_ptr[ dos_two_shift + 3 ] +
+                      thr * input_ptr[ dos_thr_shift + 3 ] +
+                      fou * input_ptr[ dos_fou_shift + 3 ] ) +
               tre * ( one * input_ptr[ tre_one_shift + 3 ] +
-		      two * input_ptr[ tre_two_shift + 3 ] +
-		      thr * input_ptr[ tre_thr_shift + 3 ] +
-		      fou * input_ptr[ tre_fou_shift + 3 ] ) +
+                      two * input_ptr[ tre_two_shift + 3 ] +
+                      thr * input_ptr[ tre_thr_shift + 3 ] +
+                      fou * input_ptr[ tre_fou_shift + 3 ] ) +
               qua * ( one * input_ptr[ qua_one_shift + 3 ] +
-		      two * input_ptr[ qua_two_shift + 3 ] +
-		      thr * input_ptr[ qua_thr_shift + 3 ] +
-		      fou * input_ptr[ qua_fou_shift + 3 ] );
-  
+                      two * input_ptr[ qua_two_shift + 3 ] +
+                      thr * input_ptr[ qua_thr_shift + 3 ] +
+                      fou * input_ptr[ qua_fou_shift + 3 ] );
+
   {
     /*
      * Determine whether Mitchell-Netravali needs to be blended with



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