[gegl] transform-core: harmless refactor



commit 611bc7e8d6d92efdfa8d6a7c1628a72d87d6d921
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Mon Dec 24 22:01:32 2012 -0500

    transform-core: harmless refactor

 operations/transform/transform-core.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 99be342..516372d 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -1057,7 +1057,6 @@ transform_generic (GeglBuffer  *dest,
         (gint) 1
         :
         (gint) 0;
-      const gint flip_y = (gint) 1 - (gint) 2 * bflip_y;
 
       /*
        * Now determine whether to flip in the horizontal
@@ -1082,17 +1081,19 @@ transform_generic (GeglBuffer  *dest,
         (gint) 1
         :
         (gint) 0;
-      const gint flip_x = (gint) 1 - (gint) 2 * bflip_x;
-
-      gdouble u_start = bflip_x ? u_float_x : u_start_x;
-      gdouble v_start = bflip_x ? v_float_x : v_start_x;
-      gdouble w_start = bflip_x ? w_float_x : w_start_x;
 
       gfloat * restrict dest_ptr =
         (gfloat *)i->data[0] +
         (gint) 4 * ( bflip_x * (roi->width  - (gint) 1) +
                      bflip_y * (roi->height - (gint) 1) * roi->width );
 
+      gdouble u_start = bflip_x ? u_float_x : u_start_x;
+      gdouble v_start = bflip_x ? v_float_x : v_start_x;
+      gdouble w_start = bflip_x ? w_float_x : w_start_x;
+
+      const gint flip_x = (gint) 1 - (gint) 2 * bflip_x;
+      const gint flip_y = (gint) 1 - (gint) 2 * bflip_y;
+
       /*
        * Assumes that height and width are > 0.
        */



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