diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-25 10:16:54 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-25 10:16:54 +0100 |
commit | 1b1126bd023a2bb92699773a1867358067dabcb8 (patch) | |
tree | 6fd56d034e5a154c7992e7855d61691cecd043c4 /gamut/gammap.c | |
parent | cb5c7cec4aa1946f75dc3d408eb7f1051f3fb3d4 (diff) | |
parent | f6b8e0eae4374f339487a33e3e4fe5462d5816e1 (diff) |
Update upstream source from tag 'upstream/2.0.0'
Update to upstream version '2.0.0'
with Debian dir e866e6e75661017faaa5331becda76021407390b
Diffstat (limited to 'gamut/gammap.c')
-rwxr-xr-x[-rw-r--r--] | gamut/gammap.c | 8 |
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. */ |