[gimp/gimp-2-10] plug-ins: migrate qbist 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: migrate qbist to new iterator api
- Date: Tue, 18 Sep 2018 10:39:01 +0000 (UTC)
commit 35713ad1ffb71619d4365653defbe1a193b36990
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Sep 11 02:01:57 2018 +0200
plug-ins: migrate qbist to new iterator api
(cherry picked from commit 4165a315d59ddb5cce73663b7a8af3f394ae044d)
plug-ins/common/qbist.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/qbist.c b/plug-ins/common/qbist.c
index c80568210d..f819142c86 100644
--- a/plug-ins/common/qbist.c
+++ b/plug-ins/common/qbist.c
@@ -26,6 +26,7 @@
*
*/
+#define GEGL_ITERATOR2_API
#include "config.h"
#include <string.h>
@@ -501,7 +502,7 @@ run (const gchar *name,
img_width, img_height),
0, babl_format ("R'G'B'A float"),
GEGL_ACCESS_READWRITE,
- GEGL_ABYSS_NONE);
+ GEGL_ABYSS_NONE, 1);
optimize (&qbist_info.info);
@@ -509,8 +510,8 @@ run (const gchar *name,
while (gegl_buffer_iterator_next (iter))
{
- gfloat *data = iter->data[0];
- GeglRectangle roi = iter->roi[0];
+ gfloat *data = iter->items[0].data;
+ GeglRectangle roi = iter->items[0].roi;
gint row;
for (row = 0; row < roi.height; row++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]