From fd5a017633247243ba746ef3f4e56e7c3e48808e Mon Sep 17 00:00:00 2001 From: Elle Stone Date: Mon, 25 Feb 2013 09:55:30 -0500 Subject: [PATCH] plug-ins: add support for half-floating point ICC profile conversions to lcms --- plug-ins/common/lcms.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c index ae689d5d9e..d0f8d22be0 100644 --- a/plug-ins/common/lcms.c +++ b/plug-ins/common/lcms.c @@ -1019,6 +1019,19 @@ lcms_image_transform_rgb (gint32 image, iter_format = babl_format ("R'G'B' u16"); } } + else if (type == babl_type ("half")) /* 16-bit floating point (half) */ + { + if (has_alpha) + { + lcms_format = TYPE_RGBA_HALF_FLT; + iter_format = babl_format ("R'G'B'A half"); + } + else + { + lcms_format = TYPE_RGB_HALF_FLT; + iter_format = babl_format ("R'G'B' half"); + } + } else if (type == babl_type ("float")) { if (has_alpha)