@qrcommunication/gigapdf-lib 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,48 @@ All notable changes to `@qrcommunication/gigapdf-lib` are documented here.
|
|
|
4
4
|
The format follows [Keep a Changelog](https://keepachangelog.com/) and the
|
|
5
5
|
project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.41.0] - 2026-06-17
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **AVIF: mixed 2D transforms (ADST/DCT) used the wrong row vs column axis.**
|
|
12
|
+
The inverse transform applied the *vertical* 1D type to the rows and the
|
|
13
|
+
*horizontal* one to the columns, so `ADST_DCT` (and every other mixed type)
|
|
14
|
+
ran its ADST across the rows instead of down the columns. The symmetric types
|
|
15
|
+
(DCT_DCT, ADST_ADST, FLIPADST_FLIPADST, IDTX) are swap-invariant, which hid
|
|
16
|
+
the bug until a still used a mixed type — the common case for real-world
|
|
17
|
+
AVIFs, whose intra residual leans heavily on ADST. The reconstruction is now
|
|
18
|
+
bit-exact vs dav1d. Versions before this corrupted most photographic AVIFs.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **AVIF: multi-strength CDEF (`cdef_bits > 0`).** The CDEF stage now reads the
|
|
23
|
+
per-64×64 `cdef_idx` from the tile stream (once per filter unit, after the
|
|
24
|
+
skip flag) and selects the matching primary/secondary strength pair per plane,
|
|
25
|
+
rather than assuming a single strength set. Bit-exact against dav1d on
|
|
26
|
+
single-strength fixtures; the multi-strength read position is verified
|
|
27
|
+
sync-correct (with-read vs no-read divergence proof).
|
|
28
|
+
- **AVIF: directional intra real-neighbour edges.** Directional predictors
|
|
29
|
+
(Z1/Z2/Z3) gather the true top-right / bottom-left samples via a
|
|
30
|
+
`BlockDecoded` availability grid instead of repeating the last edge sample.
|
|
31
|
+
Together with the transform fix above, the whole AVIF intra path — mixed
|
|
32
|
+
transforms, Z1/Z2/Z3 directional, palette, CDEF and deblocking in a single
|
|
33
|
+
frame — is now validated bit-exact vs dav1d on a 64×64 noise still.
|
|
34
|
+
|
|
35
|
+
## [0.40.0] - 2026-06-17
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- **AVIF: full (non-reduced) sequence + frame header.** `decodeAvif` now decodes
|
|
40
|
+
AVIFs whose AV1 sequence header is *not* `reduced_still_picture_header` — e.g.
|
|
41
|
+
produced by ffmpeg/libaom without `-still-picture`, and various other encoders.
|
|
42
|
+
Previously these failed to parse (the header path returned nothing). The
|
|
43
|
+
streaming sequence header (timing/decoder-model info, operating-points loop,
|
|
44
|
+
frame-id numbers, order-hint feature flags) and the KEY-frame frame-header
|
|
45
|
+
preamble — including the `disable_frame_end_update_cdf` bit the reduced header
|
|
46
|
+
omits — are parsed bit-exact against dav1d. Only shown KEY/intra stills are
|
|
47
|
+
decoded; references to previously decoded frames and inter frames are rejected.
|
|
48
|
+
|
|
7
49
|
## [0.39.0] - 2026-06-17
|
|
8
50
|
|
|
9
51
|
### Changed
|
package/dist/index.cjs
CHANGED
|
@@ -346,15 +346,24 @@ var GigaPdfEngine = class _GigaPdfEngine {
|
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
|
-
* Decode a
|
|
350
|
-
*
|
|
349
|
+
* Decode a WebP to `{ width, height, rgba }`, or `null`. Handles both
|
|
350
|
+
* **lossless** (VP8L) and **lossy** (VP8 keyframe) WebP with the engine's
|
|
351
|
+
* native decoder — no third-party image library. Extended/animated WebP
|
|
352
|
+
* (`VP8X`) is not handled (returns `null`).
|
|
351
353
|
*/
|
|
352
354
|
decodeWebp(webp) {
|
|
353
355
|
return this._decodeFramed(webp, (p, l, o) => this.ex.gp_decode_webp(p, l, o));
|
|
354
356
|
}
|
|
355
357
|
/**
|
|
356
358
|
* Decode a still **AVIF** (AV1 intra) to `{ width, height, rgba }`, or `null`.
|
|
357
|
-
*
|
|
359
|
+
* Pure-Rust AV1 decoder — no third-party library. Supports lossy + lossless
|
|
360
|
+
* transforms, in-loop deblocking (AV1 §7.14) and CDEF (§7.15, including the
|
|
361
|
+
* multi-strength `cdef_bits > 0` path), screen-content **palette** mode
|
|
362
|
+
* (§5.11.46-50), and both `reduced_still_picture_header` and the full
|
|
363
|
+
* streaming sequence/frame headers — all validated bit-exact against dav1d.
|
|
364
|
+
* Not yet covered: animated AVIF, film grain, loop restoration (§7.17), the
|
|
365
|
+
* fully bit-exact directional top-right/bottom-left intra edge, and the
|
|
366
|
+
* lossless WHT path at very-high quality (`q ≤ 20`).
|
|
358
367
|
*/
|
|
359
368
|
decodeAvif(avif) {
|
|
360
369
|
return this._decodeFramed(avif, (p, l, o) => this.ex.gp_decode_avif(p, l, o));
|