diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-01-26 18:37:38 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-01-26 19:17:54 +0100 |
commit | 3c8a280546e3ec19c3246afada2d488880fc3222 (patch) | |
tree | fe95a502ea4b2ea9e20fcd1cea7045b1e67508e8 /fiv.c | |
parent | 96189b70b85f939401a40364b222b91f905d291a (diff) | |
download | fiv-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.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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++) { |