GNOME Bugzilla – Bug 779135
pixbuf: Don't assume the GdkPixbuf's rowstride to be width * bytes per pixel
Last modified: 2017-11-23 16:57:11 UTC
Created attachment 346571 [details] Test program The GdkPixbuf's rowstride may not necessarily be width * bytes per pixel. We should query the value from the GdkPixbuf itself using gdk_pixbuf_get_rowstride [1]. See the attached test case for an example of a bug - the output file doesn't look like the input. [1] https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride
Created attachment 346572 [details] Test image
Created attachment 346573 [details] [review] operations/external/pixbuf: Clean up the prepare implementation
Created attachment 346574 [details] [review] operations/external/pixbuf: Use a faster API to read the pixels
Created attachment 346575 [details] [review] operations/external/pixbuf: Use the GdkPixbuf's rowstride
Sorry, misfiled.
From #gegl on GIMPNet: <pippin> rishi: please push your gdkpixbuf related fixes for bug 779135