diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-01-27 22:22:08 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-01-27 22:22:08 +0100 |
commit | c6d89361a5e2a46818d67ce4a21856ddecc129a4 (patch) | |
tree | 5ca7d95e331bbf00281550da407649ad25cb0407 /tools/benchmark-raw.c | |
parent | 39f6be3f64a6c5c0a1ec0ee8a1d905160381b71f (diff) | |
download | fiv-c6d89361a5e2a46818d67ce4a21856ddecc129a4.tar.gz fiv-c6d89361a5e2a46818d67ce4a21856ddecc129a4.tar.xz fiv-c6d89361a5e2a46818d67ce4a21856ddecc129a4.zip |
WIP: Thread-safe colour management
Diffstat (limited to 'tools/benchmark-raw.c')
-rw-r--r-- | tools/benchmark-raw.c | 4 |
1 files changed, 3 insertions, 1 deletions
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), }; |