1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Alx Sa
9243da158f Merge branch 'alxsa-lcms2-fast-float' into 'master'
Issue #9536: Enable LCMS2 Fast Float plug-in

Closes #9536

See merge request GNOME/gimp!2391
2025-10-05 18:16:17 +00:00
Alx Sa
67f067183d libgimpcolor: Enable LCMS2 Fast Float plug-in
Adds support for loading and using the Little CMS
Fast Float plug-in. This plug-in should speed up
color conversions for 8/16 bit and floating point
precision operations. It can be turned off by changing
the "Optimize for" setting from Speed to Quality.
2025-08-10 10:49:02 +00:00
2 changed files with 11 additions and 0 deletions

View File

@@ -26,6 +26,9 @@
#include <string.h>
#include <lcms2.h>
#ifdef HAVE_LCMS_FAST_FLOAT_PLUGIN
#include <lcms2_fast_float.h>
#endif
#include <gio/gio.h>
#include <gegl.h>
@@ -128,6 +131,10 @@ gimp_color_transform_class_init (GimpColorTransformClass *klass)
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
#ifdef HAVE_LCMS_FAST_FLOAT_PLUGIN
cmsPlugin (cmsFastFloatExtensions ());
#endif
cmsSetLogErrorHandler (lcms_error_handler);
}

View File

@@ -476,6 +476,10 @@ json_glib_minver = '1.2.6'
json_glib = dependency('json-glib-1.0', version: '>='+json_glib_minver)
lcms_minver = '2.8'
lcms = dependency('lcms2', version: '>='+lcms_minver)
if cc.has_header('lcms2_fast_float.h')
conf.set('HAVE_LCMS_FAST_FLOAT_PLUGIN', 1)
endif
libmypaint_minver = '1.5.0'
libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
mypaint_brushes = dependency('mypaint-brushes-2.0')