app: more gegl_buffer_iterator_new() updates

This commit is contained in:
Michael Natterer 2012-03-26 19:08:14 +02:00
parent 9a22e2202f
commit efbc4e61b0
5 changed files with 13 additions and 13 deletions

View File

@ -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))
{

View File

@ -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))

View File

@ -20,7 +20,6 @@
#include "config.h"
#include <gegl.h>
#include <gegl-buffer-iterator.h>
#include "libgimpmath/gimpmath.h"
@ -211,7 +210,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, 0, format, GEGL_BUFFER_READWRITE, GEGL_ABYSS_NONE);
it = gegl_buffer_iterator_new (output, roi, 0, format,
GEGL_BUFFER_READWRITE, GEGL_ABYSS_NONE);
while (gegl_buffer_iterator_next (it))
{

View File

@ -21,7 +21,6 @@
#include <cairo.h>
#include <gegl.h>
#include <gegl-buffer-iterator.h>
#include "libgimpcolor/gimpcolor.h"
#include "libgimpmath/gimpmath.h"
@ -244,14 +243,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, 0, NULL, GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
it = gegl_buffer_iterator_new (out_buf, roi, 0, NULL,
GEGL_BUFFER_WRITE, GEGL_ABYSS_NONE);
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))
{

View File

@ -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))
{