diff src/color-man.c @ 424:26c6e768bd47

first support for AdobeRGB colorspace
author nadvornik
date Sat, 19 Apr 2008 16:26:29 +0000
parents c4080362d619
children 4b2d7f9af171
line wrap: on
line diff
--- a/src/color-man.c	Sat Apr 19 16:10:08 2008 +0000
+++ b/src/color-man.c	Sat Apr 19 16:26:29 2008 +0000
@@ -58,6 +58,12 @@
 	cmsErrorAction(LCMS_ERROR_IGNORE);
 }
 
+static cmsHPROFILE color_man_create_adobe_comp()
+{
+	/* ClayRGB1998 is AdobeRGB compatible */
+#include "ClayRGB1998_icc.h"
+	return cmsOpenProfileFromMem(ClayRGB1998_icc, ClayRGB1998_icc_len);
+}
 
 /*
  *-------------------------------------------------------------------
@@ -113,6 +119,9 @@
 		case COLOR_PROFILE_SRGB:
 			profile = cmsCreate_sRGBProfile();
 			break;
+		case COLOR_PROFILE_ADOBERGB:
+			profile = color_man_create_adobe_comp();
+			break;
 		case COLOR_PROFILE_MEM:
 			if (data)
 				{