diff options
author | Øyvind Kolås <pippin@gimp.org> | 2022-01-27 05:52:53 +0100 |
---|---|---|
committer | Øyvind Kolås <pippin@gimp.org> | 2022-01-27 08:51:17 +0100 |
commit | 8552b89f68a4e769336bf1d30f52541f28b9601d (patch) | |
tree | 4b74367b38d8e58902bc0b3f11bf0de7ee60cc4b /tools | |
parent | 1dad45b5ea68145f742d1a1ab320b24fe16c5a1f (diff) |
tools/babl-benchmark: print LUT/REF markers
Diffstat (limited to 'tools')
-rw-r--r-- | tools/babl-benchmark.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/babl-benchmark.c b/tools/babl-benchmark.c index d11e57e..239b599 100644 --- a/tools/babl-benchmark.c +++ b/tools/babl-benchmark.c @@ -33,6 +33,8 @@ int ITERATIONS = 4; int unit_pixels = 1; // use megapixels per second instead of bytes +int global_relative_scale = 1; + int exclude_identity = 0; #define N_BYTES N_PIXELS * (4 * 8) @@ -84,6 +86,7 @@ test (int set_no) babl_format_with_space("RGBA float", babl_space(space)), \ babl_format_with_space("RaGaBaA float", babl_space(space)), \ babl_format_with_space("R'G'B'A float", babl_space(space)), \ + babl_format_with_space("R'G'B'A u16", babl_space(out_space)), \ babl_format_with_space("R'G'B'A u8", babl_space(out_space)) const Babl **formats=NULL; @@ -263,7 +266,6 @@ test (int set_no) #if 1 if (mbps[n] > max && first_run) max = mbps[n]; - max = 1000; #endif n++; } @@ -284,6 +286,7 @@ test (int set_no) if (mbps[n] > max && first_run) max = mbps[n]; + if (global_relative_scale) max = max_throughput; n = 0; for (i = 0; formats[i]; i++) @@ -299,11 +302,17 @@ test (int set_no) if (fishes[n]->class_type == BABL_FISH_REFERENCE) { - fprintf (stdout, "- "); + fprintf (stdout, "REF "); } else if (fishes[n]->class_type == BABL_FISH_PATH) { - fprintf (stdout, "%d ", fishes[n]->fish_path.conversion_list->count); +#if BABL_MICRO_VERSION>=89 + if (fishes[n]->fish_path.u8_lut) + fprintf (stdout, "LUT "); + else + +#endif + fprintf (stdout, "%d ", fishes[n]->fish_path.conversion_list->count); } fprintf (stdout, "%s to %s\t%.9f", |