[babl] babl: fix crash when doing full introspection



commit 501ae622d6bc8be5dd664188cf8593151b6cc182
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Sep 26 00:21:53 2017 +0200

    babl: fix crash when doing full introspection
    
    also add skeleton functions for introspection of trcs/spaces

 babl/babl-introspect.c |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/babl/babl-introspect.c b/babl/babl-introspect.c
index 37c8298..03cfef1 100644
--- a/babl/babl-introspect.c
+++ b/babl/babl-introspect.c
@@ -67,6 +67,12 @@ babl_introspect (Babl *babl)
   babl_log ("conversions:");
   babl_conversion_class_for_each (each_introspect, NULL);
   babl_log ("");
+  babl_log ("trcs:");
+  babl_trc_class_for_each (each_introspect, NULL);
+  babl_log ("");
+  babl_log ("spaces:");
+  babl_space_class_for_each (each_introspect, NULL);
+  babl_log ("");
   babl_log ("extensions:");
   babl_extension_class_for_each (each_introspect, NULL);
   babl_log ("");
@@ -127,6 +133,17 @@ sampling_introspect (Babl *babl)
             babl->sampling.vertical);
 }
 
+static void
+space_introspect (Babl *babl)
+{
+  // XXX: print TRCs and matrix, possibly if we have an icc and intent
+}
+
+static void
+trc_introspect (Babl *babl)
+{
+  // XXX: print type, and parameters
+}
 
 static void
 format_introspect (Babl *babl)
@@ -205,6 +222,14 @@ each_introspect (Babl *babl,
         sampling_introspect (babl);
         break;
 
+      case BABL_SPACE:
+       space_introspect (babl);
+       break;
+
+      case BABL_TRC:
+       trc_introspect (babl);
+       break;
+
       case BABL_CONVERSION:
       case BABL_CONVERSION_PLANE:
       case BABL_CONVERSION_PLANAR:


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