[gdk-pixbuf] pixdata: Add debug when decoding pixdata
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] pixdata: Add debug when decoding pixdata
- Date: Fri, 16 Dec 2016 15:38:34 +0000 (UTC)
commit 7f075ba244c9fb14c22499bc0712a51e4f589b23
Author: Bastien Nocera <hadess hadess net>
Date: Fri Dec 16 12:37:04 2016 +0100
pixdata: Add debug when decoding pixdata
https://bugzilla.gnome.org/show_bug.cgi?id=775693
gdk-pixbuf/gdk-pixdata.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixdata.c b/gdk-pixbuf/gdk-pixdata.c
index 9f1adc1..5cf485c 100644
--- a/gdk-pixbuf/gdk-pixdata.c
+++ b/gdk-pixbuf/gdk-pixdata.c
@@ -445,6 +445,13 @@ gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata,
bpp = (pixdata->pixdata_type & GDK_PIXDATA_COLOR_TYPE_MASK) == GDK_PIXDATA_COLOR_TYPE_RGB ? 3 : 4;
encoding = pixdata->pixdata_type & GDK_PIXDATA_ENCODING_MASK;
+
+ g_debug ("gdk_pixbuf_from_pixdata() called on:");
+ g_debug ("\tEncoding %s", encoding == GDK_PIXDATA_ENCODING_RAW ? "raw" : "rle");
+ g_debug ("\tDimensions: %d x %d", pixdata->width, pixdata->height);
+ g_debug ("\tRowstride: %d, Length: %d", pixdata->rowstride, pixdata->length);
+ g_debug ("\tCopy pixels == %s", copy_pixels ? "true" : "false");
+
if (encoding == GDK_PIXDATA_ENCODING_RLE)
copy_pixels = TRUE;
if (copy_pixels)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]