Skip to content

v0.23.2

Choose a tag to compare

@osamu620 osamu620 released this 01 Nov 10:53
· 159 commits to main since this release

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=ON and -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 portable round_up(); no change in output.

Fixed

Tools

  • open_htj2k_dec failed 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 codestreams p0_13 and
    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.