mirror of https://github.com/qt/qtbase.git
Update bundled libjpeg-turbo to version 3.1.2
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 3.1.1
Pick-to: 6.10.0 6.9 6.8 6.5 5.15
Change-Id: I570d330f65ad720fb9d1e73e056d9dc8971be6cd
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit 5b93573bb4
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a13a287723
commit
c757460525
|
@ -1,4 +1,4 @@
|
|||
Copyright (C) 2009-2024 D. R. Commander
|
||||
Copyright (C) 2009-2025 D. R. Commander
|
||||
Copyright (C) 2015, 2020 Google, Inc.
|
||||
Copyright (C) 2019-2020 Arm Limited
|
||||
Copyright (C) 2015-2016, 2018 Matthieu Darbois
|
||||
|
|
|
@ -1,3 +1,31 @@
|
|||
3.1.2
|
||||
=====
|
||||
|
||||
### Significant changes relative to 3.1.1:
|
||||
|
||||
1. Fixed a regression introduced by 3.1 beta1[5] that caused a segfault in
|
||||
TJBench if `-copy` or `-c` was passed as the last command-line argument.
|
||||
|
||||
2. The build system now uses wrappers rather than CMake object libraries to
|
||||
compile source files for multiple data precisions. This improves code
|
||||
readability and facilitates adapting the libjpeg-turbo source code to non-CMake
|
||||
build systems.
|
||||
|
||||
3. Fixed an issue whereby decompressing a 4:2:0 or 4:2:2 JPEG image with merged
|
||||
upsampling disabled/one-pass color quantization enabled, then reusing the same
|
||||
API instance to decompress a 4:2:0 or 4:2:2 JPEG image with merged upsampling
|
||||
enabled/color quantization disabled, caused `jpeg_skip_scanlines()` to use
|
||||
freed memory. In practice, the freed memory was not reclaimed before it was
|
||||
used. Thus, this issue did not cause a segfault or other user-visible errant
|
||||
behavior (it was only detectable with ASan), and it did not likely pose a
|
||||
security risk.
|
||||
|
||||
4. The AArch64 (Arm 64-bit) Neon SIMD extensions and accelerated Huffman codec
|
||||
now support the Arm64EC ABI on Windows, which allows Windows/x64 applications
|
||||
to call native Arm64 functions when running under the Windows/x64 emulator on
|
||||
Windows/Arm.
|
||||
|
||||
|
||||
3.1.1
|
||||
=====
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ intended solely for clarification.
|
|||
The Modified (3-clause) BSD License
|
||||
===================================
|
||||
|
||||
Copyright (C)2009-2024 D. R. Commander. All Rights Reserved.<br>
|
||||
Copyright (C)2009-2025 D. R. Commander. All Rights Reserved.<br>
|
||||
Copyright (C)2015 Viktor Szathmáry. All Rights Reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -3,7 +3,7 @@ version = 1
|
|||
[[annotations]]
|
||||
path = ["**"]
|
||||
precedence = "closest"
|
||||
SPDX-FileCopyrightText = ["Copyright (C) 2009-2024 D. R. Commander",
|
||||
SPDX-FileCopyrightText = ["Copyright (C) 2009-2025 D. R. Commander",
|
||||
"Copyright (C) 2015, 2020 Google, Inc.",
|
||||
"Copyright (C) 2019-2020 Arm Limited",
|
||||
"Copyright (C) 2015-2016, 2018 Matthieu Darbois",
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
"Description": "The Independent JPEG Group's JPEG software",
|
||||
"Homepage": "http://libjpeg-turbo.virtualgl.org/",
|
||||
"Version": "3.1.1",
|
||||
"DownloadLocation": "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.1/libjpeg-turbo-3.1.1.tar.gz",
|
||||
"Version": "3.1.2",
|
||||
"DownloadLocation": "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.2/libjpeg-turbo-3.1.2.tar.gz",
|
||||
"PURL": "pkg:github/libjpeg-turbo/libjpeg-turbo@$<VERSION>",
|
||||
"CPE": "cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:$<VERSION>:*:*:*:*:*:*:*",
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Lossless JPEG Modifications:
|
||||
* Copyright (C) 1999, Ken Murchison.
|
||||
* libjpeg-turbo Modifications:
|
||||
* Copyright (C) 2009-2011, 2014-2016, 2018-2024, D. R. Commander.
|
||||
* Copyright (C) 2009-2011, 2014-2016, 2018-2025, D. R. Commander.
|
||||
* Copyright (C) 2015, Matthieu Darbois.
|
||||
* Copyright (C) 2018, Matthias Räncker.
|
||||
* Copyright (C) 2020, Arm Limited.
|
||||
|
@ -55,7 +55,8 @@ typedef size_t bit_buf_type;
|
|||
* retain the old Huffman encoder behavior when using the GAS implementation.
|
||||
*/
|
||||
#if defined(WITH_SIMD) && !(defined(__arm__) || defined(__aarch64__) || \
|
||||
defined(_M_ARM) || defined(_M_ARM64))
|
||||
defined(_M_ARM) || defined(_M_ARM64) || \
|
||||
defined(_M_ARM64EC))
|
||||
typedef unsigned long long simd_bit_buf_type;
|
||||
#else
|
||||
typedef bit_buf_type simd_bit_buf_type;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* This file was part of the Independent JPEG Group's software:
|
||||
* Copyright (C) 1994-1996, Thomas G. Lane.
|
||||
* libjpeg-turbo Modifications:
|
||||
* Copyright (C) 2010, 2015-2020, 2022-2024, D. R. Commander.
|
||||
* Copyright (C) 2010, 2015-2020, 2022-2025, D. R. Commander.
|
||||
* Copyright (C) 2015, Google, Inc.
|
||||
* For conditions of distribution and use, see the accompanying README.ijg
|
||||
* file.
|
||||
|
@ -408,7 +408,8 @@ read_and_discard_scanlines(j_decompress_ptr cinfo, JDIMENSION num_lines)
|
|||
void (*color_quantize) (j_decompress_ptr cinfo, _JSAMPARRAY input_buf,
|
||||
_JSAMPARRAY output_buf, int num_rows) = NULL;
|
||||
|
||||
if (cinfo->cconvert && cinfo->cconvert->_color_convert) {
|
||||
if (!master->using_merged_upsample && cinfo->cconvert &&
|
||||
cinfo->cconvert->_color_convert) {
|
||||
color_convert = cinfo->cconvert->_color_convert;
|
||||
cinfo->cconvert->_color_convert = noop_convert;
|
||||
/* This just prevents UBSan from complaining about adding 0 to a NULL
|
||||
|
@ -417,7 +418,8 @@ read_and_discard_scanlines(j_decompress_ptr cinfo, JDIMENSION num_lines)
|
|||
scanlines = &dummy_row;
|
||||
}
|
||||
|
||||
if (cinfo->cquantize && cinfo->cquantize->_color_quantize) {
|
||||
if (cinfo->quantize_colors && cinfo->cquantize &&
|
||||
cinfo->cquantize->_color_quantize) {
|
||||
color_quantize = cinfo->cquantize->_color_quantize;
|
||||
cinfo->cquantize->_color_quantize = noop_quantize;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (C) 1991-1996, Thomas G. Lane.
|
||||
* libjpeg-turbo Modifications:
|
||||
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
|
||||
* Copyright (C) 2010, 2015-2016, 2022, 2024, D. R. Commander.
|
||||
* Copyright (C) 2010, 2015-2016, 2022, 2024-2025, D. R. Commander.
|
||||
* Copyright (C) 2014, MIPS Technologies, Inc., California.
|
||||
* Copyright (C) 2015, Google, Inc.
|
||||
* Copyright (C) 2019-2020, Arm Limited.
|
||||
|
@ -501,7 +501,8 @@ _jinit_upsampler(j_decompress_ptr cinfo)
|
|||
v_in_group * 2 == v_out_group && do_fancy) {
|
||||
/* Non-fancy upsampling is handled by the generic method */
|
||||
#if defined(WITH_SIMD) && (defined(__arm__) || defined(__aarch64__) || \
|
||||
defined(_M_ARM) || defined(_M_ARM64))
|
||||
defined(_M_ARM) || defined(_M_ARM64) || \
|
||||
defined(_M_ARM64EC))
|
||||
if (jsimd_can_h1v2_fancy_upsample())
|
||||
upsample->methods[ci] = jsimd_h1v2_fancy_upsample;
|
||||
else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2014, 2021, 2024, D. R. Commander.
|
||||
* Copyright (C) 2014, 2021, 2024-2025, D. R. Commander.
|
||||
* Copyright (C) 2014, Olle Liljenzin.
|
||||
* Copyright (C) 2020, Arm Limited.
|
||||
*
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
/* NOTE: Both GCC and Clang define __GNUC__ */
|
||||
#if (defined(__GNUC__) && (defined(__arm__) || defined(__aarch64__))) || \
|
||||
defined(_M_ARM) || defined(_M_ARM64)
|
||||
defined(_M_ARM) || defined(_M_ARM64) || defined(_M_ARM64EC)
|
||||
#if !defined(__thumb__) || defined(__thumb2__)
|
||||
#define USE_CLZ_INTRINSIC
|
||||
#endif
|
||||
|
|
|
@ -53,4 +53,4 @@
|
|||
"Copyright (C) 1991-2020 Thomas G. Lane, Guido Vollbeding\n"
|
||||
|
||||
#define JCOPYRIGHT_SHORT \
|
||||
"Copyright (C) 1991-2024 The libjpeg-turbo Project and many others"
|
||||
"Copyright (C) 1991-2025 The libjpeg-turbo Project and many others"
|
||||
|
|
Loading…
Reference in New Issue