[gegl] operations, seamless-clone: clean alignments and trailing whitespaces.



commit 890fa24d8afbd3184b6ec5f45fd5a271904702a2
Author: Jehan <jehan girinstud io>
Date:   Sun Aug 6 14:44:51 2017 +0200

    operations, seamless-clone: clean alignments and trailing whitespaces.

 operations/seamless-clone/seamless-clone-compose.c |    2 +-
 operations/seamless-clone/seamless-clone.c         |   21 ++++++++-------
 seamless-clone/sc-context.c                        |   26 ++++++++++----------
 3 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/operations/seamless-clone/seamless-clone-compose.c 
b/operations/seamless-clone/seamless-clone-compose.c
index ecbe49e..7aa9dbc 100644
--- a/operations/seamless-clone/seamless-clone-compose.c
+++ b/operations/seamless-clone/seamless-clone-compose.c
@@ -75,7 +75,7 @@ attach (GeglOperation *operation)
    * which was more than half but not fulll. */
   overlay = gegl_node_new_child (gegl, "operation", "svg:src-atop", NULL);
   output = gegl_node_get_output_proxy (gegl, "output");
- 
+
   gegl_node_connect_to (input, "output", seamless, "input");
   gegl_node_connect_to (aux, "output", seamless, "aux");
   gegl_node_connect_to (input, "output", overlay, "input");
diff --git a/operations/seamless-clone/seamless-clone.c b/operations/seamless-clone/seamless-clone.c
index 04eeed6..22d5286 100644
--- a/operations/seamless-clone/seamless-clone.c
+++ b/operations/seamless-clone/seamless-clone.c
@@ -66,7 +66,7 @@ get_required_for_output (GeglOperation       *operation,
 {
   GeglRectangle *temp = NULL;
   GeglRectangle  result;
-  
+
   if (g_strcmp0 (input_pad, "input") || g_strcmp0 (input_pad, "aux"))
     temp = gegl_operation_source_get_bounding_box (operation, input_pad);
   else
@@ -78,7 +78,7 @@ get_required_for_output (GeglOperation       *operation,
     {
       result.width = result.height = 0;
     }
-  
+
   return result;
 }
 
@@ -89,9 +89,9 @@ get_required_for_output (GeglOperation       *operation,
 static void
 prepare (GeglOperation *operation)
 {
-  const Babl *format = babl_format (GEGL_SC_COLOR_BABL_NAME);
+  const Babl     *format = babl_format (GEGL_SC_COLOR_BABL_NAME);
   GeglProperties *o = GEGL_PROPERTIES (operation);
-  SCProps *props;
+  SCProps        *props;
 
   if ((props = (SCProps*) o->user_data) == NULL)
     {
@@ -111,8 +111,9 @@ prepare (GeglOperation *operation)
 
 static void finalize (GObject *object)
 {
-  GeglOperation *op = (void*) object;
+  GeglOperation  *op = (void*) object;
   GeglProperties *o = GEGL_PROPERTIES (op);
+
   if (o->user_data)
     {
       SCProps *props = (SCProps*) o->user_data;
@@ -133,11 +134,11 @@ process (GeglOperation       *operation,
          const GeglRectangle *result,
          gint                 level)
 {
-  gboolean  return_val;
-  GeglProperties *o = GEGL_PROPERTIES (operation);
-  SCProps *props;
-  GeglScCreationError error;
-  GeglScRenderInfo info;
+  GeglProperties      *o = GEGL_PROPERTIES (operation);
+  SCProps             *props;
+  GeglScCreationError  error;
+  GeglScRenderInfo     info;
+  gboolean             return_val;
 
   g_assert (o->user_data != NULL);
 
diff --git a/seamless-clone/sc-context.c b/seamless-clone/sc-context.c
index db79155..0837025 100644
--- a/seamless-clone/sc-context.c
+++ b/seamless-clone/sc-context.c
@@ -125,8 +125,9 @@ gegl_sc_context_create_outline (GeglBuffer          *input,
                                 GeglScCreationError *error)
 {
   gboolean       ignored_islands = FALSE;
-  GeglScOutline *outline
-      = gegl_sc_outline_find (roi, input, threshold, &ignored_islands);
+  GeglScOutline *outline = gegl_sc_outline_find (roi, input,
+                                                 threshold,
+                                                 &ignored_islands);
   guint          length  = gegl_sc_outline_length (outline);
 
   *error = GEGL_SC_CREATION_ERROR_NONE;
@@ -226,7 +227,8 @@ gegl_sc_make_fine_mesh (GeglScOutline *outline,
 {
   GPtrArray *realOutline = (GPtrArray*) outline;
   gint i, N = realOutline->len;
-  gint min_x = G_MAXINT, max_x = -G_MAXINT, min_y = G_MAXINT, max_y = -G_MAXINT;
+  gint min_x = G_MAXINT, max_x = -G_MAXINT;
+  gint min_y = G_MAXINT, max_y = -G_MAXINT;
 
   /* An array of P2tPoint*, holding the outline points */
   GPtrArray *mesh_points = g_ptr_array_new ();
@@ -573,7 +575,7 @@ gegl_sc_compute_uvt_cache (P2trMesh            *mesh,
 
 void
 gegl_sc_context_set_uvt_cache (GeglScContext *context,
-                               gboolean  enabled)
+                               gboolean       enabled)
 {
   context->cache_uvt = enabled;
   if (! enabled && context->uvt != NULL)
@@ -623,7 +625,7 @@ gegl_sc_context_render (GeglScContext       *context,
                                  &context->mesh_bounds))
     {
       g_warning ("The mesh from the preprocessing is not inside the "
-          "foreground. Stop");
+                 "foreground. Stop");
       return FALSE;
     }
 
@@ -633,10 +635,10 @@ gegl_sc_context_render (GeglScContext       *context,
   /* The real rectangle of the foreground that we should render is
    * defined by the bounds of the mesh plus the given offset */
   gegl_rectangle_set (&fg_rect,
-      context->mesh_bounds.x + xoff,
-      context->mesh_bounds.y + yoff,
-      context->mesh_bounds.width,
-      context->mesh_bounds.height);
+                      context->mesh_bounds.x + xoff,
+                      context->mesh_bounds.y + yoff,
+                      context->mesh_bounds.width,
+                      context->mesh_bounds.height);
 
   /* We only need to render the intersection of the mesh bounds and the
    * desired output */
@@ -660,8 +662,8 @@ gegl_sc_context_render (GeglScContext       *context,
   out_index = 0;
 
   gegl_rectangle_set (&to_render_fg,
-      to_render.x - xoff, to_render.y - yoff,
-      to_render.width,    to_render.height);
+                      to_render.x - xoff, to_render.y - yoff,
+                      to_render.width,    to_render.height);
 
   if (context->uvt)
     {
@@ -789,6 +791,4 @@ gegl_sc_context_free (GeglScContext *context)
   gegl_sc_outline_free (context->outline);
 
   g_slice_free (GeglScContext, context);
- 
 }
-


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