aboutsummaryrefslogtreecommitdiff
path: root/fiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-26 18:37:38 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-26 19:17:54 +0100
commit3c8a280546e3ec19c3246afada2d488880fc3222 (patch)
treefe95a502ea4b2ea9e20fcd1cea7045b1e67508e8 /fiv.c
parent96189b70b85f939401a40364b222b91f905d291a (diff)
downloadfiv-3c8a280546e3ec19c3246afada2d488880fc3222.tar.gz
fiv-3c8a280546e3ec19c3246afada2d488880fc3222.tar.xz
fiv-3c8a280546e3ec19c3246afada2d488880fc3222.zip
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.
Diffstat (limited to 'fiv.c')
-rw-r--r--fiv.c10
1 files changed, 1 insertions, 9 deletions
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 <lcms2.h>
-#include <lcms2_fast_float.h>
-#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++) {