[gegl] tile-paper: use new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tile-paper: use new iterator api
- Date: Wed, 12 Sep 2018 11:55:17 +0000 (UTC)
commit c5098419df29c64c6698cd07d4ea650fa3057172
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Sep 10 16:49:06 2018 +0200
tile-paper: use new iterator api
operations/common-gpl3+/tile-paper.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/operations/common-gpl3+/tile-paper.c b/operations/common-gpl3+/tile-paper.c
index 6d110f28c..25696fc1a 100644
--- a/operations/common-gpl3+/tile-paper.c
+++ b/operations/common-gpl3+/tile-paper.c
@@ -17,6 +17,7 @@
* Copyright 2015 Akash Hiremath (akash akya) <akashh246 gmail com>
*/
+#define GEGL_ITERATOR2_API
#include "config.h"
#include <glib/gi18n-lib.h>
@@ -307,14 +308,14 @@ set_background (GeglProperties *o,
}
iter = gegl_buffer_iterator_new (input, &clear, 0, format,
- GEGL_ACCESS_READ, GEGL_ABYSS_NONE);
+ GEGL_ACCESS_READ, GEGL_ABYSS_NONE, 2);
gegl_buffer_iterator_add (iter, output, &clear, 0, format,
GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE);
while (gegl_buffer_iterator_next (iter))
{
- gfloat *src = iter->data[0];
- gfloat *dst = iter->data[1];
+ gfloat *src = iter->items[0].data;
+ gfloat *dst = iter->items[1].data;
glong n_pixels = iter->length;
while (n_pixels--)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]