[gegl] cosmetic



commit eac9e9f9e314781edbd87ddb6bb35682cf2925b7
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date:   Mon Jun 27 09:54:47 2011 -0400

    cosmetic

 gegl/buffer/gegl-sampler-lohalo.c |   67 +++++++++++++++++++++++--------------
 1 files changed, 42 insertions(+), 25 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index c7b1bb1..ecc2118 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -2255,33 +2255,49 @@ gegl_sampler_lohalo_get (      GeglSampler* restrict self,
                  * 1 indices we use at this level:
                  */
                 const gint out_left =
-                  LOHALO_MAX(
-                              (gint)
-                              ( ceilf  ( ( x_1 - bounding_box_half_width  ) * (gfloat) 0.5 ) )
-                              ,
-                              -LOHALO_OFFSET_1
-                            );
+                  LOHALO_MAX
+                    (
+                      (gint)
+                      (
+                        ceilf
+                          ( ( x_1 - bounding_box_half_width  ) * (gfloat) 0.5 )
+                      )
+                      ,
+                      -LOHALO_OFFSET_1
+                    );
                 const gint out_rite =
-                  LOHALO_MIN(
-                              (gint)
-                              ( floorf ( ( x_1 + bounding_box_half_width  ) * (gfloat) 0.5 ) )
-                              ,
-                               LOHALO_OFFSET_1
-                            );
+                  LOHALO_MIN
+                    (
+                      (gint)
+                      (
+                        floorf
+                          ( ( x_1 + bounding_box_half_width  ) * (gfloat) 0.5 )
+                      )
+                      ,
+                      LOHALO_OFFSET_1
+                    );
                 const gint out_top =
-                  LOHALO_MAX(
-                              (gint)
-                              ( ceilf  ( ( y_1 - bounding_box_half_height ) * (gfloat) 0.5 ) )
-                              ,
-                              -LOHALO_OFFSET_1
-                            );
+                  LOHALO_MAX
+                    (
+                      (gint)
+                      (
+                        ceilf
+                          ( ( y_1 - bounding_box_half_height ) * (gfloat) 0.5 )
+                      )
+                      ,
+                      -LOHALO_OFFSET_1
+                    );
                 const gint out_bot =
-                  LOHALO_MIN(
-                              (gint)
-                              ( floorf ( ( y_1 + bounding_box_half_height ) * (gfloat) 0.5 ) )
-                              ,
-                               LOHALO_OFFSET_1
-                            );
+                  LOHALO_MIN
+                    (
+                      (gint)
+                      (
+                        floorf
+                          ( ( y_1 + bounding_box_half_height ) * (gfloat) 0.5 )
+                      )
+                      ,
+                      LOHALO_OFFSET_1
+                    );
 
                 /*
                  * Update using mipmap level 1 values.
@@ -2341,7 +2357,8 @@ gegl_sampler_lohalo_get (      GeglSampler* restrict self,
               /*
                * Blend the LBB-Nohalo and EWA results:
                */
-              const gfloat beta = (gfloat) ( ( (gdouble) 1.0 - theta ) / total_weight );
+              const gfloat beta =
+                (gfloat) ( ( (gdouble) 1.0 - theta ) / total_weight );
               newval[0] = theta * newval[0] + beta * ewa_newval[0];
               newval[1] = theta * newval[1] + beta * ewa_newval[1];
               newval[2] = theta * newval[2] + beta * ewa_newval[2];



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