Update bundled libjpeg-turbo to version 3.0.3
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 3.0.3 Pick-to: 6.5 6.2 5.15 Change-Id: I1f7184959d84bc3b486f495d782755fd6f9cbaa4 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit c9a1e8d306d588c161461f8b22b76b701d10bce0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d32f7dc016
commit
febed4c265
31
src/3rdparty/libjpeg/LICENSE
vendored
31
src/3rdparty/libjpeg/LICENSE
vendored
@ -1,30 +1,33 @@
|
|||||||
libjpeg-turbo Licenses
|
libjpeg-turbo Licenses
|
||||||
======================
|
======================
|
||||||
|
|
||||||
libjpeg-turbo is covered by three compatible BSD-style open source licenses:
|
libjpeg-turbo is covered by two compatible BSD-style open source licenses:
|
||||||
|
|
||||||
- The IJG (Independent JPEG Group) License, which is listed in
|
- The IJG (Independent JPEG Group) License, which is listed in
|
||||||
[README.ijg](README.ijg)
|
[README.ijg](README.ijg)
|
||||||
|
|
||||||
This license applies to the libjpeg API library and associated programs
|
This license applies to the libjpeg API library and associated programs,
|
||||||
(any code inherited from libjpeg, and any modifications to that code.)
|
including any code inherited from libjpeg and any modifications to that
|
||||||
|
code. Note that the libjpeg-turbo SIMD source code bears the
|
||||||
|
[zlib License](https://opensource.org/licenses/Zlib), but in the context of
|
||||||
|
the overall libjpeg API library, the terms of the zlib License are subsumed
|
||||||
|
by the terms of the IJG License.
|
||||||
|
|
||||||
- The Modified (3-clause) BSD License, which is listed below
|
- The Modified (3-clause) BSD License, which is listed below
|
||||||
|
|
||||||
This license covers the TurboJPEG API library and associated programs, as
|
This license applies to the TurboJPEG API library and associated programs, as
|
||||||
well as the build system.
|
well as the build system. Note that the TurboJPEG API library wraps the
|
||||||
|
libjpeg API library, so in the context of the overall TurboJPEG API library,
|
||||||
- The [zlib License](https://opensource.org/licenses/Zlib)
|
both the terms of the IJG License and the terms of the Modified (3-clause)
|
||||||
|
BSD License apply.
|
||||||
This license is a subset of the other two, and it covers the libjpeg-turbo
|
|
||||||
SIMD extensions.
|
|
||||||
|
|
||||||
|
|
||||||
Complying with the libjpeg-turbo Licenses
|
Complying with the libjpeg-turbo Licenses
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
This section provides a roll-up of the libjpeg-turbo licensing terms, to the
|
This section provides a roll-up of the libjpeg-turbo licensing terms, to the
|
||||||
best of our understanding.
|
best of our understanding. This is not a license in and of itself. It is
|
||||||
|
intended solely for clarification.
|
||||||
|
|
||||||
1. If you are distributing a modified version of the libjpeg-turbo source,
|
1. If you are distributing a modified version of the libjpeg-turbo source,
|
||||||
then:
|
then:
|
||||||
@ -38,7 +41,7 @@ best of our understanding.
|
|||||||
- Clauses 1 and 3 of the zlib License
|
- Clauses 1 and 3 of the zlib License
|
||||||
|
|
||||||
2. You must add your own copyright notice to the header of each source
|
2. You must add your own copyright notice to the header of each source
|
||||||
file you modified, so others can tell that you modified that file (if
|
file you modified, so others can tell that you modified that file. (If
|
||||||
there is not an existing copyright header in that file, then you can
|
there is not an existing copyright header in that file, then you can
|
||||||
simply add a notice stating that you modified the file.)
|
simply add a notice stating that you modified the file.)
|
||||||
|
|
||||||
@ -119,8 +122,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGE.
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
Why Three Licenses?
|
Why Two Licenses?
|
||||||
===================
|
=================
|
||||||
|
|
||||||
The zlib License could have been used instead of the Modified (3-clause) BSD
|
The zlib License could have been used instead of the Modified (3-clause) BSD
|
||||||
License, and since the IJG License effectively subsumes the distribution
|
License, and since the IJG License effectively subsumes the distribution
|
||||||
|
@ -145,7 +145,7 @@ sed -i -e "s/@COPYRIGHT_YEAR@/$cyear/" $TARGET_DIR/src/jversion.h
|
|||||||
|
|
||||||
sed -n -e 's/^[ ]*"//
|
sed -n -e 's/^[ ]*"//
|
||||||
s/\(\\n\)*"[ ]*\\*$//
|
s/\(\\n\)*"[ ]*\\*$//
|
||||||
/JCOPYRIGHT\ /,/^[ ]*$/ {
|
/JCOPYRIGHT.\ /,/^[ ]*$/ {
|
||||||
/Copyright/p
|
/Copyright/p
|
||||||
}
|
}
|
||||||
' $TARGET_DIR/src/jversion.h > $TARGET_DIR/COPYRIGHT.txt
|
' $TARGET_DIR/src/jversion.h > $TARGET_DIR/COPYRIGHT.txt
|
||||||
|
8
src/3rdparty/libjpeg/qt_attribution.json
vendored
8
src/3rdparty/libjpeg/qt_attribution.json
vendored
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
"Description": "The Independent JPEG Group's JPEG software",
|
"Description": "The Independent JPEG Group's JPEG software",
|
||||||
"Homepage": "http://libjpeg-turbo.virtualgl.org/",
|
"Homepage": "http://libjpeg-turbo.virtualgl.org/",
|
||||||
"Version": "3.0.2",
|
"Version": "3.0.3",
|
||||||
"DownloadLocation": "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.0.2/libjpeg-turbo-3.0.2.tar.gz",
|
"DownloadLocation": "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.0.3/libjpeg-turbo-3.0.3.tar.gz",
|
||||||
|
|
||||||
"License": "Independent JPEG Group License and BSD 3-Clause \"New\" or \"Revised\" License and zlib License",
|
"License": "Independent JPEG Group License and BSD 3-Clause \"New\" or \"Revised\" License and zlib License",
|
||||||
"LicenseId": "IJG AND BSD-3-Clause AND Zlib",
|
"LicenseId": "IJG AND BSD-3-Clause",
|
||||||
"LicenseFiles": [ "LICENSE", "ijg-license.txt", "zlib-license.txt"],
|
"LicenseFiles": [ "LICENSE", "ijg-license.txt" ],
|
||||||
"CopyrightFile": "COPYRIGHT.txt"
|
"CopyrightFile": "COPYRIGHT.txt"
|
||||||
}
|
}
|
||||||
|
24
src/3rdparty/libjpeg/src/ChangeLog.md
vendored
24
src/3rdparty/libjpeg/src/ChangeLog.md
vendored
@ -1,3 +1,27 @@
|
|||||||
|
3.0.3
|
||||||
|
=====
|
||||||
|
|
||||||
|
### Significant changes relative to 3.0.2:
|
||||||
|
|
||||||
|
1. Fixed an issue in the build system, introduced in 3.0.2, that caused all
|
||||||
|
libjpeg-turbo components to depend on the Visual C++ run-time DLL when built
|
||||||
|
with Visual C++ and CMake 3.15 or later, regardless of value of the
|
||||||
|
`WITH_CRT_DLL` CMake variable.
|
||||||
|
|
||||||
|
2. The x86-64 SIMD extensions now include support for Intel Control-flow
|
||||||
|
Enforcement Technology (CET), which is enabled automatically if CET is enabled
|
||||||
|
in the C compiler.
|
||||||
|
|
||||||
|
3. Fixed a regression introduced by 3.0 beta2[6] that made it impossible for
|
||||||
|
calling applications to supply custom Huffman tables when generating
|
||||||
|
12-bit-per-component lossy JPEG images using the libjpeg API.
|
||||||
|
|
||||||
|
4. Fixed a segfault that occurred when attempting to use the jpegtran `-drop`
|
||||||
|
option with a specially-crafted malformed input image or drop image
|
||||||
|
(specifically an image in which all of the scans contain fewer components than
|
||||||
|
the number of components specified in the Start Of Frame segment.)
|
||||||
|
|
||||||
|
|
||||||
3.0.2
|
3.0.2
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
122
src/3rdparty/libjpeg/src/jcmaster.c
vendored
122
src/3rdparty/libjpeg/src/jcmaster.c
vendored
@ -7,7 +7,7 @@
|
|||||||
* Lossless JPEG Modifications:
|
* Lossless JPEG Modifications:
|
||||||
* Copyright (C) 1999, Ken Murchison.
|
* Copyright (C) 1999, Ken Murchison.
|
||||||
* libjpeg-turbo Modifications:
|
* libjpeg-turbo Modifications:
|
||||||
* Copyright (C) 2010, 2016, 2018, 2022-2023, D. R. Commander.
|
* Copyright (C) 2010, 2016, 2018, 2022-2024, D. R. Commander.
|
||||||
* For conditions of distribution and use, see the accompanying README.ijg
|
* For conditions of distribution and use, see the accompanying README.ijg
|
||||||
* file.
|
* file.
|
||||||
*
|
*
|
||||||
@ -50,6 +50,113 @@ jpeg_calc_jpeg_dimensions(j_compress_ptr cinfo)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
LOCAL(boolean)
|
||||||
|
using_std_huff_tables(j_compress_ptr cinfo)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
static const UINT8 bits_dc_luminance[17] = {
|
||||||
|
/* 0-base */ 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0
|
||||||
|
};
|
||||||
|
static const UINT8 val_dc_luminance[] = {
|
||||||
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
|
||||||
|
};
|
||||||
|
|
||||||
|
static const UINT8 bits_dc_chrominance[17] = {
|
||||||
|
/* 0-base */ 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0
|
||||||
|
};
|
||||||
|
static const UINT8 val_dc_chrominance[] = {
|
||||||
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
|
||||||
|
};
|
||||||
|
|
||||||
|
static const UINT8 bits_ac_luminance[17] = {
|
||||||
|
/* 0-base */ 0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d
|
||||||
|
};
|
||||||
|
static const UINT8 val_ac_luminance[] = {
|
||||||
|
0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12,
|
||||||
|
0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07,
|
||||||
|
0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08,
|
||||||
|
0x23, 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0,
|
||||||
|
0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16,
|
||||||
|
0x17, 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28,
|
||||||
|
0x29, 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
|
||||||
|
0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
|
||||||
|
0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,
|
||||||
|
0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
|
||||||
|
0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
|
||||||
|
0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89,
|
||||||
|
0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98,
|
||||||
|
0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
||||||
|
0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6,
|
||||||
|
0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5,
|
||||||
|
0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4,
|
||||||
|
0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2,
|
||||||
|
0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea,
|
||||||
|
0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,
|
||||||
|
0xf9, 0xfa
|
||||||
|
};
|
||||||
|
|
||||||
|
static const UINT8 bits_ac_chrominance[17] = {
|
||||||
|
/* 0-base */ 0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77
|
||||||
|
};
|
||||||
|
static const UINT8 val_ac_chrominance[] = {
|
||||||
|
0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21,
|
||||||
|
0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71,
|
||||||
|
0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91,
|
||||||
|
0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0,
|
||||||
|
0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34,
|
||||||
|
0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26,
|
||||||
|
0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38,
|
||||||
|
0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
|
||||||
|
0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
|
||||||
|
0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
|
||||||
|
0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,
|
||||||
|
0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
|
||||||
|
0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96,
|
||||||
|
0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5,
|
||||||
|
0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4,
|
||||||
|
0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3,
|
||||||
|
0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2,
|
||||||
|
0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda,
|
||||||
|
0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9,
|
||||||
|
0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,
|
||||||
|
0xf9, 0xfa
|
||||||
|
};
|
||||||
|
|
||||||
|
if (cinfo->dc_huff_tbl_ptrs[0] == NULL ||
|
||||||
|
cinfo->ac_huff_tbl_ptrs[0] == NULL ||
|
||||||
|
cinfo->dc_huff_tbl_ptrs[1] == NULL ||
|
||||||
|
cinfo->ac_huff_tbl_ptrs[1] == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
for (i = 2; i < NUM_HUFF_TBLS; i++) {
|
||||||
|
if (cinfo->dc_huff_tbl_ptrs[i] != NULL ||
|
||||||
|
cinfo->ac_huff_tbl_ptrs[i] != NULL)
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (memcmp(cinfo->dc_huff_tbl_ptrs[0]->bits, bits_dc_luminance,
|
||||||
|
sizeof(bits_dc_luminance)) ||
|
||||||
|
memcmp(cinfo->dc_huff_tbl_ptrs[0]->huffval, val_dc_luminance,
|
||||||
|
sizeof(val_dc_luminance)) ||
|
||||||
|
memcmp(cinfo->ac_huff_tbl_ptrs[0]->bits, bits_ac_luminance,
|
||||||
|
sizeof(bits_ac_luminance)) ||
|
||||||
|
memcmp(cinfo->ac_huff_tbl_ptrs[0]->huffval, val_ac_luminance,
|
||||||
|
sizeof(val_ac_luminance)) ||
|
||||||
|
memcmp(cinfo->dc_huff_tbl_ptrs[1]->bits, bits_dc_chrominance,
|
||||||
|
sizeof(bits_dc_chrominance)) ||
|
||||||
|
memcmp(cinfo->dc_huff_tbl_ptrs[1]->huffval, val_dc_chrominance,
|
||||||
|
sizeof(val_dc_chrominance)) ||
|
||||||
|
memcmp(cinfo->ac_huff_tbl_ptrs[1]->bits, bits_ac_chrominance,
|
||||||
|
sizeof(bits_ac_chrominance)) ||
|
||||||
|
memcmp(cinfo->ac_huff_tbl_ptrs[1]->huffval, val_ac_chrominance,
|
||||||
|
sizeof(val_ac_chrominance)))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
LOCAL(void)
|
LOCAL(void)
|
||||||
initial_setup(j_compress_ptr cinfo, boolean transcode_only)
|
initial_setup(j_compress_ptr cinfo, boolean transcode_only)
|
||||||
/* Do computations that are needed before master selection phase */
|
/* Do computations that are needed before master selection phase */
|
||||||
@ -605,6 +712,8 @@ GLOBAL(void)
|
|||||||
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
|
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
|
||||||
{
|
{
|
||||||
my_master_ptr master = (my_master_ptr)cinfo->master;
|
my_master_ptr master = (my_master_ptr)cinfo->master;
|
||||||
|
boolean empty_huff_tables = TRUE;
|
||||||
|
int i;
|
||||||
|
|
||||||
master->pub.prepare_for_pass = prepare_for_pass;
|
master->pub.prepare_for_pass = prepare_for_pass;
|
||||||
master->pub.pass_startup = pass_startup;
|
master->pub.pass_startup = pass_startup;
|
||||||
@ -646,7 +755,16 @@ jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
|
|||||||
(cinfo->progressive_mode && !cinfo->arith_code))
|
(cinfo->progressive_mode && !cinfo->arith_code))
|
||||||
cinfo->optimize_coding = TRUE; /* assume default tables no good for
|
cinfo->optimize_coding = TRUE; /* assume default tables no good for
|
||||||
progressive mode or lossless mode */
|
progressive mode or lossless mode */
|
||||||
if (cinfo->data_precision == 12 && !cinfo->arith_code)
|
for (i = 0; i < NUM_HUFF_TBLS; i++) {
|
||||||
|
if (cinfo->dc_huff_tbl_ptrs[i] != NULL ||
|
||||||
|
cinfo->ac_huff_tbl_ptrs[i] != NULL) {
|
||||||
|
empty_huff_tables = FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (cinfo->data_precision == 12 && !cinfo->arith_code &&
|
||||||
|
!cinfo->optimize_coding &&
|
||||||
|
(empty_huff_tables || using_std_huff_tables(cinfo)))
|
||||||
cinfo->optimize_coding = TRUE; /* assume default tables no good for 12-bit
|
cinfo->optimize_coding = TRUE; /* assume default tables no good for 12-bit
|
||||||
data precision */
|
data precision */
|
||||||
|
|
||||||
|
4
src/3rdparty/libjpeg/src/jconfig.h
vendored
4
src/3rdparty/libjpeg/src/jconfig.h
vendored
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
#define JPEG_LIB_VERSION 80
|
#define JPEG_LIB_VERSION 80
|
||||||
|
|
||||||
#define LIBJPEG_TURBO_VERSION 3.0.2
|
#define LIBJPEG_TURBO_VERSION 3.0.3
|
||||||
|
|
||||||
#define LIBJPEG_TURBO_VERSION_NUMBER 3000002
|
#define LIBJPEG_TURBO_VERSION_NUMBER 3000003
|
||||||
|
|
||||||
#define C_ARITH_CODING_SUPPORTED 1
|
#define C_ARITH_CODING_SUPPORTED 1
|
||||||
|
|
||||||
|
2
src/3rdparty/libjpeg/src/jconfigint.h
vendored
2
src/3rdparty/libjpeg/src/jconfigint.h
vendored
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#define PACKAGE_NAME "libjpeg-turbo"
|
#define PACKAGE_NAME "libjpeg-turbo"
|
||||||
|
|
||||||
#define VERSION "3.0.2"
|
#define VERSION "3.0.3"
|
||||||
|
|
||||||
#if SIZE_MAX == 0xffffffff
|
#if SIZE_MAX == 0xffffffff
|
||||||
#define SIZEOF_SIZE_T 4
|
#define SIZEOF_SIZE_T 4
|
||||||
|
14
src/3rdparty/libjpeg/src/jerror.c
vendored
14
src/3rdparty/libjpeg/src/jerror.c
vendored
@ -4,7 +4,7 @@
|
|||||||
* This file was part of the Independent JPEG Group's software:
|
* This file was part of the Independent JPEG Group's software:
|
||||||
* Copyright (C) 1991-1998, Thomas G. Lane.
|
* Copyright (C) 1991-1998, Thomas G. Lane.
|
||||||
* libjpeg-turbo Modifications:
|
* libjpeg-turbo Modifications:
|
||||||
* Copyright (C) 2022, D. R. Commander.
|
* Copyright (C) 2022, 2024, D. R. Commander.
|
||||||
* For conditions of distribution and use, see the accompanying README.ijg
|
* For conditions of distribution and use, see the accompanying README.ijg
|
||||||
* file.
|
* file.
|
||||||
*
|
*
|
||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#define JMESSAGE(code, string) string,
|
#define JMESSAGE(code, string) string,
|
||||||
|
|
||||||
const char * const jpeg_std_message_table[] = {
|
static const char * const jpeg_std_message_table[] = {
|
||||||
#include "jerror.h"
|
#include "jerror.h"
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@ -229,23 +229,17 @@ reset_error_mgr(j_common_ptr cinfo)
|
|||||||
GLOBAL(struct jpeg_error_mgr *)
|
GLOBAL(struct jpeg_error_mgr *)
|
||||||
jpeg_std_error(struct jpeg_error_mgr *err)
|
jpeg_std_error(struct jpeg_error_mgr *err)
|
||||||
{
|
{
|
||||||
|
memset(err, 0, sizeof(struct jpeg_error_mgr));
|
||||||
|
|
||||||
err->error_exit = error_exit;
|
err->error_exit = error_exit;
|
||||||
err->emit_message = emit_message;
|
err->emit_message = emit_message;
|
||||||
err->output_message = output_message;
|
err->output_message = output_message;
|
||||||
err->format_message = format_message;
|
err->format_message = format_message;
|
||||||
err->reset_error_mgr = reset_error_mgr;
|
err->reset_error_mgr = reset_error_mgr;
|
||||||
|
|
||||||
err->trace_level = 0; /* default = no tracing */
|
|
||||||
err->num_warnings = 0; /* no warnings emitted yet */
|
|
||||||
err->msg_code = 0; /* may be useful as a flag for "no error" */
|
|
||||||
|
|
||||||
/* Initialize message table pointers */
|
/* Initialize message table pointers */
|
||||||
err->jpeg_message_table = jpeg_std_message_table;
|
err->jpeg_message_table = jpeg_std_message_table;
|
||||||
err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;
|
err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;
|
||||||
|
|
||||||
err->addon_message_table = NULL;
|
|
||||||
err->first_addon_message = 0; /* for safety */
|
|
||||||
err->last_addon_message = 0;
|
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
7
src/3rdparty/libjpeg/src/jversion.h
vendored
7
src/3rdparty/libjpeg/src/jversion.h
vendored
@ -36,20 +36,21 @@
|
|||||||
* their code
|
* their code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define JCOPYRIGHT \
|
#define JCOPYRIGHT1 \
|
||||||
"Copyright (C) 2009-2024 D. R. Commander\n" \
|
"Copyright (C) 2009-2024 D. R. Commander\n" \
|
||||||
"Copyright (C) 2015, 2020 Google, Inc.\n" \
|
"Copyright (C) 2015, 2020 Google, Inc.\n" \
|
||||||
"Copyright (C) 2019-2020 Arm Limited\n" \
|
"Copyright (C) 2019-2020 Arm Limited\n" \
|
||||||
"Copyright (C) 2015-2016, 2018 Matthieu Darbois\n" \
|
"Copyright (C) 2015-2016, 2018 Matthieu Darbois\n" \
|
||||||
"Copyright (C) 2011-2016 Siarhei Siamashka\n" \
|
"Copyright (C) 2011-2016 Siarhei Siamashka\n" \
|
||||||
"Copyright (C) 2015 Intel Corporation\n" \
|
"Copyright (C) 2015 Intel Corporation\n"
|
||||||
|
#define JCOPYRIGHT2 \
|
||||||
"Copyright (C) 2013-2014 Linaro Limited\n" \
|
"Copyright (C) 2013-2014 Linaro Limited\n" \
|
||||||
"Copyright (C) 2013-2014 MIPS Technologies, Inc.\n" \
|
"Copyright (C) 2013-2014 MIPS Technologies, Inc.\n" \
|
||||||
"Copyright (C) 2009, 2012 Pierre Ossman for Cendio AB\n" \
|
"Copyright (C) 2009, 2012 Pierre Ossman for Cendio AB\n" \
|
||||||
"Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies)\n" \
|
"Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies)\n" \
|
||||||
"Copyright (C) 1999-2006 MIYASAKA Masaru\n" \
|
"Copyright (C) 1999-2006 MIYASAKA Masaru\n" \
|
||||||
"Copyright (C) 1999 Ken Murchison\n" \
|
"Copyright (C) 1999 Ken Murchison\n" \
|
||||||
"Copyright (C) 1991-2020 Thomas G. Lane, Guido Vollbeding"
|
"Copyright (C) 1991-2020 Thomas G. Lane, Guido Vollbeding\n"
|
||||||
|
|
||||||
#define JCOPYRIGHT_SHORT \
|
#define JCOPYRIGHT_SHORT \
|
||||||
"Copyright (C) 1991-2024 The libjpeg-turbo Project and many others"
|
"Copyright (C) 1991-2024 The libjpeg-turbo Project and many others"
|
||||||
|
15
src/3rdparty/libjpeg/zlib-license.txt
vendored
15
src/3rdparty/libjpeg/zlib-license.txt
vendored
@ -1,15 +0,0 @@
|
|||||||
This software is provided 'as-is', without any express or implied
|
|
||||||
warranty. In no event will the authors be held liable for any damages
|
|
||||||
arising from the use of this software.
|
|
||||||
|
|
||||||
Permission is granted to anyone to use this software for any purpose,
|
|
||||||
including commercial applications, and to alter it and redistribute it
|
|
||||||
freely, subject to the following restrictions:
|
|
||||||
|
|
||||||
1. The origin of this software must not be misrepresented; you must not
|
|
||||||
claim that you wrote the original software. If you use this software
|
|
||||||
in a product, an acknowledgment in the product documentation would be
|
|
||||||
appreciated but is not required.
|
|
||||||
2. Altered source versions must be plainly marked as such, and must not be
|
|
||||||
misrepresented as being the original software.
|
|
||||||
3. This notice may not be removed or altered from any source distribution.
|
|
Loading…
x
Reference in New Issue
Block a user