@blazediff/core-wasm 5.2.0 → 5.3.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/package.json +2 -2
- package/wasm/blazediff.d.ts +1 -1
- package/wasm/blazediff.js +4 -4
- package/wasm/blazediff_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/core-wasm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "WebAssembly build of blazediff for browsers, edge runtimes, and any wasm host. Same algorithm as @blazediff/core-native.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tsup": "8.5.0",
|
|
45
45
|
"typescript": "5.9.2",
|
|
46
46
|
"vitest": "^3.2.4",
|
|
47
|
-
"@blazediff/core-native": "5.
|
|
47
|
+
"@blazediff/core-native": "5.3.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"typecheck": "tsc --noEmit",
|
package/wasm/blazediff.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function _start(): void;
|
|
3
4
|
/**
|
|
4
5
|
* Diff two RGBA buffers. Returns the count of differing pixels.
|
|
5
6
|
*
|
|
@@ -16,7 +17,6 @@ export function diffRgba(rgba_a: Uint8Array, rgba_b: Uint8Array, width: number,
|
|
|
16
17
|
* native binding produces.
|
|
17
18
|
*/
|
|
18
19
|
export function interpretRgba(rgba_a: Uint8Array, rgba_b: Uint8Array, width: number, height: number, threshold: number, include_aa: boolean, diff_mask: boolean, diff_color_alt?: Uint8Array | null, out_diff?: Uint8Array | null): any;
|
|
19
|
-
export function _start(): void;
|
|
20
20
|
|
|
21
21
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
22
22
|
|
package/wasm/blazediff.js
CHANGED
|
@@ -112,6 +112,10 @@ function takeObject(idx) {
|
|
|
112
112
|
return ret;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
export function _start() {
|
|
116
|
+
wasm._start();
|
|
117
|
+
}
|
|
118
|
+
|
|
115
119
|
function passArray8ToWasm0(arg, malloc) {
|
|
116
120
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
117
121
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -200,10 +204,6 @@ export function interpretRgba(rgba_a, rgba_b, width, height, threshold, include_
|
|
|
200
204
|
}
|
|
201
205
|
}
|
|
202
206
|
|
|
203
|
-
export function _start() {
|
|
204
|
-
wasm._start();
|
|
205
|
-
}
|
|
206
|
-
|
|
207
207
|
async function __wbg_load(module, imports) {
|
|
208
208
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
209
209
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
package/wasm/blazediff_bg.wasm
CHANGED
|
Binary file
|