[gnome-photos] base-item: Log the bounding box of the loaded GeglBuffer
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Log the bounding box of the loaded GeglBuffer
- Date: Thu, 23 Nov 2017 19:06:09 +0000 (UTC)
commit 3da381dd1b7b33103de818b2948487f33d79a67a
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Nov 23 10:48:52 2017 +0100
base-item: Log the bounding box of the loaded GeglBuffer
src/photos-base-item.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 9fda7aa..9acd9c1 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1648,6 +1648,7 @@ photos_base_item_load_load_buffer (GObject *source_object, GAsyncResult *res, gp
const Babl *format;
GCancellable *cancellable;
GeglBuffer *buffer = NULL;
+ GeglRectangle bbox;
GError *error;
const gchar *format_name;
@@ -1665,9 +1666,15 @@ photos_base_item_load_load_buffer (GObject *source_object, GAsyncResult *res, gp
goto out;
}
+ bbox = *gegl_buffer_get_extent (buffer);
format = gegl_buffer_get_format (buffer);
format_name = babl_get_name (format);
- photos_debug (PHOTOS_DEBUG_GEGL, "Buffer loaded: %s", format_name);
+ photos_debug (PHOTOS_DEBUG_GEGL, "Buffer loaded: %d, %d, %d×%d, %s",
+ bbox.x,
+ bbox.y,
+ bbox.width,
+ bbox.height,
+ format_name);
gegl_node_set (priv->buffer_source, "buffer", buffer, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]