Repository navigation
v0.23.2
Patch release: open_htj2k_dec writes images with more than about 250
components where a process may have only 256 files open (the macOS default),
and the library and tools build without compiler warnings. Encoded and
decoded output is byte-identical to 0.23.1, and the API is unchanged.
Changed
Build
- The sources build without compiler warnings with GCC, Clang, Apple Clang,
MSVC (x64 and ARM64) and Emscripten, also with-DOPENHTJ2K_RTP=ON,
-DOPENHTJ2K_QUIC=ONand-DCMAKE_CXX_STANDARD=11. A default build printed
12-16 warnings with GCC and Clang and about 60 with MSVC. The fixes are
casts, unused code removed, unnamed unused parameters, zero-initialized
scratch arrays, and a portableround_up(); no change in output.
Fixed
Tools
open_htj2k_decfailed to write codestreams with more than about 250
components as PGM, PGX or RAW (one file per component) where a process may
have 256 files open, the macOS default: conformance codestreamsp0_13and
ds0_ht_13(257 components) stopped after 253 files, so 8 conformance
comparison tests failed on a Mac. It keeps every component's file open
while it writes rows, and now raises its limit on open files to what the
components need (up to the hard limit; up to 8192 on Windows, whose C
runtime allows 512 by default). A file that still cannot be opened now
makes it exit with an error; it used to exit successfully.