From c6d89361a5e2a46818d67ce4a21856ddecc129a4 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 27 Jan 2024 22:22:08 +0100 Subject: WIP: Thread-safe colour management --- tools/benchmark-raw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/benchmark-raw.c') diff --git a/tools/benchmark-raw.c b/tools/benchmark-raw.c index e1e6ea8..c19760e 100644 --- a/tools/benchmark-raw.c +++ b/tools/benchmark-raw.c @@ -320,9 +320,11 @@ process_raw(jv o, const char *filename, const uint8_t *data, size_t len) // Note that this may use the TIFF/EP shortcut code. double since = timestamp(); GFile *file = g_file_new_for_commandline_arg(filename); + FivIoCmm *cmm = fiv_io_cmm_get_default(); FivIoOpenContext ctx = { .uri = g_file_get_uri(file), - .screen_profile = fiv_io_profile_new_sRGB(), + .cmm = cmm, + .screen_profile = fiv_io_cmm_get_profile_sRGB(cmm), .screen_dpi = 96, .warnings = g_ptr_array_new_with_free_func(g_free), }; -- cgit v1.2.3-70-g09d2