[babl] tools: babl-benchmark, print chosen paths
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] tools: babl-benchmark, print chosen paths
- Date: Thu, 31 Aug 2017 03:14:59 +0000 (UTC)
commit ae68cfff65907c6a5c468491fc207ee670b97b5a
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Aug 31 04:49:06 2017 +0200
tools: babl-benchmark, print chosen paths
tools/babl-benchmark.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/tools/babl-benchmark.c b/tools/babl-benchmark.c
index f1a36f2..f120da8 100644
--- a/tools/babl-benchmark.c
+++ b/tools/babl-benchmark.c
@@ -141,12 +141,27 @@ test (void)
for (j = 0; j < n_formats; j++)
if (i != j)
{
- fprintf (stdout, "%s %03.1f mb/s\t%s to %s %s\n",
+ fprintf (stdout, "%s %03.1f mb/s\t%s to %s %f",
unicode_hbar(16, mbps[n] / max),
mbps[n],
babl_get_name (formats[i]),
babl_get_name (formats[j]),
- fishes[n]->class_type == BABL_FISH_REFERENCE?"REF":"");
+ fishes[n]->fish.error);
+ if (fishes[n]->class_type == BABL_FISH_REFERENCE)
+ {
+ fprintf (stdout, "[R]");
+ }
+ else if (fishes[n]->class_type == BABL_FISH_PATH)
+ {
+ int k;
+ fprintf (stdout, "[%d]", fishes[n]->fish_path.conversion_list->count);
+ for (k = 0; k < fishes[n]->fish_path.conversion_list->count; k++)
+ {
+ fprintf (stdout, "\n\t\t\t\t%s", babl_get_name (
+ fishes[n]->fish_path.conversion_list->items[k]));
+ }
+ }
+ fprintf (stdout, "\n");
n++;
}
fprintf (stdout, "\n%s %03.1f mb/s\taverage\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]