@ai-ecoverse/wasm-libjpeg-turbo 3.1.2-4 → 3.2.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -10,18 +10,46 @@ libjpeg-turbo is covered by two compatible BSD-style open source licenses:
10
10
 
11
11
  This license applies to the libjpeg API library and associated programs,
12
12
  including any code inherited from libjpeg and any modifications to that
13
- code. Note that the libjpeg-turbo SIMD source code bears the
14
- [zlib License](https://opensource.org/licenses/Zlib), but in the context of
15
- the overall libjpeg API library, the terms of the zlib License are subsumed
16
- by the terms of the IJG License.
13
+ code.
17
14
 
18
15
  - The Modified (3-clause) BSD License, which is listed below
19
16
 
20
- This license applies to the TurboJPEG API library and associated programs, as
21
- well as the build system. Note that the TurboJPEG API library wraps the
22
- libjpeg API library, so in the context of the overall TurboJPEG API library,
23
- both the terms of the IJG License and the terms of the Modified (3-clause)
24
- BSD License apply.
17
+ This license applies to the TurboJPEG API library and associated programs,
18
+ [libspng](https://libspng.org) (which is used by cjpeg and djpeg), and the
19
+ build/test system.
20
+
21
+ * The TurboJPEG API library wraps the libjpeg API library, so in the context
22
+ of the overall TurboJPEG API library, both the terms of the IJG License and
23
+ the terms of the Modified (3-clause) BSD License apply.
24
+ * cjpeg and djpeg use libspng, so in the context of those programs, both the
25
+ terms of the IJG License and the terms of the Modified (3-clause) BSD
26
+ License apply.
27
+
28
+
29
+ Component Licenses
30
+ ==================
31
+
32
+ Some of libjpeg-turbo's modules and internal dependencies are covered by less
33
+ restrictive licenses, but in the context of libjpeg-turbo as a whole, the terms
34
+ of the less restrictive licenses are subsumed by either the IJG License or the
35
+ Modified BSD License. (In other words, the terms of the less restrictive
36
+ licenses are satisfied if the terms of the IJG and Modified BSD Licenses are
37
+ satisfied.)
38
+
39
+ - The libjpeg-turbo SIMD source code and zlib are covered by the
40
+ [zlib License](https://spdx.org/licenses/Zlib.html), which is subsumed by the
41
+ IJG License in the context of the cjpeg and djpeg programs and the libjpeg
42
+ API library.
43
+
44
+ - Some of the libspng source code is covered by the
45
+ [PNG Reference Library License v2](https://spdx.org/licenses/libpng-2.0.html),
46
+ which is subsumed by the IJG License in the context of the cjpeg and djpeg
47
+ programs and the TurboJPEG API library.
48
+
49
+ - Most of the libspng source code is covered by the
50
+ [Simplified (2-clause) BSD License](https://spdx.org/licenses/BSD-2-Clause.html),
51
+ which is subsumed by the Modified BSD License in the context of the cjpeg and
52
+ djpeg programs and the TurboJPEG API library.
25
53
 
26
54
 
27
55
  Complying with the libjpeg-turbo Licenses
@@ -40,7 +68,6 @@ intended solely for clarification.
40
68
  **Origin**
41
69
  - Clause 1 of the IJG License
42
70
  - Clause 1 of the Modified BSD License
43
- - Clauses 1 and 3 of the zlib License
44
71
 
45
72
  2. You must add your own copyright notice to the header of each source
46
73
  file you modified, so others can tell that you modified that file. (If
@@ -49,7 +76,6 @@ intended solely for clarification.
49
76
 
50
77
  **Origin**
51
78
  - Clause 1 of the IJG License
52
- - Clause 2 of the zlib License
53
79
 
54
80
  3. You must include the IJG README file, and you must not alter any of the
55
81
  copyright or license text in that file.
@@ -69,9 +95,9 @@ intended solely for clarification.
69
95
  **Origin**
70
96
  - Clause 2 of the IJG license
71
97
 
72
- 2. If your binary distribution includes or uses the TurboJPEG API, then
73
- your product documentation must include the text of the Modified BSD
74
- License (see below.)
98
+ 2. If your binary distribution includes or uses the TurboJPEG API or
99
+ associated programs, cjpeg, or djpeg, then your product documentation
100
+ must include the text of the Modified BSD License (see below.)
75
101
 
76
102
  **Origin**
77
103
  - Clause 2 of the Modified BSD License
@@ -83,21 +109,20 @@ intended solely for clarification.
83
109
  - IJG License
84
110
  - Clause 3 of the Modified BSD License
85
111
 
86
- 4. The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be
87
- free of defects, nor do we accept any liability for undesirable
88
- consequences resulting from your use of the software.
112
+ 4. The authors and distributors do not warrant libjpeg-turbo to be free of
113
+ defects, nor do we accept any liability for undesirable consequences
114
+ resulting from your use of the software.
89
115
 
90
116
  **Origin**
91
117
  - IJG License
92
118
  - Modified BSD License
93
- - zlib License
94
119
 
95
120
 
96
121
  The Modified (3-clause) BSD License
97
122
  ===================================
98
123
 
99
- Copyright (C)2009-2025 D. R. Commander. All Rights Reserved.<br>
100
- Copyright (C)2015 Viktor Szathmáry. All Rights Reserved.
124
+ Copyright (C) 2009-2026 D. R. Commander<br>
125
+ Copyright (C) 2018-2023 Randy <randy408@protonmail.com>
101
126
 
102
127
  Redistribution and use in source and binary forms, with or without
103
128
  modification, are permitted provided that the following conditions are met:
@@ -123,19 +148,6 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
123
148
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
124
149
  POSSIBILITY OF SUCH DAMAGE.
125
150
 
126
-
127
- Why Two Licenses?
128
- =================
129
-
130
- The zlib License could have been used instead of the Modified (3-clause) BSD
131
- License, and since the IJG License effectively subsumes the distribution
132
- conditions of the zlib License, this would have effectively placed
133
- libjpeg-turbo binary distributions under the IJG License. However, the IJG
134
- License specifically refers to the Independent JPEG Group and does not extend
135
- attribution and endorsement protections to other entities. Thus, it was
136
- desirable to choose a license that granted us the same protections for new code
137
- that were granted to the IJG for code derived from their software.
138
-
139
151
  ==> README.ijg <==
140
152
 
141
153
  libjpeg-turbo note: This file has been modified by The libjpeg-turbo Project
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # `@ai-ecoverse/wasm-libjpeg-turbo`
2
2
 
3
- libjpeg-turbo **3.1.2** built for WebAssembly / emscripten, packaged by
3
+ libjpeg-turbo **3.2.0** built for WebAssembly / emscripten, packaged by
4
4
  [homescoop](https://github.com/ai-ecoverse/homescoop).
5
5
 
6
6
  | | |
7
7
  | --- | --- |
8
- | Upstream | [libjpeg-turbo/libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo) `3.1.2` |
8
+ | Upstream | [libjpeg-turbo/libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo) `3.2.0` |
9
9
  | Recipe | [`packages/libjpeg-turbo`](https://github.com/ai-ecoverse/homescoop/tree/main/packages/libjpeg-turbo) |
10
10
  | Build | `build.sh` (ladder `emcmake`, `-DWITH_SIMD=0`) |
11
11
 
package/include/jconfig.h CHANGED
@@ -4,10 +4,10 @@
4
4
  #define JPEG_LIB_VERSION 62
5
5
 
6
6
  /* libjpeg-turbo version */
7
- #define LIBJPEG_TURBO_VERSION 3.1.2
7
+ #define LIBJPEG_TURBO_VERSION 3.2.0
8
8
 
9
9
  /* libjpeg-turbo version in integer form */
10
- #define LIBJPEG_TURBO_VERSION_NUMBER 3001002
10
+ #define LIBJPEG_TURBO_VERSION_NUMBER 3002000
11
11
 
12
12
  /* Support arithmetic encoding when using 8-bit samples */
13
13
  #define C_ARITH_CODING_SUPPORTED 1
package/include/jerror.h CHANGED
@@ -7,7 +7,7 @@
7
7
  * Lossless JPEG Modifications:
8
8
  * Copyright (C) 1999, Ken Murchison.
9
9
  * libjpeg-turbo Modifications:
10
- * Copyright (C) 2014, 2017, 2021-2023, D. R. Commander.
10
+ * Copyright (C) 2014, 2017, 2021-2023, 2026, D. R. Commander.
11
11
  * For conditions of distribution and use, see the accompanying README.ijg
12
12
  * file.
13
13
  *
@@ -137,7 +137,7 @@ JMESSAGE(JERR_VIRTUAL_BUG, "Virtual array controller messed up")
137
137
  JMESSAGE(JERR_WIDTH_OVERFLOW, "Image too wide for this implementation")
138
138
  JMESSAGE(JERR_XMS_READ, "Read from XMS failed")
139
139
  JMESSAGE(JERR_XMS_WRITE, "Write to XMS failed")
140
- JMESSAGE(JMSG_COPYRIGHT, JCOPYRIGHT_SHORT)
140
+ JMESSAGE(JMSG_COPYRIGHT, JCOPYRIGHT)
141
141
  JMESSAGE(JMSG_VERSION, JVERSION)
142
142
  JMESSAGE(JTRC_16BIT_TABLES,
143
143
  "Caution: quantization tables are too coarse for baseline JPEG")
@@ -272,7 +272,7 @@ JMESSAGE(JERR_BAD_RESTART,
272
272
  (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo)))
273
273
  #define ERREXITS(cinfo, code, str) \
274
274
  ((cinfo)->err->msg_code = (code), \
275
- strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX), \
275
+ strncpy((cinfo)->err->msg_parm.s, (str), JMSG_STR_PARM_MAX - 1), \
276
276
  (cinfo)->err->msg_parm.s[JMSG_STR_PARM_MAX - 1] = '\0', \
277
277
  (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo)))
278
278
 
@@ -7,7 +7,8 @@
7
7
  * Lossless JPEG Modifications:
8
8
  * Copyright (C) 1999, Ken Murchison.
9
9
  * libjpeg-turbo Modifications:
10
- * Copyright (C) 2009, 2011, 2014-2015, 2018, 2020, 2022, D. R. Commander.
10
+ * Copyright (C) 2009, 2011, 2014-2015, 2018, 2020, 2022, 2026,
11
+ * D. R. Commander.
11
12
  * For conditions of distribution and use, see the accompanying README.ijg
12
13
  * file.
13
14
  *
@@ -241,7 +242,9 @@ typedef int boolean;
241
242
  /* Encoder capability options: */
242
243
 
243
244
  #define C_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */
244
- #define C_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/
245
+ #define C_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires
246
+ C_MULTISCAN_FILES_SUPPORTED and
247
+ ENTROPY_OPT_SUPPORTED) */
245
248
  #define C_LOSSLESS_SUPPORTED /* Lossless JPEG? */
246
249
  #define ENTROPY_OPT_SUPPORTED /* Optimization of entropy coding parms? */
247
250
  /* Note: if you selected 12-bit data precision, it is dangerous to turn off
@@ -249,21 +252,22 @@ typedef int boolean;
249
252
  * precision, so jchuff.c normally uses entropy optimization to compute
250
253
  * usable tables for higher precision. If you don't want to do optimization,
251
254
  * you'll have to supply different default Huffman tables.
252
- * The exact same statements apply for progressive and lossless JPEG:
253
- * the default tables don't work for progressive mode or lossless mode.
254
- * (This may get fixed, however.)
255
+ * The exact same statements apply for lossless JPEG: the default tables don't
256
+ * work for lossless mode. (This may get fixed, however.)
255
257
  */
256
258
  #define INPUT_SMOOTHING_SUPPORTED /* Input image smoothing option? */
257
259
 
258
260
  /* Decoder capability options: */
259
261
 
260
262
  #define D_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */
261
- #define D_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/
262
- #define D_LOSSLESS_SUPPORTED /* Lossless JPEG? */
263
+ #define D_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires
264
+ D_MULTISCAN_FILES_SUPPORTED) */
265
+ #define D_LOSSLESS_SUPPORTED /* Lossless JPEG? (Requires
266
+ D_MULTISCAN_FILES_SUPPORTED) */
263
267
  #define SAVE_MARKERS_SUPPORTED /* jpeg_save_markers() needed? */
264
268
  #define BLOCK_SMOOTHING_SUPPORTED /* Block smoothing? (Progressive only) */
265
- #define IDCT_SCALING_SUPPORTED /* Output rescaling via IDCT? */
266
- #undef UPSAMPLE_SCALING_SUPPORTED /* Output rescaling at upsample stage? */
269
+ #define IDCT_SCALING_SUPPORTED /* Output rescaling via IDCT? (Requires
270
+ DCT_ISLOW_SUPPORTED) */
267
271
  #define UPSAMPLE_MERGING_SUPPORTED /* Fast path for sloppy upsampling? */
268
272
  #define QUANT_1PASS_SUPPORTED /* 1-pass color quantization? */
269
273
  #define QUANT_2PASS_SUPPORTED /* 2-pass color quantization? */
package/lib/libjpeg.a CHANGED
Binary file
Binary file
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: libjpeg
7
7
  Description: libjpeg (homescoop wasm / emscripten)
8
- Version: 3.1.2
8
+ Version: 3.2.0
9
9
  Requires:
10
10
  Cflags: -I${includedir}
11
11
  Libs: -L${libdir} -ljpeg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/wasm-libjpeg-turbo",
3
- "version": "3.1.2-4",
3
+ "version": "3.2.0-1",
4
4
  "description": "libjpeg-turbo JPEG codec (WASM / emscripten, SLICC homescoop ladder)",
5
5
  "license": "IJG AND BSD-3-Clause AND Zlib",
6
6
  "repository": {
@@ -27,6 +27,6 @@
27
27
  },
28
28
  "homescoop": {
29
29
  "recipe": "libjpeg-turbo",
30
- "upstream": "3.1.2"
30
+ "upstream": "3.2.0"
31
31
  }
32
32
  }