[gimp/soc-2011-seamless-clone2] plug-ins: add support for half-floating point ICC profile conversions to lcms
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] plug-ins: add support for half-floating point ICC profile conversions to lcms
- Date: Wed, 8 May 2013 15:01:49 +0000 (UTC)
commit b624f253f9e3f0198408da7f864f28e11a9aa0b3
Author: Elle Stone <l elle stone gmail com>
Date: Mon Feb 25 09:55:30 2013 -0500
plug-ins: add support for half-floating point ICC profile conversions to lcms
plug-ins/common/lcms.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c
index ae689d5..d0f8d22 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]