[gegl] gegl: report pixel format as part of graphviz visualization



commit 7c6a06b393a5fa4d22f5f9b6ebe8549fdaaa14cf
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon May 4 23:22:23 2020 +0200

    gegl: report pixel format as part of graphviz visualization
    
    This makes the boxes in the visualized graph, for non-sRGB cases much
    wider, but makes the visualization useful for evaluating propagation
    of spaces in the space-invasion in the quest towards AnyRGB.

 gegl/gegl-dot.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-dot.c b/gegl/gegl-dot.c
index 4845fe9ba..a751990ae 100644
--- a/gegl/gegl-dot.c
+++ b/gegl/gegl-dot.c
@@ -57,14 +57,18 @@ gegl_dot_util_add_node (GString  *string,
         GeglPad *pad = entry->data;
         if (gegl_pad_is_output (pad))
           {
+            const char *format_name = "nil";
             if (got_output)
               {
                 g_string_append (string, "|");
               }
             got_output = TRUE;
-            g_string_append_printf (string, "<%s>%s",
+            if (gegl_pad_get_format (pad))
+              format_name = babl_get_name (gegl_pad_get_format (pad));
+            g_string_append_printf (string, "<%s>%s %s",
                                     gegl_pad_get_name (pad),
-                                    gegl_pad_get_name (pad));
+                                    gegl_pad_get_name (pad),
+                                    format_name);
           }
         entry = g_slist_next (entry);
       }


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