[gimp] libgimpcolor: pass intent to babl_space from icc creation
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpcolor: pass intent to babl_space from icc creation
- Date: Wed, 13 Sep 2017 22:15:13 +0000 (UTC)
commit ce982e12b9d4aac58a8696d833fa186d8b407368
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Sep 14 00:12:08 2017 +0200
libgimpcolor: pass intent to babl_space from icc creation
libgimpcolor/gimpcolorprofile.c | 8 +++++---
libgimpcolor/gimpcolorprofile.h | 1 +
libgimpcolor/gimpcolortransform.c | 2 ++
3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/libgimpcolor/gimpcolorprofile.c b/libgimpcolor/gimpcolorprofile.c
index f2c7035..a9beb64 100644
--- a/libgimpcolor/gimpcolorprofile.c
+++ b/libgimpcolor/gimpcolorprofile.c
@@ -1466,9 +1466,10 @@ gimp_color_profile_new_d50_gray_lab_trc (void)
* Since: 2.10
**/
const Babl *
-gimp_color_profile_get_format (GimpColorProfile *profile,
- const Babl *format,
- GError **error)
+gimp_color_profile_get_format (GimpColorProfile *profile,
+ const Babl *format,
+ GimpColorRenderingIntent intent,
+ GError **error)
{
const Babl *space;
const gchar *babl_error = NULL;
@@ -1479,6 +1480,7 @@ gimp_color_profile_get_format (GimpColorProfile *profile,
space = babl_space_from_icc ((const gchar *) profile->priv->data,
profile->priv->length,
+ intent,
&babl_error);
if (! space)
diff --git a/libgimpcolor/gimpcolorprofile.h b/libgimpcolor/gimpcolorprofile.h
index 56173f1..d7f43f4 100644
--- a/libgimpcolor/gimpcolorprofile.h
+++ b/libgimpcolor/gimpcolorprofile.h
@@ -113,6 +113,7 @@ gboolean gimp_color_profile_is_linear (GimpColorProfile *
const Babl * gimp_color_profile_get_format (GimpColorProfile *profile,
const Babl *format,
+ GimpColorRenderingIntent intent,
GError **error);
const Babl * gimp_color_profile_get_lcms_format (const Babl *format,
guint32 *lcms_format);
diff --git a/libgimpcolor/gimpcolortransform.c b/libgimpcolor/gimpcolortransform.c
index 192b361..3fda8c7 100644
--- a/libgimpcolor/gimpcolortransform.c
+++ b/libgimpcolor/gimpcolortransform.c
@@ -203,6 +203,7 @@ gimp_color_transform_new (GimpColorProfile *src_profile,
priv->src_space_format = gimp_color_profile_get_format (src_profile,
src_format,
+ BABL_ICC_INTENT_RELATIVE_COLORIMETRIC,
&error);
if (! priv->src_space_format)
{
@@ -213,6 +214,7 @@ gimp_color_transform_new (GimpColorProfile *src_profile,
priv->dest_space_format = gimp_color_profile_get_format (dest_profile,
dest_format,
+ rendering_intent,
&error);
if (! priv->dest_space_format)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]