[gimp] plug-ins: decompose migrated to new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: decompose migrated to new iterator api
- Date: Wed, 12 Sep 2018 11:54:16 +0000 (UTC)
commit 22b4b647bd607ad2cf365fa9ca6a2721cdcd174e
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Sep 11 01:52:01 2018 +0200
plug-ins: decompose migrated to new iterator api
plug-ins/common/decompose.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/decompose.c b/plug-ins/common/decompose.c
index 2ad0441431..24c8f0ea57 100644
--- a/plug-ins/common/decompose.c
+++ b/plug-ins/common/decompose.c
@@ -25,7 +25,7 @@
* merged into the officical plug-in by Sven Neumann.
*/
-
+#define GEGL_ITERATOR2_API
#include "config.h"
#include <string.h>
@@ -641,7 +641,7 @@ transfer_registration_color (GeglBuffer *src,
dst_bpp = babl_format_get_bytes_per_pixel (dst_format);
gi = gegl_buffer_iterator_new (src, NULL, 0, NULL,
- GEGL_ACCESS_READ, GEGL_ABYSS_NONE);
+ GEGL_ACCESS_READ, GEGL_ABYSS_NONE, 10);
for (i = 0; i < count; i++)
{
@@ -655,9 +655,9 @@ transfer_registration_color (GeglBuffer *src,
gpointer dst_data[MAX_EXTRACT_IMAGES];
gint j, k;
- src_data = gi->data[0];
+ src_data = gi->items[0].data;
for (j = 0; j < count; j++)
- dst_data[j] = gi->data[j + 1];
+ dst_data[j] = gi->items[j + 1].data;
for (k = 0; k < gi->length; k++)
{
@@ -693,14 +693,14 @@ cpn_affine_transform_clamp (GeglBuffer *buffer,
gegl_buffer_set_format (buffer, babl_format ("Y double"));
gi = gegl_buffer_iterator_new (buffer, NULL, 0, NULL,
- GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE);
+ GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE, 1);
while (gegl_buffer_iterator_next (gi))
{
guint k;
double *data;
- data = (double*) gi->data[0];
+ data = (double*) gi->items[0].data;
if (clamp)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]