From 3c8a280546e3ec19c3246afada2d488880fc3222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 26 Jan 2024 18:37:38 +0100 Subject: Move colour management to its own compilation unit Also make it apparent that CMM profiles are pointer types. This isn't all that pretty, but it's a necessary first step. --- fiv.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'fiv.c') diff --git a/fiv.c b/fiv.c index ad73537..7dcf00e 100644 --- a/fiv.c +++ b/fiv.c @@ -44,11 +44,6 @@ #include "fiv-thumbnail.h" #include "fiv-view.h" -#ifdef HAVE_LCMS2_FAST_FLOAT -#include -#include -#endif // HAVE_LCMS2_FAST_FLOAT - // --- Utilities --------------------------------------------------------------- static void exit_fatal(const char *format, ...) G_GNUC_PRINTF(1, 2); @@ -2584,10 +2579,7 @@ on_app_handle_local_options(G_GNUC_UNUSED GApplication *app, return 0; } - // TODO(p): Use Little CMS with contexts instead. -#ifdef HAVE_LCMS2_FAST_FLOAT - cmsPlugin(cmsFastFloatExtensions()); -#endif // HAVE_LCMS2_FAST_FLOAT + fiv_io_profile_init(); // Normalize all arguments to URIs, and run thumbnailing modes first. for (gsize i = 0; o.args && o.args[i]; i++) { -- cgit v1.2.3