Repository navigation
PJA 0.9.6
JPEG 2000 for zpaq-std, HTJ2K, and a faster JPEG 2000 path.
- HTJ2K (High-Throughput JPEG 2000,
.jph,.jhc, DICOM frames). Each HT code-block's segments are decoded and written again exactly as their encoder ended them (OpenJPH, Grok, OpenHTJ2K, Kakadu), and stored in the smaller of two new modes of stream version 8:- mode 3: the code-blocks' values through a context-mixing model;
- mode 4, for lossless codestreams: the pixels, through the pixel models.
| HTJ2K, real files | codestreams | saved |
|---|---|---|
| Netflix Meridian 4K cinema frames (Kakadu) | 148 | 10.4% |
| DICOM from public PACS and test sets (OpenJPH) | 385 | 8.6 - 22.5% |
| UHD photo in PDFs (Kakadu) | 4 | 13.9% |
| all 716 real codestreams (460 MB) | 716 | 11.2% |
| photos made with OpenJPH and Grok, lossless and lossy | 78 | 26.7% |
- JPEG 2000 for zpaq-std:
pja2k. A new codec, index 30 of the plugin, for Part 1 JPEG 2000 files (JP2, JPX, JPM, MJ2, codestreams), with a ZPAQL decoder (51,521 bytes): any zpaq extracts its blocks without the plugin (checked with zpaq 7.15). About 7.7% saved on 113 real codestreams. It takes the decisions' model (mode 1) only; HTJ2K and the pixel modes stay as bytes in it. With zpaq-std 2.3.0:-sae:pja:pja2kor-sat:pja:pja2k. - Faster JPEG 2000. SIMD copies (SSE4.1, AVX2) of the models, fewer branches, the two modes of a lossless codestream coded side by side, a file's frames or layers on several threads, and
-ththreads shared by file size (a large file is no longer left on one thread at the end). 113 real codestreams (150 MB) at-th 8: 303 s → 136 s to compress (-55%), 83 s → 51 s to extract (-38%); Motion JPEG 2000 7 to 8 times faster. Tiled codestreams of 2 MB or more are cut in slices of 1 MiB instead of 4 MiB (more threads; 8.47% → 8.42% saved on that set); every other stream is byte for byte 0.9.5's. - Stable. The formats of 0.9.0 and 0.9.5 are unchanged: the same
.pjafor JPEG and JPEG-LS, the thirty zpaq-std codecs and their ZPAQL. New and fixed from now on (doc/STABILITY.md): stream version 8's modes 3 and 4, and the codecpja2kwith its stream and ZPAQL. 7-Zip shows the plugin's version as 0.96. - Checked: 900 of 924 HTJ2K codestreams of every encoder taken and given back byte for byte (the rest kept as bytes), about 2.1 million damaged HT inputs with no crash or hang;
pja2kthrough libzpaq on 113 real codestreams; the same streams on all six platforms and on 32-bit; Windows 10 (pja.exeselftest 42/42, 7-Zip 25.01 with the plugin, zpaq-std 2.3.0 withpja2kand zpaq 7.15 extracting it without the plugin).
Downloads
| platform | the pja command |
the zpaq-std plugin | libpja (C library, 7-Zip plugin) |
|---|---|---|---|
| Linux x86-64 | pja-0.9.6-linux-x86_64.tar.gz |
pja-0.9.6-zpaqstd-plugin-linux-x86_64.tar.gz |
pja-0.9.6-lib-linux-x86_64.tar.gz |
| Linux x86 (32-bit) | pja-0.9.6-linux-x86.tar.gz |
pja-0.9.6-zpaqstd-plugin-linux-x86.tar.gz |
pja-0.9.6-lib-linux-x86.tar.gz |
| Linux arm64 | pja-0.9.6-linux-arm64.tar.gz |
pja-0.9.6-zpaqstd-plugin-linux-arm64.tar.gz |
pja-0.9.6-lib-linux-arm64.tar.gz |
| macOS arm64 | pja-0.9.6-macos-arm64.tar.gz |
pja-0.9.6-zpaqstd-plugin-macos-arm64.tar.gz |
pja-0.9.6-lib-macos-arm64.tar.gz |
| Windows x64 (7 and later) | pja-0.9.6-windows-x64.zip |
pja-0.9.6-zpaqstd-plugin-windows-x64.zip |
pja-0.9.6-lib-windows-x64.zip |
| Windows x86 (XP and later) | pja-0.9.6-windows-x86.zip |
pja-0.9.6-zpaqstd-plugin-windows-x86.zip |
pja-0.9.6-lib-windows-x86.zip |
pja-0.9.6-zpaqstd.tar.gz holds the plugin's sources as zpaq-std vendors them, with VENDOR.md. CI builds and checks every binary on its own platform (.github/workflows/release.yml); libpja is checked with its C test and, on Linux x86-64, through a real 7-Zip. SHA256SUMS has the checksums. The Linux builds need glibc 2.34 or later. The macOS ones are not signed: run xattr -d com.apple.quarantine after unpacking.