[gnome-color-manager] Apply some smoothing to the generated VCGT curves



commit 9b10334a8051cf1e38b700dde1110c57b5870863
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 14 13:01:43 2010 +0100

    Apply some smoothing to the generated VCGT curves

 libcolor-glib/gcm-profile.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libcolor-glib/gcm-profile.c b/libcolor-glib/gcm-profile.c
index 3234c78..207dd31 100644
--- a/libcolor-glib/gcm-profile.c
+++ b/libcolor-glib/gcm-profile.c
@@ -1230,6 +1230,10 @@ gcm_profile_set_vcgt_from_data (GcmProfile *profile, guint16 *red, guint16 *gree
 	vcgt_curve[1] = cmsBuildTabulatedToneCurve16 (NULL, size, green);
 	vcgt_curve[2] = cmsBuildTabulatedToneCurve16 (NULL, size, blue);
 
+	/* smooth it */
+	for (i=0; i<3; i++)
+		cmsSmoothToneCurve (vcgt_curve[i], 5);
+
 	/* write the tag */
 	ret = cmsWriteTag (priv->lcms_profile, cmsSigVcgtType, vcgt_curve);
 	for (i=0; i<3; i++)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]