Skip to content

v21.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 14:05
· 103 commits to master since this release

This release makes decompression significantly faster.

Decompression speed:

  1. 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.
  2. faster region decodes, on files with and without TLM markers
  3. faster HTJ2K block decoding with AVX2, and HTJ2K block coders synced to OpenJPH 0.31.0
  4. SIMD int16 5/3 wavelet and SIMD int16 to 8-bit output copy
  5. lower memory use: huge pages and mmap for large buffers, per-tile arenas, and tile memory released after each tile

Other decompression changes:

  1. Part 2 decoding and HTJ2K conformance fixes
  2. selective network fetch with PLT markers and disjoint byte ranges, plus a configurable fetch batch size
  3. irreversible int16 decode option and output pixel rescaling

Compression:

  1. Mercury DCI encoder, now the default for DCI encodes
  2. PCRD optimization is on by default. Compression ratios that can't be met now produce empty quality layers instead of an error.
  3. 16-bit compression fast path, Rec.709 RGB to X'Y'Z' transform for DCI, raw j2k transcode

API and ABI:

  1. The shared library soname moves from libgrokj2k.so.1 to libgrokj2k.so.2, so applications must be rebuilt.
  2. grk_stream_params has a new positioned read callback, read_at_fn
  3. --version flag on grk_compress and grk_decompress

Many bug fixes, including fuzzer findings in the TIFF, BMP, PNM and MJ2 readers.

Full changelog: v20.4.25...v21.0.0