@qrcommunication/gigapdf-lib 0.40.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/dist/index.d.cts CHANGED
@@ -135,13 +135,22 @@ declare class GigaPdfEngine {
135
135
  */
136
136
  encodeWebp(rgba: Uint8Array, width: number, height: number): Uint8Array;
137
137
  /**
138
- * Decode a **lossless** (VP8L) WebP to `{ width, height, rgba }`, or `null`.
139
- * Lossy (VP8) and extended/animated WebP are not handled (returns `null`).
138
+ * Decode a WebP to `{ width, height, rgba }`, or `null`. Handles both
139
+ * **lossless** (VP8L) and **lossy** (VP8 keyframe) WebP with the engine's
140
+ * native decoder — no third-party image library. Extended/animated WebP
141
+ * (`VP8X`) is not handled (returns `null`).
140
142
  */
141
143
  decodeWebp(webp: Uint8Array): DecodedImage | null;
142
144
  /**
143
145
  * Decode a still **AVIF** (AV1 intra) to `{ width, height, rgba }`, or `null`.
144
- * Native AV1 decoder — no third-party library. Animated AVIF is not handled.
146
+ * Pure-Rust AV1 decoder — no third-party library. Supports lossy + lossless
147
+ * transforms, in-loop deblocking (AV1 §7.14) and CDEF (§7.15, including the
148
+ * multi-strength `cdef_bits > 0` path), screen-content **palette** mode
149
+ * (§5.11.46-50), and both `reduced_still_picture_header` and the full
150
+ * streaming sequence/frame headers — all validated bit-exact against dav1d.
151
+ * Not yet covered: animated AVIF, film grain, loop restoration (§7.17), the
152
+ * fully bit-exact directional top-right/bottom-left intra edge, and the
153
+ * lossless WHT path at very-high quality (`q ≤ 20`).
145
154
  */
146
155
  decodeAvif(avif: Uint8Array): DecodedImage | null;
147
156
  /** Unpack a `[w:u32 LE][h:u32 LE][rgba]` decode buffer; `null` if empty. */
package/dist/index.d.ts CHANGED
@@ -135,13 +135,22 @@ declare class GigaPdfEngine {
135
135
  */
136
136
  encodeWebp(rgba: Uint8Array, width: number, height: number): Uint8Array;
137
137
  /**
138
- * Decode a **lossless** (VP8L) WebP to `{ width, height, rgba }`, or `null`.
139
- * Lossy (VP8) and extended/animated WebP are not handled (returns `null`).
138
+ * Decode a WebP to `{ width, height, rgba }`, or `null`. Handles both
139
+ * **lossless** (VP8L) and **lossy** (VP8 keyframe) WebP with the engine's
140
+ * native decoder — no third-party image library. Extended/animated WebP
141
+ * (`VP8X`) is not handled (returns `null`).
140
142
  */
141
143
  decodeWebp(webp: Uint8Array): DecodedImage | null;
142
144
  /**
143
145
  * Decode a still **AVIF** (AV1 intra) to `{ width, height, rgba }`, or `null`.
144
- * Native AV1 decoder — no third-party library. Animated AVIF is not handled.
146
+ * Pure-Rust AV1 decoder — no third-party library. Supports lossy + lossless
147
+ * transforms, in-loop deblocking (AV1 §7.14) and CDEF (§7.15, including the
148
+ * multi-strength `cdef_bits > 0` path), screen-content **palette** mode
149
+ * (§5.11.46-50), and both `reduced_still_picture_header` and the full
150
+ * streaming sequence/frame headers — all validated bit-exact against dav1d.
151
+ * Not yet covered: animated AVIF, film grain, loop restoration (§7.17), the
152
+ * fully bit-exact directional top-right/bottom-left intra edge, and the
153
+ * lossless WHT path at very-high quality (`q ≤ 20`).
145
154
  */
146
155
  decodeAvif(avif: Uint8Array): DecodedImage | null;
147
156
  /** Unpack a `[w:u32 LE][h:u32 LE][rgba]` decode buffer; `null` if empty. */
package/dist/index.js CHANGED
@@ -305,15 +305,24 @@ var GigaPdfEngine = class _GigaPdfEngine {
305
305
  );
306
306
  }
307
307
  /**
308
- * Decode a **lossless** (VP8L) WebP to `{ width, height, rgba }`, or `null`.
309
- * Lossy (VP8) and extended/animated WebP are not handled (returns `null`).
308
+ * Decode a WebP to `{ width, height, rgba }`, or `null`. Handles both
309
+ * **lossless** (VP8L) and **lossy** (VP8 keyframe) WebP with the engine's
310
+ * native decoder — no third-party image library. Extended/animated WebP
311
+ * (`VP8X`) is not handled (returns `null`).
310
312
  */
311
313
  decodeWebp(webp) {
312
314
  return this._decodeFramed(webp, (p, l, o) => this.ex.gp_decode_webp(p, l, o));
313
315
  }
314
316
  /**
315
317
  * Decode a still **AVIF** (AV1 intra) to `{ width, height, rgba }`, or `null`.
316
- * Native AV1 decoder — no third-party library. Animated AVIF is not handled.
318
+ * Pure-Rust AV1 decoder — no third-party library. Supports lossy + lossless
319
+ * transforms, in-loop deblocking (AV1 §7.14) and CDEF (§7.15, including the
320
+ * multi-strength `cdef_bits > 0` path), screen-content **palette** mode
321
+ * (§5.11.46-50), and both `reduced_still_picture_header` and the full
322
+ * streaming sequence/frame headers — all validated bit-exact against dav1d.
323
+ * Not yet covered: animated AVIF, film grain, loop restoration (§7.17), the
324
+ * fully bit-exact directional top-right/bottom-left intra edge, and the
325
+ * lossless WHT path at very-high quality (`q ≤ 20`).
317
326
  */
318
327
  decodeAvif(avif) {
319
328
  return this._decodeFramed(avif, (p, l, o) => this.ex.gp_decode_avif(p, l, o));