Skip to content

Commit bd3acbe

Browse files
author
Daniel D. Daugherty
committed
8297089: [BACKOUT] JDK-8297088 Update LCMS to 2.14
Reviewed-by: dholmes
1 parent 6a60d31 commit bd3acbe

31 files changed

+591
-2003
lines changed
Lines changed: 16 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,27 @@
1-
## Little Color Management System (LCMS) v2.14
1+
## Little Color Management System (LCMS) v2.12
22

33
### LCMS License
44
<pre>
55

6-
README.1ST file information
7-
8-
LittleCMS core is released under MIT License
9-
10-
---------------------------------
11-
12-
Little CMS
13-
Copyright (c) 1998-2022 Marti Maria Saguer
6+
Little Color Management System
7+
Copyright (c) 1998-2020 Marti Maria Saguer
148

159
Permission is hereby granted, free of charge, to any person obtaining
16-
a copy of this software and associated documentation files (the
17-
"Software"), to deal in the Software without restriction, including
18-
without limitation the rights to use, copy, modify, merge, publish,
19-
distribute, sublicense, and/or sell copies of the Software, and to
20-
permit persons to whom the Software is furnished to do so, subject
21-
to the following conditions:
10+
a copy of this software and associated documentation files (the "Software"),
11+
to deal in the Software without restriction, including without limitation
12+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
13+
and/or sell copies of the Software, and to permit persons to whom the Software
14+
is furnished to do so, subject to the following conditions:
2215

23-
The above copyright notice and this permission notice shall be
24-
included in all copies or substantial portions of the Software.
16+
The above copyright notice and this permission notice shall be included in
17+
all copies or substantial portions of the Software.
2518

2619
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
30-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
31-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
32-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33-
34-
---------------------------------
35-
36-
The below license applies to the following files:
37-
liblcms/cmssm.c
38-
39-
Copyright 2001, softSurfer (www.softsurfer.com)
40-
41-
This code may be freely used and modified for any purpose
42-
providing that this copyright notice is included with it.
43-
SoftSurfer makes no warranty for this code, and cannot be held
44-
liable for any real or imagined damage resulting from its use.
45-
Users of this code must verify correctness for their application.
46-
20+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21+
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
23+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
24+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4726

4827
</pre>
49-
50-
### AUTHORS File Information
51-
```
52-
53-
Main Author
54-
------------
55-
Marti Maria
56-
57-
58-
Contributors
59-
------------
60-
Bob Friesenhahn
61-
Kai-Uwe Behrmann
62-
Stuart Nixon
63-
Jordi Vilar
64-
Richard Hughes
65-
Auke Nauta
66-
Chris Evans (Google)
67-
Lorenzo Ridolfi
68-
Robin Watts (Artifex)
69-
Shawn Pedersen
70-
Andrew Brygin
71-
Samuli Suominen
72-
Florian Hˆch
73-
Aurelien Jarno
74-
Claudiu Cebuc
75-
Michael Vhrel (Artifex)
76-
Michal Cihar
77-
Daniel Kaneider
78-
Mateusz Jurczyk (Google)
79-
Paul Miller
80-
SÈbastien LÈon
81-
Christian Schmitz
82-
XhmikosR
83-
Stanislav Brabec (SuSe)
84-
Leonhard Gruenschloss (Google)
85-
Patrick Noffke
86-
Christopher James Halse Rogers
87-
John Hein
88-
Thomas Weber (Debian)
89-
Mark Allen
90-
Noel Carboni
91-
Sergei Trofimovic
92-
Philipp Knechtges
93-
94-
Special Thanks
95-
--------------
96-
Artifex software
97-
AlienSkin software
98-
Jan Morovic
99-
Jos Vernon (WebSupergoo)
100-
Harald Schneider (Maxon)
101-
Christian Albrecht
102-
Dimitrios Anastassakis
103-
Lemke Software
104-
Tim Zaman
105-
106-
107-
```

