@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/CHANGELOG.md +28 -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/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
|
|
139
|
-
*
|
|
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
|
-
*
|
|
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
|
|
139
|
-
*
|
|
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
|
-
*
|
|
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
|
|
309
|
-
*
|
|
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
|
-
*
|
|
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));
|