[gimp/goat-invasion: 259/412] app: adapt to API changes in GEGL
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 259/412] app: adapt to API changes in GEGL
- Date: Tue, 3 Apr 2012 09:54:52 +0000 (UTC)
commit 0e8a3088095f309efa1ce01670fa43972424bbed
Author: Ãyvind KolÃs <pippin gimp org>
Date: Mon Mar 26 01:17:24 2012 +0100
app: adapt to API changes in GEGL
app/core/gimpboundary.c | 6 ++++--
app/core/gimpbuffer.c | 3 ++-
app/core/gimpchannel.c | 2 +-
app/core/gimpdrawable-transform.c | 6 +++---
app/core/gimpdrawable.c | 2 +-
app/core/gimpimage-crop.c | 12 ++++++++----
app/core/gimpimagemap.c | 3 ++-
app/core/gimplayer.c | 2 +-
app/core/gimppatternclipboard.c | 3 ++-
app/core/gimpprojection.c | 2 +-
app/gegl/gimpoperationborder.c | 14 +++++++-------
app/gegl/gimpoperationgrow.c | 4 ++--
app/gegl/gimpoperationshrink.c | 4 ++--
13 files changed, 36 insertions(+), 27 deletions(-)
---
diff --git a/app/core/gimpboundary.c b/app/core/gimpboundary.c
index f393bf4..2da50ef 100644
--- a/app/core/gimpboundary.c
+++ b/app/core/gimpboundary.c
@@ -711,7 +711,8 @@ generate_boundary (GeglBuffer *buffer,
line_rect.y = start;
gegl_buffer_get (buffer, &line_rect, 1.0, format,
- line_data, GEGL_AUTO_ROWSTRIDE);
+ line_data, GEGL_AUTO_ROWSTRIDE,
+ GEGL_ABYSS_NONE);
find_empty_segs (region, line_data, bpp,
start, boundary->empty_segs_c,
@@ -727,7 +728,8 @@ generate_boundary (GeglBuffer *buffer,
line_data = NULL;
else
gegl_buffer_get (buffer, &line_rect, 1.0, format,
- line_data, GEGL_AUTO_ROWSTRIDE);
+ line_data, GEGL_AUTO_ROWSTRIDE,
+ GEGL_ABYSS_NONE);
find_empty_segs (region, line_data, bpp,
scanline + 1, boundary->empty_segs_n,
diff --git a/app/core/gimpbuffer.c b/app/core/gimpbuffer.c
index 9e81cfa..63328a6 100644
--- a/app/core/gimpbuffer.c
+++ b/app/core/gimpbuffer.c
@@ -208,7 +208,8 @@ gimp_buffer_get_new_preview (GimpViewable *viewable,
gimp_bpp_to_babl_format (gimp_buffer_get_bytes (buffer),
TRUE),
temp_buf_get_data (preview),
- width * gimp_buffer_get_bytes (buffer));
+ width * gimp_buffer_get_bytes (buffer),
+ GEGL_ABYSS_NONE);
return preview;
}
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 53e1566..a750012 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -977,7 +977,7 @@ gimp_channel_get_opacity_at (GimpPickable *pickable,
gegl_buffer_sample (gimp_drawable_get_buffer (GIMP_DRAWABLE (channel)),
x, y, NULL, &value, babl_format ("Y u8"),
- GEGL_SAMPLER_NEAREST);
+ GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
return value;
}
diff --git a/app/core/gimpdrawable-transform.c b/app/core/gimpdrawable-transform.c
index 838582d..ab4f827 100644
--- a/app/core/gimpdrawable-transform.c
+++ b/app/core/gimpdrawable-transform.c
@@ -581,7 +581,7 @@ gimp_drawable_transform_buffer_rotate (GimpDrawable *drawable,
dest_rect.x = new_x + i;
gegl_buffer_get (orig_buffer, &src_rect, 1.0, NULL, buf,
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
gegl_buffer_set (new_buffer, &dest_rect, 0, NULL, buf,
GEGL_AUTO_ROWSTRIDE);
}
@@ -609,7 +609,7 @@ gimp_drawable_transform_buffer_rotate (GimpDrawable *drawable,
dest_rect.y = new_y + i;
gegl_buffer_get (orig_buffer, &src_rect, 1.0, NULL, buf,
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (j = 0; j < orig_width / 2; j++)
{
@@ -651,7 +651,7 @@ gimp_drawable_transform_buffer_rotate (GimpDrawable *drawable,
dest_rect.y = new_y + i;
gegl_buffer_get (orig_buffer, &src_rect, 1.0, NULL, buf,
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
gegl_buffer_set (new_buffer, &dest_rect, 0, NULL, buf,
GEGL_AUTO_ROWSTRIDE);
}
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index cbea2cd..5b15119 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -704,7 +704,7 @@ gimp_drawable_get_pixel_at (GimpPickable *pickable,
gegl_buffer_sample (gimp_drawable_get_buffer (drawable),
x, y, NULL, pixel,
gimp_drawable_get_format (drawable),
- GEGL_SAMPLER_NEAREST);
+ GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
return TRUE;
}
diff --git a/app/core/gimpimage-crop.c b/app/core/gimpimage-crop.c
index e31d62a..133aaa1 100644
--- a/app/core/gimpimage-crop.c
+++ b/app/core/gimpimage-crop.c
@@ -389,7 +389,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for (y = y1; y < y2 && !abort; y++)
{
rect.y = y;
- gegl_buffer_get (buffer, &rect, 1.0, NULL, buf, GEGL_AUTO_ROWSTRIDE);
+ gegl_buffer_get (buffer, &rect, 1.0, NULL, buf,
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (x = 0; x < width && !abort; x++)
abort = !(colors_equal_func) (bgcolor, buf + x * bytes, bytes);
}
@@ -407,7 +408,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for (y = y2; y > y1 && !abort; y--)
{
rect.y = y - 1;
- gegl_buffer_get (buffer, &rect, 1.0, NULL, buf, GEGL_AUTO_ROWSTRIDE);
+ gegl_buffer_get (buffer, &rect, 1.0, NULL, buf,
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (x = 0; x < width && !abort; x++)
abort = !(colors_equal_func) (bgcolor, buf + x * bytes, bytes);
}
@@ -426,7 +428,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for (x = x1; x < x2 && !abort; x++)
{
rect.x = x;
- gegl_buffer_get (buffer, &rect, 1.0, NULL, buf, GEGL_AUTO_ROWSTRIDE);
+ gegl_buffer_get (buffer, &rect, 1.0, NULL, buf,
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (y = 0; y < height && !abort; y++)
abort = !(colors_equal_func) (bgcolor, buf + y * bytes, bytes);
}
@@ -442,7 +445,8 @@ gimp_image_crop_auto_shrink (GimpImage *image,
for (x = x2; x > x1 && !abort; x--)
{
rect.x = x - 1;
- gegl_buffer_get (buffer, &rect, 1.0, NULL, buf, GEGL_AUTO_ROWSTRIDE);
+ gegl_buffer_get (buffer, &rect, 1.0, NULL, buf,
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (y = 0; y < height && !abort; y++)
abort = !(colors_equal_func) (bgcolor, buf + y * bytes, bytes);
}
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index 19296d0..ee73c33 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -341,7 +341,8 @@ gimp_image_map_get_pixel_at (GimpPickable *pickable,
x - offset_x, y - offset_y,
NULL, pixel,
gimp_drawable_get_format (image_map->drawable),
- GEGL_SAMPLER_NEAREST);
+ GEGL_SAMPLER_NEAREST,
+ GEGL_ABYSS_NONE);
return TRUE;
}
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index eeef098..c3fa601 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -990,7 +990,7 @@ gimp_layer_get_opacity_at (GimpPickable *pickable,
*/
gegl_buffer_sample (gimp_drawable_get_buffer (GIMP_DRAWABLE (layer)),
x, y, NULL, &value, babl_format ("A u8"),
- GEGL_SAMPLER_NEAREST);
+ GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
if (layer->mask)
{
diff --git a/app/core/gimppatternclipboard.c b/app/core/gimppatternclipboard.c
index 0e211e6..2dbedfe 100644
--- a/app/core/gimppatternclipboard.c
+++ b/app/core/gimppatternclipboard.c
@@ -203,7 +203,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp *gimp,
GIMP_GEGL_RECT (0,0,width,height), 1.0,
gimp_bpp_to_babl_format (bytes, TRUE),
temp_buf_get_data (pattern->mask),
- width * gimp_buffer_get_bytes (buffer));
+ width * gimp_buffer_get_bytes (buffer),
+ GEGL_ABYSS_NONE);
}
else
{
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index 8610b8a..dc002a4 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -386,7 +386,7 @@ gimp_projection_get_pixel_at (GimpPickable *pickable,
gegl_buffer_sample (buffer, x, y, NULL, pixel,
gimp_projection_get_format (pickable),
- GEGL_SAMPLER_NEAREST);
+ GEGL_SAMPLER_NEAREST, GEGL_ABYSS_NONE);
return TRUE;
}
diff --git a/app/gegl/gimpoperationborder.c b/app/gegl/gimpoperationborder.c
index 77cf147..935c95c 100644
--- a/app/gegl/gimpoperationborder.c
+++ b/app/gegl/gimpoperationborder.c
@@ -381,14 +381,14 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + 0,
roi->width, 1),
1.0, input_format, source[1],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
if (roi->height > 1)
gegl_buffer_get (input,
GIMP_GEGL_RECT (roi->x, roi->y + 1,
roi->width, 1),
1.0, input_format, source[2],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
else
memcpy (source[2], source[1], roi->width);
@@ -409,7 +409,7 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + y + 1,
roi->width, 1),
1.0, input_format, source[2],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
}
else
{
@@ -523,14 +523,14 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + 0,
roi->width, 1),
1.0, input_format, buf[1],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
if (roi->height > 1)
gegl_buffer_get (input,
GIMP_GEGL_RECT (roi->x, roi->y + 1,
roi->width, 1),
1.0, input_format, buf[2],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
else
memcpy (buf[2], buf[1], roi->width);
@@ -544,7 +544,7 @@ gimp_operation_border_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + y + 1,
roi->width, 1),
1.0, input_format, buf[2],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
compute_transition (transition[y + 1], buf, roi->width, self->edge_lock);
}
@@ -574,7 +574,7 @@ gimp_operation_border_process (GeglOperation *operation,
roi->y + y + self->radius_y + 1,
roi->width, 1),
1.0, input_format, buf[2],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
compute_transition (transition[self->radius_y], buf, roi->width, self->edge_lock);
}
else
diff --git a/app/gegl/gimpoperationgrow.c b/app/gegl/gimpoperationgrow.c
index 21208b4..d9ae41f 100644
--- a/app/gegl/gimpoperationgrow.c
+++ b/app/gegl/gimpoperationgrow.c
@@ -284,7 +284,7 @@ gimp_operation_grow_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + i,
roi->width, 1),
1.0, input_format, buf[i + 1],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (x = 0; x < roi->width; x++) /* set up max for top of image */
{
@@ -304,7 +304,7 @@ gimp_operation_grow_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + y + self->radius_y,
roi->width, 1),
1.0, input_format, buf[self->radius_y],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
else
memset (buf[self->radius_y], 0, roi->width);
diff --git a/app/gegl/gimpoperationshrink.c b/app/gegl/gimpoperationshrink.c
index fd99a95..a18df16 100644
--- a/app/gegl/gimpoperationshrink.c
+++ b/app/gegl/gimpoperationshrink.c
@@ -323,7 +323,7 @@ gimp_operation_shrink_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + i,
roi->width, 1),
1.0, input_format, buf[i + 1],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
if (self->edge_lock)
memcpy (buf[0], buf[1], roi->width);
@@ -348,7 +348,7 @@ gimp_operation_shrink_process (GeglOperation *operation,
GIMP_GEGL_RECT (roi->x, roi->y + y + self->radius_y,
roi->width, 1),
1.0, input_format, buf[self->radius_y],
- GEGL_AUTO_ROWSTRIDE);
+ GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
else if (self->edge_lock)
memcpy (buf[self->radius_y], buf[self->radius_y - 1], roi->width);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]