openjpeg/abi-check/changelog/openjpeg/current/log.html

873 lines
30 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="OpenJPEG, current, changes, changelog" />
<meta name="description" content="Log of changes in the package" />
<link rel="stylesheet" type="text/css" href="../../../css/common.css" />
<link rel="stylesheet" type="text/css" href="../../../css/changelog.css" />
<title>
OpenJPEG current: changelog
</title>
</head>
<body>
<table cellpadding='0' cellspacing='0'><tr><td align='center'><h1 class='tool'><a title='Home: ABI tracker for OpenJPEG' href='../../../timeline/openjpeg/index.html' class='tool'>ABI<br/>Tracker</a></h1></td><td width='30px;'></td><td><h1>(OpenJPEG)</h1></td></tr></table><hr/>
<br/>
<br/>
<h1>Changelog from Git</h1><br/><br/>
<div class='changelog'>
<pre class='wrap'>commit 05263eeee9bc666184a39cd2a83a7214cc83ec27
Merge: 0bda718 9727f3a
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-05-04 19:15:06 +0200
Merge pull request #1348 from rouault/fix_kdu
tools/travis-ci/install.sh: fix links to Kakadu and jpylyzer binaries
commit 9727f3ac69a7cd1ca00518c56ef1071881c03c71
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-05-04 18:55:43 +0200
.travis.yml: disable tests that no longer pass for unknown reason
commit 92c0471154960d50ebe68b363f4bb1e2c1e4d775
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-05-04 16:27:05 +0200
tools/travis-ci/install.sh: fix links to Kakadu and jpylyzer binaries
commit 0bda7188b7b545232a341f1d978b1e4feda46fc2
Merge: 0782cd0 4d0b49e
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-01-10 23:58:37 +0100
Merge pull request #1321 from ffontaine/master
Fix cmake file with DESTDIR
commit 4d0b49edad7fb31ebbf03c60a45b72aaa7b7412b
Author: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
Date: 2021-01-07 14:11:26 +0100
cmake/OpenJPEGConfig.cmake: replace ABSOLUTE by REALPATH
Fix #1174 by replacing ABSOLUTE by REALPATH which will resolve symlinks:
https://cmake.org/cmake/help/latest/command/get_filename_component.html
Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
commit 14f4c27e7c91f745a1dda9991b5deea3cbef2072
Author: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
Date: 2021-01-07 14:09:50 +0100
Revert "Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)"
This reverts commit 65586374d639cfc0104419992f9022174b412594 which
breaks cross-compilation of poppler under buildroot (because of
DESTDIR usage).
commit 0782cd075d7e9678bf1cb448c1f3d048fabe4489
Merge: 07a4543 b6f0e41
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-01-04 19:42:30 +0100
Merge pull request #867 from pseiderer/fix-lcms2-static-linking-using-pgk-config
Fix lcms2 static linking using pgk config
commit b6f0e41399f2e67117de2641b169f4400260be57
Author: Peter Seiderer &lt;ps.report@gmx.net&gt;
Date: 2016-11-11 23:35:13 +0100
thirdparty: lcms2: append flags found by pkg-config if available
This change allows to get all required CFLAGS/LDFLAGS in case of static only
build.
Fixes a buildroot build failure (see [1], [2] and [3]).
[1] http://autobuild.buildroot.net/results/5ce/5cee20afd8bef5268832cddcb3a5270746be7a57
[2] http://lists.busybox.net/pipermail/buildroot/2016-November/177187.html
[3] http://lists.busybox.net/pipermail/buildroot/2016-November/177188.html
Signed-off-by: Peter Seiderer &lt;ps.report@gmx.net&gt;
---
Depends on https://github.com/uclouvain/openjpeg/pull/866
commit 07a454324cfeb431ee3fc3799df522dff252b12b
Merge: eb27272 75a7f1a
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-01-04 14:06:43 +0100
Merge pull request #866 from tSed/master
fix static build only against tiff and its indirect dependencies
commit eb27272a79cd81256e475b9aad8461fda8b7f989
Merge: 2519439 4d147d9
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2021-01-04 10:45:52 +0100
Merge pull request #1317 from ffontaine/master
CMakeLists.txt: Don't require a C++ compiler
commit 4d147d9630653e4c93a70a2a8026c323ed1042d2
Author: Peter Korsgaard &lt;peter@korsgaard.com&gt;
Date: 2021-01-04 09:05:42 +0100
CMakeLists.txt: Don't require a C++ compiler
By default, CMake assumes that the project is using both C and C++. By
explicitly passing 'C' as argument of the project() macro, we tell CMake
that only C is used, which prevents CMake from erroring out if a C++
compiler doesn't exist.
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
[Retrieved (and slightly updated by adding enable_language(CXX) if
WITH_ASTYLE is set) from:
https://git.buildroot.net/buildroot/tree/package/openjpeg/0003-CMakeLists.txt-Don-t-require-a-C-compiler.patch]
Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
commit 2519439d7d4d0e51abf479afe73f30b1c7c70530
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-31 14:54:59 +0100
Fix Windows build
commit 433edd0eea934e25f6e97aaf912ebed191fa41d1
Author: Antonin Descampe &lt;antonin@descampe.net&gt;
Date: 2020-12-31 11:06:28 +0100
patch provided 3rdparty zlib to work with MacOS
commit 4db0c8d5aef53dd6eebc730e5a189cf9bf9bae6c
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-29 15:34:19 +0100
Add HOWTO-RELEASE
commit 43b8ddc6af015715b2fbda2052a17b29d1538df7
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-29 15:01:40 +0100
Comment back opj_previous_version in abi_check.sh
commit b93996d5e018b3d9525acf406053d8b46240f914
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-29 14:46:50 +0100
abi_check.sh: Update version number for automatic abi check
commit b897e2cb369b6944d791209f491f382a983cda87
Merge: 37ac30c 7dd5497
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-28 22:58:58 +0100
Merge pull request #1312 from stweil/news
Fix year in NEWS
commit 7dd5497b15a33a8020bf1ab116f649328b037a89
Author: Stefan Weil &lt;sw@weilnetz.de&gt;
Date: 2020-12-28 22:52:34 +0100
Fix year in NEWS
Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
commit 37ac30ceff6640bbab502388c5e0fa0bff23f505
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-28 21:55:55 +0100
Prepare for v2.4.0
commit a335b4d008359a32656026fa6780ef185b35cf0a
Merge: 4980f46 0c2b633
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-28 21:49:48 +0100
Merge pull request #1310 from Jamaika1/patch-1
Change defined WIN32
commit 4980f46210f19bd2d83dffdfeb8496f29d68b9c9
Merge: 6c5acd4 aaddbc7
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-28 19:05:14 +0100
Merge pull request #1307 from cygwin-lem/pr_use-OPENJPEG_INSTALL_DOC_DIR-to-DESTINATION-of-HTMLs
Set ${OPENJPEG_INSTALL_DOC_DIR} to DESTINATION of HTMLs
commit 6c5acd4d656870882432ff28d4103de80d109a8d
Merge: 98a4c5c 5d494a7
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-28 19:04:28 +0100
Merge pull request #1308 from timgates42/bugfix_typo_produced
docs: fix simple typo, producted -&gt; produced
commit 0c2b633992417c8794470c9932e3c75447c8ab13
Author: Jamaika1 &lt;lukaszcz18@wp.pl&gt;
Date: 2020-12-21 07:59:12 +0100
Change defined WIN32
commit 5d494a7e8b9591a8923f387679c692b5c1f45e5a
Author: Tim Gates &lt;tim.gates@iress.com&gt;
Date: 2020-12-16 21:19:17 +1100
docs: fix simple typo, producted -&gt; produced
There is a small typo in thirdparty/include/zlib.h, thirdparty/libz/zlib.h.
Should read `produced` rather than `producted`.
commit aaddbc7c07f00f0704da4db7616e6dc7448e5f07
Author: Lemures Lemniscati &lt;lemures.lemniscati@gmail.com&gt;
Date: 2020-12-14 23:00:04 +0900
Set ${OPENJPEG_INSTALL_DOC_DIR} to DESTINATION of HTMLs
Use ${OPENJPEG_INSTALL_DOC_DIR} as DESTINATION of HTML documents,
instead of share/doc.
commit 98a4c5c3709e0cc43b0a1c151ed5bd85a2d607fa
Merge: 5d0a8b0 6558637
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-10 15:55:41 +0100
Merge pull request #1306 from matthew-sharp/master
Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)
commit 65586374d639cfc0104419992f9022174b412594
Author: Matthew Sharp &lt;sharpshopter@gmail.com&gt;
Date: 2020-12-10 10:17:46 +1100
Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)
This fixes the case where the cmake file is accessed via a symlink.
commit 5d0a8b08dcd3bcdf532c54702b5a88ec61b17918
Merge: 43dd9ee 8f5aff1
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-05 11:39:23 +0100
Merge pull request #1304 from rouault/fix_1302
pi.c: avoid out of bounds access with POC (fixes #1302)
commit 8f5aff1dff510a964d3901d0fba281abec98ab63
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-04 20:45:25 +0100
pi.c: avoid out of bounds access with POC (fixes #1302)
commit 43dd9ee17894a22fa3df88b1e561274632d9ab43
Merge: aaff099 4ce7d28
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-04 20:37:43 +0100
Merge pull request #1303 from zodf0055980/fix#1283
Encoder: grow again buffer size
commit 4ce7d285a55d29b79880d0566d4b010fe1907aa9
Author: yuan &lt;zodf0055980@gmail.com&gt;
Date: 2020-12-04 19:00:22 +0800
Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
commit aaff099b49365cfecfc475ada48b9244c6eefc9c
Merge: fb9eae5 73fdf28
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 23:56:57 +0100
Merge pull request #1301 from rouault/fix_1299
opj_j2k_write_sod(): avoid potential heap buffer overflow (fixes #1299) (probably master only)
commit fb9eae5d637d06209a6cb9ca57960ac72179ee14
Merge: fc6abdb 00383e1
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 23:56:39 +0100
Merge pull request #1300 from rouault/complement_1293
pi.c: avoid out of bounds access with POC (refs https://github.com/uclouvain/openjpeg/issues/1293#issuecomment-737122836)
commit fc6abdbeb7aa427685c28a9ebfd2e653c10999b3
Merge: 18b1138 38d661a
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 23:56:30 +0100
Merge pull request #1298 from rouault/fix_1297
opj_t2_encode_packet(): avoid out of bound access of #1297, but likely not the proper fix
commit 73fdf28342e4594019af26eb6a347a34eceb6296
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 14:10:16 +0100
opj_j2k_write_sod(): avoid potential heap buffer overflow (fixes #1299) (probably master only)
commit 00383e162ae2f8fc951f5745bf1011771acb8dce
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 14:02:17 +0100
pi.c: avoid out of bounds access with POC (refs https://github.com/uclouvain/openjpeg/issues/1293#issuecomment-737122836)
commit 38d661a3897052c7ff0b39b30c29cb067e130121
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 13:13:26 +0100
opj_t2_encode_packet(): avoid out of bound access of #1297, but likely not the proper fix
commit 18b1138fbe3bb0ae4aa2bf1369f9430a8ec6fa00
Merge: 630b485 c9380ed
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 10:05:39 +0100
Merge pull request #1295 from rouault/fix_1293
opj_j2k_setup_encoder(): validate POC compno0 and compno1 (fixes #1293)
commit 630b485f86a6b0bb6fa03b698b8c5358df88d055
Merge: 61ff143 fbd30b0
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-02 10:05:31 +0100
Merge pull request #1296 from rouault/workaround_1294
opj_t2_encode_packet(): avoid out of bound access of #1294, but likely not the proper fix
commit c9380ed0f8cc4794fc71d556ea23ae61e32247af
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-01 19:39:09 +0100
opj_j2k_setup_encoder(): validate POC compno0 (fixes #1293)
commit fbd30b064f8f9607d500437b6fedc41431fd6cdc
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-01 19:51:35 +0100
opj_t2_encode_packet(): avoid out of bound access of #1294, but likely not the proper fix
commit 61ff143ad63b9bbe12b6da266f8619b2cb2c3559
Merge: 2d119d0 6daf5f3
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-12-01 11:35:59 +0100
Merge pull request #1292 from rouault/fix_1286
Encoder: avoid global buffer overflow on irreversible conversion when…
commit 6daf5f3e1ec6eff03b7982889874a3de6617db8d
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-30 22:37:07 +0100
Encoder: avoid global buffer overflow on irreversible conversion when too many decomposition levels are specified (fixes #1286)
commit 2d119d03a0c9f5e3b6c2a70c30cbdcea4857b40a
Merge: b207240 1aa3c60
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-30 23:28:31 +0100
Merge pull request #1291 from rouault/tnsot_zero_missing_eoc
Decoding: deal with some SPOT6 images that have tiles with a single tile-part with TPsot == 0 and TNsot == 0, and with missing EOC
commit b2072402b7e14d22bba6fb8cde2a1e9996e9a919
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-30 22:31:51 +0100
pngtoimage(): fix wrong computation of x1,y1 if -d option is used, that would result in a heap buffer overflow (fixes #1284)
commit 1aa3c60859ab2a3edb7a68682f131c6b3a91da72
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-30 17:36:27 +0100
Decoding: deal with some SPOT6 images that have tiles with a single tile-part with TPsot == 0 and TNsot == 0, and with missing EOC
commit a2b2980a4bcb4d3903375de31495f99dde0e98a8
Merge: 0c0f27f 4f48779
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-27 14:25:11 +0100
Merge pull request #1288 from zodf0055980/master
Free p_tcd_marker_info to avoid memory leak
commit 4f487798bac3eea5ffa07d3cc542f675c4b4d9ae
Author: yuan &lt;zodf0055980@gmail.com&gt;
Date: 2020-11-26 00:22:49 +0800
Free p_tcd_marker_info to avoid memory leak
commit 0c0f27f17d431d98d190f30bec3879f434512158
Merge: 15cf3d9 649298d
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-25 16:59:46 +0100
Merge pull request #1287 from zodf0055980/master
Encoder: grow again buffer size
commit 649298dcf84b2f20cfe458d887c1591db47372a6
Author: yuan &lt;zodf0055980@gmail.com&gt;
Date: 2020-11-25 20:41:39 +0800
Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
commit 15cf3d95814dc931ca0ecb132f81cb152e051bae
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-23 18:14:02 +0100
Encoder: grow again buffer size in opj_tcd_code_block_enc_allocate_data() (fixes #1283)
commit eaa098b59b346cb88e4d10d505061f669d7134fc
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-23 13:49:05 +0100
Encoder: grow buffer size in opj_tcd_code_block_enc_allocate_data() to avoid write heap buffer overflow in opj_mqc_flush (fixes #1283)
commit 67ec360f48aeded95d06578e717bdf40a8e6d16f
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-11-23 13:38:27 +0100
Fix typo in internal function name
commit 491299eb073c80602ca8ee333303a31a581d3fa8
Merge: 65c8f57 1c5627e
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-10-09 13:25:27 +0200
Merge pull request #1253 from rouault/floating_point_irreversible_encoding
Single-threaded performance improvements in forward DWT for 5-3 and 9-7 (and other improvements)
commit 65c8f577d2f057e80040e98958eae80ca76c6b94
Author: Pei JIA &lt;jiapei@longervision.com&gt;
Date: 2020-09-23 02:34:31 -0700
Bump Java compatibility from 1.5 to 1.6 (#1263)
commit 0f16986738725799237548ce6a2ea12516850e72
Merge: cbee789 0863ccf
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-09-16 11:52:10 +0200
Merge pull request #1276 from rouault/fix_1243
Encoder: avoid uint32 overflow when allocating memory for codestream buffer (fixes #1243)
commit 0863ccf291238de15ca00da366b4c40fa9ffb673
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-09-16 11:27:53 +0200
Encoder: avoid uint32 overflow when allocating memory for codestream buffer (fixes #1243)
commit cbee7891a0ee664dd83ca09553d2e30da716a883
Merge: 172c8ae e8e258a
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-06-30 22:05:13 +0200
Merge pull request #1262 from rouault/fix_1261
opj_decompress: fix double-free on input directory with mix of valid and invalid images
commit e8e258ab049240c2dd1f1051b4e773b21e2d3dc0
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-06-28 14:19:59 +0200
opj_decompress: fix double-free on input directory with mix of valid and invalid images (CVE-2020-15389)
Fixes #1261
Credits to @Ruia-ruia for reporting and analysis.
commit 172c8ae5cf230ff74b5814daf29e5b577aa30a9b
Merge: e252438 b028e8d
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-06-22 22:35:44 +0200
Merge pull request #1260 from sebras/fix-issue-1259
openjp2: Plug image leak when failing to allocate codestream index.
commit e252438d5e23e6ba9561e73a5a4754713bfd626a
Merge: 98150d0 79b199a
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-06-22 22:12:08 +0200
Merge pull request #1258 from sebras/fix-issue-1257
openjp2: Plug memory leak when setting data as TLS fails.
commit b028e8d1ce7798f61c35b1b20d836f80d78a35d0
Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
Date: 2020-06-23 02:18:19 +0800
openjp2: Plug image leak when failing to allocate codestream index.
This fixes issue #1259.
commit 79b199a8fee2a0d51d4389fcde3f5f4dd01971eb
Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
Date: 2020-06-23 02:18:19 +0800
openjp2: Plug memory leak when setting data as TLS fails.
Previously the Tier 1 handle was not freed when setting it as
TLS failed.
This fixes issue #1257.
commit 98150d09422149305c9c8648337a744df5786fbe
Merge: 25fb144 93b9f72
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-06-22 21:03:23 +0200
Merge pull request #1256 from sebras/master
openjp2: Error out if failing to create Tier 1 handle.
commit 93b9f7236ce09614ea5edcb0f616f1b4095c4830
Author: Sebastian Rasmussen &lt;sebras@gmail.com&gt;
Date: 2020-06-23 02:18:19 +0800
openjp2: Error out if failing to create Tier 1 handle.
Previously when the handle failed to be created (e.g. when
opj_calloc returned NULL due to low memory), the code still
assumed that the t1 handle pointer was valid and dereferenced
NULL, causing a crash. After this commit OpenJPEG will instead
error out under this condition.
This fixes issue #1255.
commit 25fb144c42f97489594302e1e6ff886791e0a5b3
Author: szukw000 &lt;szukw000@arcor.de&gt;
Date: 2020-06-10 17:40:50 +0200
Testing for invalid values of width, height, numcomps (#1254)
commit 1c5627ee7406f84cfb40809b7ac31c63342427df
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-24 15:38:21 +0200
T1 encoder: speed-up by aggressive inlining and more cache friendly data organization
~ 9% speed improvement seen on 10980x10980 uint16 image, T36JTT_20160914T074612_B02.tif
opj_compress time from 17.2s to 15.8s
commit 1e931fdb3655c64ab60ea5657f79309331a86485
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-22 23:57:51 +0200
Forward DWT 9-7: major speed up by vectorizing vertical pass
`bench_dwt -I -encode` times goes from 8.6s to 2.1s
commit a38e970fa59abd796c703ec469e578b09f7ffa33
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-22 17:50:15 +0200
Forward DWT 5-3: major speed up by vectorizing vertical pass
`bench_dwt -encode` times goes from 7.9s to 1.7s
commit e69fa09f604bc472f9fbff5c2b2db65e8dbe2418
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-22 15:58:47 +0200
Forward DWT: small code refactoring to allow future improvements for the vertical pass
commit 33d3d0de07be710f53940c7548b9f2bd58ff3210
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-22 15:06:29 +0200
dwt.c: remove unused typedef
commit 97b384aecdeea0c286213f5caf6244ec08ea32d7
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-22 15:03:40 +0200
Forward DWT 5x3: performance improvements in horizontal pass, and modest in vertical pass
commit bd5f5ee7dea851aedae630fee094ef3b0ff0c888
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-21 21:20:19 +0200
Forward DWT: small code refactoring to allow future improvements for the horizontal pass
commit 45a35223b79dee65a0059f999b690072e829669f
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-21 16:54:48 +0200
Speed-up 9x7 IDWD by ~30% with OPJ_NUM_THREADS=2
"bench_dwt -I" time goes from 2.2s to 1.5s
commit 272b3e0fb2530ca8bffdc8c64f1505a8ff5f6ecc
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-21 11:24:29 +0200
Remove useless + 5U margin in opj_dwt_decode_tile_97()
Nothing in code analysis nor test suite shows that this margin is
needed.
It dates back to commit dbeebe72b9d35f6ff807c21c7f217b569fa894f6
where vector 9x7 decoding was introduced.
commit 47943daa15983d20ab1ffd0a237125f1493c5658
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-21 11:23:00 +0200
Speed-up 9x7 IDWD by ~20%
"bench_dwt -I" time goes from 2.8s to 2.2s
commit 0c09062464fe74f62fb9a4da829992c6a8bd7920
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 23:20:48 +0200
bench_dwt.c: add a -I switch to test irreversible FWDT/IDWT
commit 19ef7f26c43f689b627aad642da7f6150893b863
Merge: 1d358f2 f3ee448
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 21:10:55 +0200
Merge pull request #1211 from sebras/master
Add check to validate SGcod/SPcoc/SPcod parameter values.
commit adccbc8336ce5c46ca7de85ac364d9c992d337c7
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 19:24:09 +0200
Irreversible decoding: partially revert previous commit, to fix failures in test suite
commit 3cd1305596f191a01afdc11f9355f9c6590065dd
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 18:00:45 +0200
Irreversible compression/decompression DWT: use 1/K constant as per standard
The previous constant opj_c13318 was mysteriously equal to 2/K , and in
the DWT, we had to divide K and opj_c13318 by 2... The issue was that the
band-&gt;stepsize computation in tcd.c didn't take into account the log2gain of
the band.
The effect of this change is expected to be mostly equivalent to the previous
situation, except some difference in rounding. But it leads to a dramatic
reduction of the mean square error and peak error in the irreversible encoding
of issue141.tif !
commit f38c069547f1c41dc94ec4a273efb07997685c21
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 13:14:16 +0200
Irreversible decoding: align code more closely to the standard by avoid messing up with stepsize (no functional change)
commit e46e300de55aa35279935ef9e8572949d725d833
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 11:36:05 +0200
opj_dwt_encode_1_real(): avoid many bound comparisons, similarly to decoding side
commit 4ab2ed090747ad2f22e78d45a1db5640d40e6a34
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-19 22:26:22 +0200
opj_j2k_setup_encoder(): add validation of tile width and height to avoid potential division by zero
commit c6a413a42394836b956846cc037dd8297b732f44
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-19 19:45:00 +0200
opj_mct_encode_real(): add SSE optimization
commit fe4c15f12c562a42a6b0c4b0a0c5e42a25797235
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-19 18:03:58 +0200
Testing: revise testing of lossy encoding by comparing PEAK and MSE with original image
commit c2b9d09c65ec5db4a94de961b0470923aec74e2e
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-19 18:03:29 +0200
compare_images.c: code reformatting
commit 3d35d0f3af46ee206a3ea147298aad3d83a7775c
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-18 20:17:07 +0200
tcd.c: add comment
commit 1d358f25c8eabbc7c274bcc148f4f5d594ec13fe
Merge: 64689d0 4edb8c8
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-05-20 20:29:31 +0200
Merge pull request #1246 from rouault/write_plt
Add support for generation of PLT markers in encoder
commit 4edb8c83374f52cd6a8f2c7c875e8ffacccb5fa5
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-21 15:55:44 +0200
Add support for generation of PLT markers in encoder
* -PLT switch added to opj_compress
* Add a opj_encoder_set_extra_options() function that
accepts a PLT=YES option, and could be expanded later
for other uses.
-------
Testing with a Sentinel2 10m band, T36JTT_20160914T074612_B02.jp2,
coming from S2A_MSIL1C_20160914T074612_N0204_R135_T36JTT_20160914T081456.SAFE
Decompress it to TIFF:
```
opj_uncompress -i T36JTT_20160914T074612_B02.jp2 -o T36JTT_20160914T074612_B02.tif
```
Recompress it with similar parameters as original:
```
opj_compress -n 5 -c [256,256],[256,256],[256,256],[256,256],[256,256] -t 1024,1024 -PLT -i T36JTT_20160914T074612_B02.tif -o T36JTT_20160914T074612_B02_PLT.jp2
```
Dump codestream detail with GDAL dump_jp2.py utility (https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/samples/dump_jp2.py)
```
python dump_jp2.py T36JTT_20160914T074612_B02.jp2 &gt; /tmp/dump_sentinel2_ori.txt
python dump_jp2.py T36JTT_20160914T074612_B02_PLT.jp2 &gt; /tmp/dump_sentinel2_openjpeg_plt.txt
```
The diff between both show very similar structure, and identical number of packets in PLT markers
Now testing with Kakadu (KDU803_Demo_Apps_for_Linux-x86-64_200210)
Full file decompression:
```
kdu_expand -i T36JTT_20160914T074612_B02_PLT.jp2 -o tmp.tif
Consumed 121 tile-part(s) from a total of 121 tile(s).
Consumed 80,318,806 codestream bytes (excluding any file format) = 5.329697
bits/pel.
Processed using the multi-threaded environment, with
8 parallel threads of execution
```
Partial decompresson (presumably using PLT markers):
```
kdu_expand -i T36JTT_20160914T074612_B02.jp2 -o tmp.pgm -region "{0.5,0.5},{0.01,0.01}"
kdu_expand -i T36JTT_20160914T074612_B02_PLT.jp2 -o tmp2.pgm -region "{0.5,0.5},{0.01,0.01}"
diff tmp.pgm tmp2.pgm &amp;& echo "same !"
```
-------
Funded by ESA for S2-MPC project
commit 64689d05dfaaf52105581d93fb1eb173b20829a4
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-18 18:25:44 +0200
struct opj_j2k: remove unused fields, and add some documentation
commit 774889a328abd5d3c280d9a897f1ac4c672cb0e5
Merge: b6b7e96 271a71e
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-17 00:39:46 +0200
Merge pull request #1244 from rouault/fix_pi_warnings
Fix warnings about signed/unsigned casts in pi.c
commit b6b7e96b0cf7819ef6a2e8ba2f8bdaaf938326ed
Author: szukw000 &lt;szukw000@arcor.de&gt;
Date: 2020-04-17 00:37:33 +0200
color_apply_icc_profile: add checks on the number of components (#1236)
commit 040e142288e90c9c2d46d25d0a27f828f968bb93
Author: Eduardo Barretto &lt;edusbarretto@gmail.com&gt;
Date: 2020-04-16 19:09:40 -0300
jp3d/jpwl/mj2/jpip: Fix resource leaks (#1226)
This issues were found by cppcheck and coverity.
commit 271a71ef0f1dd4740c9f4474279c7da8d15850c9
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-16 20:52:44 +0200
Fix warnings about signed/unsigned casts in pi.c
commit 221a801a97a3ea968a311f7905c18a1eb7f034c4
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-16 20:33:22 +0200
Rename mis-named function opj_tcd_get_encoded_tile_size() to opj_tcd_get_encoder_input_buffer_size()
commit 9c1cfb034a8cf24eb5e35fe9c7074fd079d14b80
Merge: 563ecfb 1c54024
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-01 22:00:19 +0200
Merge pull request #1240 from rouault/fix_crash_opj_decompress
opj_decompress: add sanity checks to avoid segfault in case of decoding error
commit 1c54024165fd5db0e6047f28903274eb27d0980f
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-04-01 20:58:55 +0200
opj_decompress: add sanity checks to avoid segfault in case of decoding error
Prevent crashes like:
opj_decompress -i 0722_5-1_2019.jp2 -o out.ppm -r 4 -t 0
where 0722_5-1_2019.jp2 is
https://drive.google.com/file/d/1ZxOUZg2-FKjYwa257VFLMpTXRWxEoP0a/view?usp=sharing
commit 563ecfb55ca77c0fc5ea19e4885e00f55ec82ca9
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-02-13 09:59:17 +0100
opj_compress: improve help message regarding new IMF switch
commit 4e5501b3c72a98b3117e68263afb922092c309cf
Merge: 2888145 84f3beb
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-02-13 09:54:20 +0100
Merge pull request #1235 from rouault/imf
Implement writing of IMF profiles
commit 84f3bebbff515f2b00ccf0c817930ebb10b91760
Author: Even Rouault &lt;even.rouault@spatialys.com&gt;
Date: 2020-02-12 15:55:16 +0100
Implement writing of IMF profiles
Add -IMF switch to opj_compress as well
...</pre></div>
</body>
</html>