[gimp/gimp-2-10] plug-ins: colormap-remap migrated to new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: colormap-remap migrated to new iterator api
- Date: Tue, 18 Sep 2018 10:38:46 +0000 (UTC)
commit 8e17056d15829c491370fba69f82ef0d5523af9b
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Sep 11 01:52:32 2018 +0200
plug-ins: colormap-remap migrated to new iterator api
(cherry picked from commit 6ab12061b7331bdd6ea69e1ce262ebce4b97a64b)
plug-ins/common/colormap-remap.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/common/colormap-remap.c b/plug-ins/common/colormap-remap.c
index c4ffac5cdc..0a4a32ea0e 100644
--- a/plug-ins/common/colormap-remap.c
+++ b/plug-ins/common/colormap-remap.c
@@ -27,6 +27,7 @@
*
*/
+#define GEGL_ITERATOR2_API
#include "config.h"
#include <string.h>
@@ -363,19 +364,19 @@ remap (gint32 image_ID,
iter = gegl_buffer_iterator_new (buffer,
GEGL_RECTANGLE (0, 0, width, height), 0,
format,
- GEGL_ACCESS_READ, GEGL_ABYSS_NONE);
- src_roi = &iter->roi[0];
+ GEGL_ACCESS_READ, GEGL_ABYSS_NONE, 2);
+ src_roi = &iter->items[0].roi;
gegl_buffer_iterator_add (iter, shadow,
GEGL_RECTANGLE (0, 0, width, height), 0,
format,
GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE);
- dest_roi = &iter->roi[1];
+ dest_roi = &iter->items[1].roi;
while (gegl_buffer_iterator_next (iter))
{
- const guchar *src_row = iter->data[0];
- guchar *dest_row = iter->data[1];
+ const guchar *src_row = iter->items[0].data;
+ guchar *dest_row = iter->items[1].data;
gint y;
for (y = 0; y < src_roi->height; y++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]