[gegl] operations/external/pixbuf: Use a faster API to read the pixels



commit 0cc03fc9a8abed78e7c52d836c2dab728ee4b7c3
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Feb 23 15:19:54 2017 +0100

    operations/external/pixbuf: Use a faster API to read the pixels
    
    Bump required GdkPixbuf version to 2.32.0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779135

 configure.ac                 |    2 +-
 operations/external/pixbuf.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8e07919..f7e463f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ m4_define([gimp_full_name], [Generic Graphical Library])
 # required versions of external libraries
 m4_define([babl_required_version], [0.1.24])
 m4_define([cairo_required_version], [0.0.0])
-m4_define([gdk_pixbuf_required_version], [2.18.0])
+m4_define([gdk_pixbuf_required_version], [2.32.0])
 m4_define([introspection_required_version], [1.32.0])
 m4_define([glib_required_version], [2.36.0])
 m4_define([graphviz_required_version], [0.0.0])
diff --git a/operations/external/pixbuf.c b/operations/external/pixbuf.c
index 0e05001..d0d41a0 100644
--- a/operations/external/pixbuf.c
+++ b/operations/external/pixbuf.c
@@ -81,7 +81,7 @@ process (GeglOperation       *operation,
       extent.width = gdk_pixbuf_get_width (GDK_PIXBUF (o->pixbuf));
       extent.height = gdk_pixbuf_get_height (GDK_PIXBUF (o->pixbuf));
 
-      gegl_buffer_set (output, &extent, 0, NULL, gdk_pixbuf_get_pixels (GDK_PIXBUF (o->pixbuf)),
+      gegl_buffer_set (output, &extent, 0, NULL, gdk_pixbuf_read_pixels (GDK_PIXBUF (o->pixbuf)),
                        GEGL_AUTO_ROWSTRIDE);
     }
   return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]