Repository navigation
v21.0.0
·
103 commits
to master
since this release
This release makes decompression significantly faster.
Decompression speed:
Mercury, a new decode engine written in Rust, is now the default decoder. It decodes tiles as their tile parts arrive, streams output by rows, and runs on the same thread pool as the rest of Grok. It covers single-tile and multi-tile images, region reads, reduced resolutions, layer-limited streams, and buffer and callback streams. Streams it can't decode go to the classic decoder.- faster region decodes, on files with and without
TLMmarkers - faster HTJ2K block decoding with AVX2, and HTJ2K block coders synced to OpenJPH 0.31.0
- SIMD int16 5/3 wavelet and SIMD int16 to 8-bit output copy
- lower memory use: huge pages and
mmapfor large buffers, per-tile arenas, and tile memory released after each tile
Other decompression changes:
- Part 2 decoding and HTJ2K conformance fixes
- selective network fetch with
PLTmarkers and disjoint byte ranges, plus a configurable fetch batch size - irreversible int16 decode option and output pixel rescaling
Compression:
MercuryDCI encoder, now the default for DCI encodes- PCRD optimization is on by default. Compression ratios that can't be met now produce empty quality layers instead of an error.
- 16-bit compression fast path, Rec.709 RGB to X'Y'Z' transform for DCI, raw j2k transcode
API and ABI:
- The shared library soname moves from
libgrokj2k.so.1tolibgrokj2k.so.2, so applications must be rebuilt. grk_stream_paramshas a new positioned read callback,read_at_fn--versionflag ongrk_compressandgrk_decompress
Many bug fixes, including fuzzer findings in the TIFF, BMP, PNM and MJ2 readers.
Full changelog: v20.4.25...v21.0.0