src/java.desktop/share/native/liblcms/UPDATING.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/java.desktop/share/native/liblcms/cmsalpha.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//---------------------------------------------------------------------------------
3131
//
3232
// Little Color Management System
33-
// Copyright (c) 1998-2022 Marti Maria Saguer
33+
// Copyright (c) 1998-2020 Marti Maria Saguer
3434
//
3535
// Permission is hereby granted, free of charge, to any person obtaining
3636
// a copy of this software and associated documentation files (the "Software"),
@@ -220,21 +220,21 @@ static
220220
void fromFLTto8(void* dst, const void* src)
221221
{
222222
cmsFloat32Number n = *(cmsFloat32Number*)src;
223-
*(cmsUInt8Number*)dst = _cmsQuickSaturateByte(n * 255.0);
223+
*(cmsUInt8Number*)dst = _cmsQuickSaturateByte(n * 255.0f);
224224
}
225225

226226
static
227227
void fromFLTto16(void* dst, const void* src)
228228
{
229229
cmsFloat32Number n = *(cmsFloat32Number*)src;
230-
*(cmsUInt16Number*)dst = _cmsQuickSaturateWord(n * 65535.0);
230+
*(cmsUInt16Number*)dst = _cmsQuickSaturateWord(n * 65535.0f);
231231
}
232232

233233
static
234234
void fromFLTto16SE(void* dst, const void* src)
235235
{
236236
cmsFloat32Number n = *(cmsFloat32Number*)src;
237-
cmsUInt16Number i = _cmsQuickSaturateWord(n * 65535.0);
237+
cmsUInt16Number i = _cmsQuickSaturateWord(n * 65535.0f);
238238

239239
*(cmsUInt16Number*)dst = CHANGE_ENDIAN(i);
240240
}
@@ -272,7 +272,7 @@ void fromHLFto8(void* dst, const void* src)
272272
{
273273
#ifndef CMS_NO_HALF_SUPPORT
274274
cmsFloat32Number n = _cmsHalf2Float(*(cmsUInt16Number*)src);
275-
*(cmsUInt8Number*)dst = _cmsQuickSaturateByte(n * 255.0);
275+
*(cmsUInt8Number*)dst = _cmsQuickSaturateByte(n * 255.0f);
276276
#else
277277
cmsUNUSED_PARAMETER(dst);
278278
cmsUNUSED_PARAMETER(src);
@@ -285,7 +285,7 @@ void fromHLFto16(void* dst, const void* src)
285285
{
286286
#ifndef CMS_NO_HALF_SUPPORT
287287
cmsFloat32Number n = _cmsHalf2Float(*(cmsUInt16Number*)src);
288-
*(cmsUInt16Number*)dst = _cmsQuickSaturateWord(n * 65535.0);
288+
*(cmsUInt16Number*)dst = _cmsQuickSaturateWord(n * 65535.0f);
289289
#else
290290
cmsUNUSED_PARAMETER(dst);
291291
cmsUNUSED_PARAMETER(src);
@@ -297,7 +297,7 @@ void fromHLFto16SE(void* dst, const void* src)
297297
{
298298
#ifndef CMS_NO_HALF_SUPPORT
299299
cmsFloat32Number n = _cmsHalf2Float(*(cmsUInt16Number*)src);
300-
cmsUInt16Number i = _cmsQuickSaturateWord(n * 65535.0);
300+
cmsUInt16Number i = _cmsQuickSaturateWord(n * 65535.0f);
301301
*(cmsUInt16Number*)dst = CHANGE_ENDIAN(i);
302302
#else
303303
cmsUNUSED_PARAMETER(dst);
@@ -443,9 +443,9 @@ void ComputeIncrementsForChunky(cmsUInt32Number Format,
443443
cmsUInt32Number channelSize = trueBytesSize(Format);
444444
cmsUInt32Number pixelSize = channelSize * total_chans;
445445

446-
// Sanity check
447-
if (total_chans <= 0 || total_chans >= cmsMAXCHANNELS)
448-
return;
446+
// Sanity check
447+
if (total_chans <= 0 || total_chans >= cmsMAXCHANNELS)
448+
return;
449449

450450
memset(channels, 0, sizeof(channels));
451451

src/java.desktop/share/native/liblcms/cmscam02.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//---------------------------------------------------------------------------------
3131
//
3232
// Little Color Management System
33-
// Copyright (c) 1998-2022 Marti Maria Saguer
33+
// Copyright (c) 1998-2020 Marti Maria Saguer
3434
//
3535
// Permission is hereby granted, free of charge, to any person obtaining
3636
// a copy of this software and associated documentation files (the "Software"),

0 commit comments

Comments
 (0)