[gimp/goat-invasion] app: more gegl_buffer_iterator_new() updates



commit b36f497dbc898fb859e800d7ae1302cdcbe7f9ba
Author: Michael Natterer <mitch gimp org>
Date:   Mon Mar 26 19:08:14 2012 +0200

    app: more gegl_buffer_iterator_new() updates

 app/core/gimpchannel.c                |    8 ++++----
 app/core/gimpscanconvert.c            |    4 ++--
 app/gegl/gimpoperationcagecoefcalc.c  |    4 ++--
 app/gegl/gimpoperationcagetransform.c |    6 +++---
 app/text/gimptextlayer.c              |    4 ++--
 5 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 0ed69c2..3b1f43d 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -1082,8 +1082,8 @@ gimp_channel_real_bounds (GimpChannel *channel,
 
   buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
 
-  iter = gegl_buffer_iterator_new (buffer, NULL, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READ, 0);
+  iter = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("Y u8"),
+                                   GEGL_BUFFER_READ);
   roi = &iter->roi[0];
 
   while (gegl_buffer_iterator_next (iter))
@@ -1180,8 +1180,8 @@ gimp_channel_real_is_empty (GimpChannel *channel)
 
   buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
 
-  iter = gegl_buffer_iterator_new (buffer, NULL, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READ, 0);
+  iter = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("Y u8"),
+                                   GEGL_BUFFER_READ);
 
   while (gegl_buffer_iterator_next (iter))
     {
diff --git a/app/core/gimpscanconvert.c b/app/core/gimpscanconvert.c
index 97a2675..a84a7b2 100644
--- a/app/core/gimpscanconvert.c
+++ b/app/core/gimpscanconvert.c
@@ -481,8 +481,8 @@ gimp_scan_convert_render_full (GimpScanConvert *sc,
   format = babl_format ("Y u8");
   bpp    = babl_format_get_bytes_per_pixel (format);
 
-  iter = gegl_buffer_iterator_new (buffer, NULL, format,
-                                   GEGL_BUFFER_WRITE, 0);
+  iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
+                                   GEGL_BUFFER_WRITE);
   roi = &iter->roi[0];
 
   while (gegl_buffer_iterator_next (iter))
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index c9a9086..097df0c 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -20,7 +20,6 @@
 #include "config.h"
 
 #include <gegl.h>
-#include <gegl-buffer-iterator.h>
 
 #include "libgimpmath/gimpmath.h"
 
@@ -210,7 +209,8 @@ gimp_operation_cage_coef_calc_process (GeglOperation       *operation,
 
   n_cage_vertices   = gimp_cage_config_get_n_points (config);
 
-  it = gegl_buffer_iterator_new (output, roi, format, GEGL_BUFFER_READWRITE, 0);
+  it = gegl_buffer_iterator_new (output, roi, 0, format,
+                                 GEGL_BUFFER_READWRITE);
 
   while (gegl_buffer_iterator_next (it))
     {
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index c972cbf..681a7a9 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -21,7 +21,6 @@
 
 #include <cairo.h>
 #include <gegl.h>
-#include <gegl-buffer-iterator.h>
 
 #include "libgimpcolor/gimpcolor.h"
 #include "libgimpmath/gimpmath.h"
@@ -242,14 +241,15 @@ gimp_operation_cage_transform_process (GeglOperation       *operation,
   guint                       n_cage_vertices;
 
   /* pre-fill the out buffer with no-displacement coordinate */
-  it      = gegl_buffer_iterator_new (out_buf, roi, NULL, GEGL_BUFFER_WRITE, 0);
+  it      = gegl_buffer_iterator_new (out_buf, roi, 0, NULL,
+                                      GEGL_BUFFER_WRITE);
   cage_bb = gimp_cage_config_get_bounding_box (config);
 
   point = &(g_array_index (config->cage_points, GimpCagePoint, 0));
   plain_color.x = (gint) point->src_point.x;
   plain_color.y = (gint) point->src_point.y;
 
-  n_cage_vertices   = gimp_cage_config_get_n_points (config);
+  n_cage_vertices = gimp_cage_config_get_n_points (config);
 
   while (gegl_buffer_iterator_next (it))
     {
diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c
index 1a7a61e..fe25884 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -685,8 +685,8 @@ gimp_text_layer_render_layout (GimpTextLayer  *layer,
   fish   = babl_fish (babl_format ("RGBA u8"), format);
   bytes  = babl_format_get_bytes_per_pixel (format);
 
-  iter = gegl_buffer_iterator_new (buffer, NULL, format,
-                                   GEGL_BUFFER_WRITE, 0);
+  iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
+                                   GEGL_BUFFER_WRITE);
 
   while (gegl_buffer_iterator_next (iter))
     {



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