[babl] tools/babl-verify: print the substeps of chosen paths



commit c9a4a93cc629f3b9eb79b221ba3eaaab4e796ddc
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Dec 16 00:16:42 2016 +0100

    tools/babl-verify: print the substeps of chosen paths

 tools/babl-verify.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tools/babl-verify.c b/tools/babl-verify.c
index 83b1620..5a1a447 100644
--- a/tools/babl-verify.c
+++ b/tools/babl-verify.c
@@ -32,10 +32,15 @@ int main (int argc, char **argv)
   {
     case BABL_FISH:
       fprintf (stderr, "%s\n", babl_get_name (fish));
-            break;
+      break;
     case BABL_FISH_PATH:
       fprintf (stderr, "chosen %s to %s: steps: %i error: %f cost: %f\n", argv[1], argv[2], 
fish->fish_path.conversion_list->count, fish->fish.error, fish->fish_path.cost);
-            break;
+        for (int i = 0; i < fish->fish_path.conversion_list->count; i++)
+          {
+            fprintf (stderr, "\t%s\n",
+                      babl_get_name(fish->fish_path.conversion_list->items[i]  ));
+          }
+      break;
   }
 
 


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