[gimp/goat-invasion] app: adapt to API changes in gegl_buffer_iterator



commit dde40c1fba68da38b5abe622bf709cd2fcbd7f5d
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Mon Mar 26 18:30:30 2012 +0100

    app: adapt to API changes in gegl_buffer_iterator

 app/core/gimpchannel-combine.c        |    7 ++++---
 app/core/gimpchannel.c                |    4 ++--
 app/core/gimppalette-import.c         |    4 ++--
 app/core/gimpscanconvert.c            |    2 +-
 app/gegl/gimpoperationcagecoefcalc.c  |    2 +-
 app/gegl/gimpoperationcagetransform.c |    2 +-
 app/text/gimptextlayer.c              |    2 +-
 7 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/app/core/gimpchannel-combine.c b/app/core/gimpchannel-combine.c
index b0fd716..643971b 100644
--- a/app/core/gimpchannel-combine.c
+++ b/app/core/gimpchannel-combine.c
@@ -238,7 +238,8 @@ gimp_channel_combine_ellipse_rect (GimpChannel    *mask,
 
   iter = gegl_buffer_iterator_new (buffer,
                                    GIMP_GEGL_RECT (x0, y0, width, height), 0,
-                                   babl_format ("Y u8"), GEGL_BUFFER_READWRITE);
+                                   babl_format ("Y u8"), GEGL_BUFFER_READWRITE,
+                                   GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
   bpp = 1;
 
@@ -464,13 +465,13 @@ gimp_channel_combine_mask (GimpChannel    *mask,
   rect.height = h;
 
   iter = gegl_buffer_iterator_new (mask_buffer, &rect, 0, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READWRITE);
+                                   GEGL_BUFFER_READWRITE, GEGL_ABYSS_NONE);
 
   rect.x -= off_x;
   rect.y -= off_y;
 
   gegl_buffer_iterator_add (iter, add_on_buffer, &rect, 0, babl_format ("Y u8"),
-                            GEGL_BUFFER_READ);
+                            GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
 
   switch (op)
     {
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 3b1f43d..5378526 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -1083,7 +1083,7 @@ gimp_channel_real_bounds (GimpChannel *channel,
   buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READ);
+                                   GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
 
   while (gegl_buffer_iterator_next (iter))
@@ -1181,7 +1181,7 @@ gimp_channel_real_is_empty (GimpChannel *channel)
   buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (channel));
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, babl_format ("Y u8"),
-                                   GEGL_BUFFER_READ);
+                                   GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (iter))
     {
diff --git a/app/core/gimppalette-import.c b/app/core/gimppalette-import.c
index 538fb89..647b271 100644
--- a/app/core/gimppalette-import.c
+++ b/app/core/gimppalette-import.c
@@ -290,7 +290,7 @@ gimp_palette_import_extract (GimpImage     *image,
   format = gimp_pickable_get_format (pickable);
 
   iter = gegl_buffer_iterator_new (buffer, &rect, 0, format,
-                                   GEGL_BUFFER_READ);
+                                   GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
   bpp = babl_format_get_bytes_per_pixel (format);
 
@@ -308,7 +308,7 @@ gimp_palette_import_extract (GimpImage     *image,
 
       gegl_buffer_iterator_add (iter, buffer, &rect, 0,
                                 gimp_drawable_get_format (mask),
-                                GEGL_BUFFER_READ);
+                                GEGL_BUFFER_READ, GEGL_ABYSS_NONE);
       mask_roi = &iter->roi[1];
       mask_bpp = babl_format_get_bytes_per_pixel (format);
     }
diff --git a/app/core/gimpscanconvert.c b/app/core/gimpscanconvert.c
index a84a7b2..7ff042e 100644
--- a/app/core/gimpscanconvert.c
+++ b/app/core/gimpscanconvert.c
@@ -482,7 +482,7 @@ gimp_scan_convert_render_full (GimpScanConvert *sc,
   bpp    = babl_format_get_bytes_per_pixel (format);
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
-                                   GEGL_BUFFER_WRITE);
+                                   GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
   roi = &iter->roi[0];
 
   while (gegl_buffer_iterator_next (iter))
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index 097df0c..1c2c58c 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -210,7 +210,7 @@ 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, 0, format,
-                                 GEGL_BUFFER_READWRITE);
+                                 GEGL_BUFFER_READWRITE, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (it))
     {
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index 681a7a9..073e088 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -242,7 +242,7 @@ gimp_operation_cage_transform_process (GeglOperation       *operation,
 
   /* pre-fill the out buffer with no-displacement coordinate */
   it      = gegl_buffer_iterator_new (out_buf, roi, 0, NULL,
-                                      GEGL_BUFFER_WRITE);
+                                      GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
   cage_bb = gimp_cage_config_get_bounding_box (config);
 
   point = &(g_array_index (config->cage_points, GimpCagePoint, 0));
diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c
index fe25884..b185792 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -686,7 +686,7 @@ gimp_text_layer_render_layout (GimpTextLayer  *layer,
   bytes  = babl_format_get_bytes_per_pixel (format);
 
   iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
-                                   GEGL_BUFFER_WRITE);
+                                   GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
 
   while (gegl_buffer_iterator_next (iter))
     {



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