summaryrefslogtreecommitdiff
path: root/gamut/gammap.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-03 20:38:41 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-03 20:38:41 +0100
commitba627dd9ecb578e9852c7b9cce67ec63199d1acf (patch)
tree27c4258311ca8c8ed7ff67a8a0bc7280e8fcae79 /gamut/gammap.c
parent69aec3b712232e93600ecd741269fed1f90b412a (diff)
parent3abb40d43649adb3807180692d8579c405524675 (diff)
Merge branch 'release/2.0.0+repack-1'2.0.0+repack-1
Diffstat (limited to 'gamut/gammap.c')
-rwxr-xr-x[-rw-r--r--]gamut/gammap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gamut/gammap.c b/gamut/gammap.c
index 03b9502..2fd00a3 100644..100755
--- a/gamut/gammap.c
+++ b/gamut/gammap.c
@@ -1359,10 +1359,12 @@ typedef struct {
/* the source image gamut, and map to points outside the */
/* destination gamut) */
- /* See how much to bend the black - compute the color difference */
+ /* See how much to bend the black - compute the color difference. */
/* We start out in the direction of dr_be_bp at white, and at */
- /* the end we bend towards the overall bp dr_cs_bp */
+ /* the end we bend towards the overall bp dr_cs_bp. */
/* (brad will be 0 for non gmm_bendBP because dr_be_bp dr_cs_bp */
+ /* Smaller brad = tighter, more obvious bend, but less black */
+ /* hue leaking into neutrals. */
for (brad = 0.0, i = 1; i < 3; i++) {
double tt = dr_be_bp[i] - dr_cs_bp[i];
brad += tt * tt;
@@ -1419,7 +1421,7 @@ typedef struct {
ty = t * t * (3.0 - 2.0 * t); /* spline blend value */
t = (1.0 - t) * ty + t * t; /* spline at t == 0, linear at t == 1 */
- wt *= (1.0 + t * brad); /* Increase weigting with the bend */
+ wt *= (1.0 + t * brad); /* Increase weighting with the bend */
} else {
t = 0.0; /* stick to straight, it will be close anyway. */