@mediapipe/tasks-audio 0.10.33 → 0.10.35
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/audio_bundle.cjs +1 -1
- package/audio_bundle.cjs.map +1 -1
- package/audio_bundle.mjs +1 -1
- package/audio_bundle.mjs.map +1 -1
- package/package.json +13 -11
- package/wasm/audio_wasm_internal.js +121 -136
- package/wasm/audio_wasm_internal.wasm +0 -0
- package/wasm/audio_wasm_module_internal.js +124 -139
- package/wasm/audio_wasm_module_internal.wasm +0 -0
- package/wasm/audio_wasm_nosimd_internal.js +121 -136
- package/wasm/audio_wasm_nosimd_internal.wasm +0 -0
|
@@ -198,14 +198,17 @@ var EXITSTATUS;
|
|
|
198
198
|
// include: runtime_stack_check.js
|
|
199
199
|
// end include: runtime_stack_check.js
|
|
200
200
|
// include: runtime_exceptions.js
|
|
201
|
+
// Base Emscripten EH error class
|
|
202
|
+
class EmscriptenEH {}
|
|
203
|
+
|
|
204
|
+
class EmscriptenSjLj extends EmscriptenEH {}
|
|
205
|
+
|
|
201
206
|
// end include: runtime_exceptions.js
|
|
202
207
|
// include: runtime_debug.js
|
|
203
208
|
// end include: runtime_debug.js
|
|
204
209
|
var readyPromiseResolve, readyPromiseReject;
|
|
205
210
|
|
|
206
211
|
// Memory management
|
|
207
|
-
var /** @type {!Int8Array} */ HEAP8, /** @type {!Uint8Array} */ HEAPU8, /** @type {!Int16Array} */ HEAP16, /** @type {!Uint16Array} */ HEAPU16, /** @type {!Int32Array} */ HEAP32, /** @type {!Uint32Array} */ HEAPU32, /** @type {!Float32Array} */ HEAPF32, /** @type {!Float64Array} */ HEAPF64;
|
|
208
|
-
|
|
209
212
|
var runtimeInitialized = false;
|
|
210
213
|
|
|
211
214
|
function updateMemoryViews() {
|
|
@@ -257,9 +260,11 @@ function postRun() {
|
|
|
257
260
|
callRuntimeCallbacks(onPostRuns);
|
|
258
261
|
}
|
|
259
262
|
|
|
260
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* @param {string|number=} what
|
|
265
|
+
*/ function abort(what) {
|
|
261
266
|
Module["onAbort"]?.(what);
|
|
262
|
-
what =
|
|
267
|
+
what = `Aborted(${what})`;
|
|
263
268
|
// TODO(sbc): Should we remove printing and leave it up to whoever
|
|
264
269
|
// catches the exception?
|
|
265
270
|
err(what);
|
|
@@ -289,10 +294,10 @@ var wasmBinaryFile;
|
|
|
289
294
|
|
|
290
295
|
function findWasmBinary() {
|
|
291
296
|
if (Module["locateFile"]) {
|
|
292
|
-
return locateFile("
|
|
297
|
+
return locateFile("audio_wasm_module_raw_internal.wasm");
|
|
293
298
|
}
|
|
294
299
|
// Use bundler-friendly `new URL(..., import.meta.url)` pattern; works in browsers too.
|
|
295
|
-
return new URL("
|
|
300
|
+
return new URL("audio_wasm_module_raw_internal.wasm", import.meta.url).href;
|
|
296
301
|
}
|
|
297
302
|
|
|
298
303
|
function getBinarySync(file) {
|
|
@@ -934,6 +939,22 @@ var Browser = {
|
|
|
934
939
|
}
|
|
935
940
|
};
|
|
936
941
|
|
|
942
|
+
/** @type {!Int16Array} */ var HEAP16;
|
|
943
|
+
|
|
944
|
+
/** @type {!Int32Array} */ var HEAP32;
|
|
945
|
+
|
|
946
|
+
/** @type {!Int8Array} */ var HEAP8;
|
|
947
|
+
|
|
948
|
+
/** @type {!Float32Array} */ var HEAPF32;
|
|
949
|
+
|
|
950
|
+
/** @type {!Float64Array} */ var HEAPF64;
|
|
951
|
+
|
|
952
|
+
/** @type {!Uint16Array} */ var HEAPU16;
|
|
953
|
+
|
|
954
|
+
/** @type {!Uint32Array} */ var HEAPU32;
|
|
955
|
+
|
|
956
|
+
/** @type {!Uint8Array} */ var HEAPU8;
|
|
957
|
+
|
|
937
958
|
var callRuntimeCallbacks = callbacks => {
|
|
938
959
|
while (callbacks.length > 0) {
|
|
939
960
|
// Pass the module as the first argument.
|
|
@@ -1019,13 +1040,10 @@ var initRandomFill = () => {
|
|
|
1019
1040
|
var nodeCrypto = require("node:crypto");
|
|
1020
1041
|
return view => nodeCrypto.randomFillSync(view);
|
|
1021
1042
|
}
|
|
1022
|
-
return view => crypto.getRandomValues(view);
|
|
1043
|
+
return view => (crypto.getRandomValues(view), 0);
|
|
1023
1044
|
};
|
|
1024
1045
|
|
|
1025
|
-
var randomFill = view =>
|
|
1026
|
-
// Lazily init on the first invocation.
|
|
1027
|
-
(randomFill = initRandomFill())(view);
|
|
1028
|
-
};
|
|
1046
|
+
var randomFill = view => (randomFill = initRandomFill())(view);
|
|
1029
1047
|
|
|
1030
1048
|
var PATH_FS = {
|
|
1031
1049
|
resolve: (...args) => {
|
|
@@ -1420,12 +1438,14 @@ var MEMFS = {
|
|
|
1420
1438
|
} else if (FS.isFile(node.mode)) {
|
|
1421
1439
|
node.node_ops = MEMFS.ops_table.file.node;
|
|
1422
1440
|
node.stream_ops = MEMFS.ops_table.file.stream;
|
|
1441
|
+
// The actual number of bytes used in the typed array, as opposed to
|
|
1442
|
+
// contents.length which gives the whole capacity.
|
|
1423
1443
|
node.usedBytes = 0;
|
|
1424
|
-
// The
|
|
1425
|
-
//
|
|
1426
|
-
//
|
|
1427
|
-
//
|
|
1428
|
-
node.contents =
|
|
1444
|
+
// The byte data of the file is stored in a typed array.
|
|
1445
|
+
// Note: typed arrays are not resizable like normal JS arrays are, so
|
|
1446
|
+
// there is a small penalty involved for appending file writes that
|
|
1447
|
+
// continuously grow a file similar to std::vector capacity vs used.
|
|
1448
|
+
node.contents = MEMFS.emptyFileContents ??= new Uint8Array(0);
|
|
1429
1449
|
} else if (FS.isLink(node.mode)) {
|
|
1430
1450
|
node.node_ops = MEMFS.ops_table.link.node;
|
|
1431
1451
|
node.stream_ops = MEMFS.ops_table.link.stream;
|
|
@@ -1442,42 +1462,34 @@ var MEMFS = {
|
|
|
1442
1462
|
return node;
|
|
1443
1463
|
},
|
|
1444
1464
|
getFileDataAsTypedArray(node) {
|
|
1445
|
-
|
|
1446
|
-
if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes);
|
|
1447
|
-
// Make sure to not return excess unused bytes.
|
|
1448
|
-
return new Uint8Array(node.contents);
|
|
1465
|
+
return node.contents.subarray(0, node.usedBytes);
|
|
1449
1466
|
},
|
|
1450
1467
|
expandFileStorage(node, newCapacity) {
|
|
1451
|
-
var prevCapacity = node.contents
|
|
1468
|
+
var prevCapacity = node.contents.length;
|
|
1452
1469
|
if (prevCapacity >= newCapacity) return;
|
|
1453
1470
|
// No need to expand, the storage was already large enough.
|
|
1454
|
-
// Don't expand strictly to the given requested limit if it's only a very
|
|
1455
|
-
//
|
|
1456
|
-
//
|
|
1471
|
+
// Don't expand strictly to the given requested limit if it's only a very
|
|
1472
|
+
// small increase, but instead geometrically grow capacity.
|
|
1473
|
+
// For small filesizes (<1MB), perform size*2 geometric increase, but for
|
|
1474
|
+
// large sizes, do a much more conservative size*1.125 increase to avoid
|
|
1475
|
+
// overshooting the allocation cap by a very large margin.
|
|
1457
1476
|
var CAPACITY_DOUBLING_MAX = 1024 * 1024;
|
|
1458
1477
|
newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125)) >>> 0);
|
|
1459
|
-
if (prevCapacity
|
|
1478
|
+
if (prevCapacity) newCapacity = Math.max(newCapacity, 256);
|
|
1460
1479
|
// At minimum allocate 256b for each file when expanding.
|
|
1461
|
-
var oldContents = node
|
|
1480
|
+
var oldContents = MEMFS.getFileDataAsTypedArray(node);
|
|
1462
1481
|
node.contents = new Uint8Array(newCapacity);
|
|
1463
1482
|
// Allocate new storage.
|
|
1464
|
-
|
|
1483
|
+
node.contents.set(oldContents);
|
|
1465
1484
|
},
|
|
1466
1485
|
resizeFileStorage(node, newSize) {
|
|
1467
1486
|
if (node.usedBytes == newSize) return;
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
node.contents = new Uint8Array(newSize);
|
|
1475
|
-
// Allocate new storage.
|
|
1476
|
-
if (oldContents) {
|
|
1477
|
-
node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
|
|
1478
|
-
}
|
|
1479
|
-
node.usedBytes = newSize;
|
|
1480
|
-
}
|
|
1487
|
+
var oldContents = node.contents;
|
|
1488
|
+
node.contents = new Uint8Array(newSize);
|
|
1489
|
+
// Allocate new storage.
|
|
1490
|
+
node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
|
|
1491
|
+
// Copy old data over to the new storage.
|
|
1492
|
+
node.usedBytes = newSize;
|
|
1481
1493
|
},
|
|
1482
1494
|
node_ops: {
|
|
1483
1495
|
getattr(node) {
|
|
@@ -1582,12 +1594,7 @@ var MEMFS = {
|
|
|
1582
1594
|
var contents = stream.node.contents;
|
|
1583
1595
|
if (position >= stream.node.usedBytes) return 0;
|
|
1584
1596
|
var size = Math.min(stream.node.usedBytes - position, length);
|
|
1585
|
-
|
|
1586
|
-
// non-trivial, and typed array
|
|
1587
|
-
buffer.set(contents.subarray(position, position + size), offset);
|
|
1588
|
-
} else {
|
|
1589
|
-
for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
|
|
1590
|
-
}
|
|
1597
|
+
buffer.set(contents.subarray(position, position + size), offset);
|
|
1591
1598
|
return size;
|
|
1592
1599
|
},
|
|
1593
1600
|
write(stream, buffer, offset, length, position, canOwn) {
|
|
@@ -1601,34 +1608,19 @@ var MEMFS = {
|
|
|
1601
1608
|
if (!length) return 0;
|
|
1602
1609
|
var node = stream.node;
|
|
1603
1610
|
node.mtime = node.ctime = Date.now();
|
|
1604
|
-
if (
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
node.usedBytes = length;
|
|
1614
|
-
return length;
|
|
1615
|
-
} else if (position + length <= node.usedBytes) {
|
|
1616
|
-
// Writing to an already allocated and used subrange of the file?
|
|
1617
|
-
node.contents.set(buffer.subarray(offset, offset + length), position);
|
|
1618
|
-
return length;
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
// Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
|
|
1622
|
-
MEMFS.expandFileStorage(node, position + length);
|
|
1623
|
-
if (node.contents.subarray && buffer.subarray) {
|
|
1611
|
+
if (canOwn) {
|
|
1612
|
+
node.contents = buffer.subarray(offset, offset + length);
|
|
1613
|
+
node.usedBytes = length;
|
|
1614
|
+
} else if (node.usedBytes === 0 && position === 0) {
|
|
1615
|
+
// If this is a simple first write to an empty file, do a fast set since we don't need to care about old data.
|
|
1616
|
+
node.contents = buffer.slice(offset, offset + length);
|
|
1617
|
+
node.usedBytes = length;
|
|
1618
|
+
} else {
|
|
1619
|
+
MEMFS.expandFileStorage(node, position + length);
|
|
1624
1620
|
// Use typed array write which is available.
|
|
1625
1621
|
node.contents.set(buffer.subarray(offset, offset + length), position);
|
|
1626
|
-
|
|
1627
|
-
for (var i = 0; i < length; i++) {
|
|
1628
|
-
node.contents[position + i] = buffer[offset + i];
|
|
1629
|
-
}
|
|
1622
|
+
node.usedBytes = Math.max(node.usedBytes, position + length);
|
|
1630
1623
|
}
|
|
1631
|
-
node.usedBytes = Math.max(node.usedBytes, position + length);
|
|
1632
1624
|
return length;
|
|
1633
1625
|
},
|
|
1634
1626
|
llseek(stream, offset, whence) {
|
|
@@ -1653,7 +1645,7 @@ var MEMFS = {
|
|
|
1653
1645
|
var allocated;
|
|
1654
1646
|
var contents = stream.node.contents;
|
|
1655
1647
|
// Only make a new copy when MAP_PRIVATE is specified.
|
|
1656
|
-
if (!(flags & 2) && contents
|
|
1648
|
+
if (!(flags & 2) && contents.buffer === HEAP8.buffer) {
|
|
1657
1649
|
// We can't emulate MAP_SHARED when the file is not backed by the
|
|
1658
1650
|
// buffer we're mapping to (e.g. the HEAP buffer).
|
|
1659
1651
|
allocated = false;
|
|
@@ -1690,6 +1682,7 @@ var MEMFS = {
|
|
|
1690
1682
|
};
|
|
1691
1683
|
|
|
1692
1684
|
var FS_modeStringToFlags = str => {
|
|
1685
|
+
if (typeof str != "string") return str;
|
|
1693
1686
|
var flagModes = {
|
|
1694
1687
|
"r": 0,
|
|
1695
1688
|
"r+": 2,
|
|
@@ -1705,6 +1698,16 @@ var FS_modeStringToFlags = str => {
|
|
|
1705
1698
|
return flags;
|
|
1706
1699
|
};
|
|
1707
1700
|
|
|
1701
|
+
var FS_fileDataToTypedArray = data => {
|
|
1702
|
+
if (typeof data == "string") {
|
|
1703
|
+
data = intArrayFromString(data, true);
|
|
1704
|
+
}
|
|
1705
|
+
if (!data.subarray) {
|
|
1706
|
+
data = new Uint8Array(data);
|
|
1707
|
+
}
|
|
1708
|
+
return data;
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1708
1711
|
var FS_getMode = (canRead, canWrite) => {
|
|
1709
1712
|
var mode = 0;
|
|
1710
1713
|
if (canRead) mode |= 292 | 73;
|
|
@@ -2681,7 +2684,7 @@ var FS = {
|
|
|
2681
2684
|
if (path === "") {
|
|
2682
2685
|
throw new FS.ErrnoError(44);
|
|
2683
2686
|
}
|
|
2684
|
-
flags =
|
|
2687
|
+
flags = FS_modeStringToFlags(flags);
|
|
2685
2688
|
if ((flags & 64)) {
|
|
2686
2689
|
mode = (mode & 4095) | 32768;
|
|
2687
2690
|
} else {
|
|
@@ -2913,14 +2916,8 @@ var FS = {
|
|
|
2913
2916
|
writeFile(path, data, opts = {}) {
|
|
2914
2917
|
opts.flags = opts.flags || 577;
|
|
2915
2918
|
var stream = FS.open(path, opts.flags, opts.mode);
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
}
|
|
2919
|
-
if (ArrayBuffer.isView(data)) {
|
|
2920
|
-
FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
|
|
2921
|
-
} else {
|
|
2922
|
-
abort("Unsupported data type");
|
|
2923
|
-
}
|
|
2919
|
+
data = FS_fileDataToTypedArray(data);
|
|
2920
|
+
FS.write(stream, data, 0, data.byteLength, undefined, opts.canOwn);
|
|
2924
2921
|
FS.close(stream);
|
|
2925
2922
|
},
|
|
2926
2923
|
cwd: () => FS.currentPath,
|
|
@@ -3150,11 +3147,7 @@ var FS = {
|
|
|
3150
3147
|
var mode = FS_getMode(canRead, canWrite);
|
|
3151
3148
|
var node = FS.create(path, mode);
|
|
3152
3149
|
if (data) {
|
|
3153
|
-
|
|
3154
|
-
var arr = new Array(data.length);
|
|
3155
|
-
for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
|
|
3156
|
-
data = arr;
|
|
3157
|
-
}
|
|
3150
|
+
data = FS_fileDataToTypedArray(data);
|
|
3158
3151
|
// make sure we can write to the file
|
|
3159
3152
|
FS.chmod(node, mode | 146);
|
|
3160
3153
|
var stream = FS.open(node, 577);
|
|
@@ -4726,7 +4719,7 @@ var WebGPU = {
|
|
|
4726
4719
|
importJsBuffer: (buffer, parentPtr = 0) => {
|
|
4727
4720
|
// At the moment, we do not allow importing pending buffers.
|
|
4728
4721
|
assert(buffer.mapState === "unmapped");
|
|
4729
|
-
var bufferPtr =
|
|
4722
|
+
var bufferPtr = _emwgpuImportBuffer(parentPtr);
|
|
4730
4723
|
WebGPU.Internals.jsObjectInsert(bufferPtr, buffer);
|
|
4731
4724
|
return bufferPtr;
|
|
4732
4725
|
},
|
|
@@ -5218,7 +5211,7 @@ var WebGPU = {
|
|
|
5218
5211
|
ToneMappingMode: [ , "standard", "extended" ],
|
|
5219
5212
|
VertexFormat: [ , "uint8", "uint8x2", "uint8x4", "sint8", "sint8x2", "sint8x4", "unorm8", "unorm8x2", "unorm8x4", "snorm8", "snorm8x2", "snorm8x4", "uint16", "uint16x2", "uint16x4", "sint16", "sint16x2", "sint16x4", "unorm16", "unorm16x2", "unorm16x4", "snorm16", "snorm16x2", "snorm16x4", "float16", "float16x2", "float16x4", "float32", "float32x2", "float32x3", "float32x4", "uint32", "uint32x2", "uint32x3", "uint32x4", "sint32", "sint32x2", "sint32x3", "sint32x4", "unorm10-10-10-2", "unorm8x4-bgra" ],
|
|
5220
5213
|
VertexStepMode: [ , "vertex", "instance" ],
|
|
5221
|
-
WGSLLanguageFeatureName: [ , "readonly_and_readwrite_storage_textures", "packed_4x8_integer_dot_product", "unrestricted_pointer_parameters", "pointer_composite_access", "uniform_buffer_standard_layout", "subgroup_id", "texture_and_sampler_let", "subgroup_uniformity", "texture_formats_tier1" ]
|
|
5214
|
+
WGSLLanguageFeatureName: [ , "readonly_and_readwrite_storage_textures", "packed_4x8_integer_dot_product", "unrestricted_pointer_parameters", "pointer_composite_access", "uniform_buffer_standard_layout", "subgroup_id", "texture_and_sampler_let", "subgroup_uniformity", "texture_formats_tier1", "linear_indexing" ]
|
|
5222
5215
|
};
|
|
5223
5216
|
|
|
5224
5217
|
var _emwgpuBufferDestroy = bufferPtr => {
|
|
@@ -6229,15 +6222,7 @@ var _emscripten_glViewport = (x0, x1, x2, x3) => GLctx.viewport(x0, x1, x2, x3);
|
|
|
6229
6222
|
|
|
6230
6223
|
var _glViewport = _emscripten_glViewport;
|
|
6231
6224
|
|
|
6232
|
-
|
|
6233
|
-
try {
|
|
6234
|
-
randomFill(HEAPU8.subarray(buffer, buffer + size));
|
|
6235
|
-
return 0;
|
|
6236
|
-
} catch (e) {
|
|
6237
|
-
if (typeof FS == "undefined" || !(e.name === "ErrnoError")) throw e;
|
|
6238
|
-
return e.errno;
|
|
6239
|
-
}
|
|
6240
|
-
}
|
|
6225
|
+
var _random_get = (buffer, size) => randomFill(HEAPU8.subarray(buffer, buffer + size));
|
|
6241
6226
|
|
|
6242
6227
|
var _wgpuCommandEncoderCopyTextureToBuffer = (encoderPtr, srcPtr, dstPtr, copySizePtr) => {
|
|
6243
6228
|
var commandEncoder = WebGPU.getJsObject(encoderPtr);
|
|
@@ -6410,7 +6395,7 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
|
|
|
6410
6395
|
// End JS library exports
|
|
6411
6396
|
// end include: postlibrary.js
|
|
6412
6397
|
var ASM_CONSTS = {
|
|
6413
|
-
|
|
6398
|
+
647664: () => {
|
|
6414
6399
|
specialHTMLTargets["#canvas"] = Module.canvas;
|
|
6415
6400
|
}
|
|
6416
6401
|
};
|
|
@@ -6551,7 +6536,7 @@ function custom_emscripten_dbgn(str, len) {
|
|
|
6551
6536
|
}
|
|
6552
6537
|
|
|
6553
6538
|
// Imports from the Wasm binary.
|
|
6554
|
-
var _configureAudio, _addAudioToInputStream, _free, _malloc, _registerModelResourcesGraphService, _bindTextureToStream, _addBoundTextureToStream, _addDoubleToInputStream, _addFloatToInputStream, _addBoolToInputStream, _addIntToInputStream, _addUintToInputStream, _addStringToInputStream, _addRawDataSpanToInputStream, _allocateBoolVector, _allocateFloatVector, _allocateDoubleVector, _allocateIntVector, _allocateUintVector, _allocateStringVector, _addBoolVectorEntry, _addFloatVectorEntry, _addDoubleVectorEntry, _addIntVectorEntry, _addUintVectorEntry, _addStringVectorEntry, _addBoolVectorToInputStream, _addFloatVectorToInputStream, _addDoubleVectorToInputStream, _addIntVectorToInputStream, _addUintVectorToInputStream, _addStringVectorToInputStream, _addFlatHashMapToInputStream, _addProtoToInputStream, _addEmptyPacketToInputStream, _addBoolToInputSidePacket, _addDoubleToInputSidePacket, _addFloatToInputSidePacket, _addIntToInputSidePacket, _addUintToInputSidePacket, _addStringToInputSidePacket, _addRawDataSpanToInputSidePacket, _addProtoToInputSidePacket, _addBoolVectorToInputSidePacket, _addDoubleVectorToInputSidePacket, _addFloatVectorToInputSidePacket, _addIntVectorToInputSidePacket, _addUintVectorToInputSidePacket, _addStringVectorToInputSidePacket, _attachBoolListener, _attachBoolVectorListener, _attachDoubleListener, _attachDoubleVectorListener, _attachFloatListener, _attachFloatVectorListener, _attachIntListener, _attachIntVectorListener, _attachUintListener, _attachUintVectorListener, _attachStringListener, _attachStringVectorListener, _attachProtoListener, _attachProtoVectorListener, _getGraphConfig, _emwgpuCreateBindGroup, _emwgpuCreateBindGroupLayout, _emwgpuCreateCommandBuffer, _emwgpuCreateCommandEncoder, _emwgpuCreateComputePassEncoder, _emwgpuCreateComputePipeline, _emwgpuCreateExternalTexture, _emwgpuCreatePipelineLayout, _emwgpuCreateQuerySet, _emwgpuCreateRenderBundle, _emwgpuCreateRenderBundleEncoder, _emwgpuCreateRenderPassEncoder, _emwgpuCreateRenderPipeline, _emwgpuCreateSampler, _emwgpuCreateSurface, _emwgpuCreateTexture, _emwgpuCreateTextureView, _emwgpuCreateAdapter,
|
|
6539
|
+
var _configureAudio, _addAudioToInputStream, _free, _malloc, _registerModelResourcesGraphService, _bindTextureToStream, _addBoundTextureToStream, _addDoubleToInputStream, _addFloatToInputStream, _addBoolToInputStream, _addIntToInputStream, _addUintToInputStream, _addStringToInputStream, _addRawDataSpanToInputStream, _allocateBoolVector, _allocateFloatVector, _allocateDoubleVector, _allocateIntVector, _allocateUintVector, _allocateStringVector, _addBoolVectorEntry, _addFloatVectorEntry, _addDoubleVectorEntry, _addIntVectorEntry, _addUintVectorEntry, _addStringVectorEntry, _addBoolVectorToInputStream, _addFloatVectorToInputStream, _addDoubleVectorToInputStream, _addIntVectorToInputStream, _addUintVectorToInputStream, _addStringVectorToInputStream, _addFlatHashMapToInputStream, _addProtoToInputStream, _addEmptyPacketToInputStream, _addBoolToInputSidePacket, _addDoubleToInputSidePacket, _addFloatToInputSidePacket, _addIntToInputSidePacket, _addUintToInputSidePacket, _addStringToInputSidePacket, _addRawDataSpanToInputSidePacket, _addProtoToInputSidePacket, _addBoolVectorToInputSidePacket, _addDoubleVectorToInputSidePacket, _addFloatVectorToInputSidePacket, _addIntVectorToInputSidePacket, _addUintVectorToInputSidePacket, _addStringVectorToInputSidePacket, _attachBoolListener, _attachBoolVectorListener, _attachDoubleListener, _attachDoubleVectorListener, _attachFloatListener, _attachFloatVectorListener, _attachIntListener, _attachIntVectorListener, _attachUintListener, _attachUintVectorListener, _attachStringListener, _attachStringVectorListener, _attachProtoListener, _attachProtoVectorListener, _getGraphConfig, _emwgpuCreateBindGroup, _emwgpuCreateBindGroupLayout, _emwgpuCreateCommandBuffer, _emwgpuCreateCommandEncoder, _emwgpuCreateComputePassEncoder, _emwgpuCreateComputePipeline, _emwgpuCreateExternalTexture, _emwgpuCreatePipelineLayout, _emwgpuCreateQuerySet, _emwgpuCreateRenderBundle, _emwgpuCreateRenderBundleEncoder, _emwgpuCreateRenderPassEncoder, _emwgpuCreateRenderPipeline, _emwgpuCreateSampler, _emwgpuCreateSurface, _emwgpuCreateTexture, _emwgpuCreateTextureView, _emwgpuCreateAdapter, _emwgpuImportBuffer, _emwgpuCreateDevice, _emwgpuCreateQueue, _emwgpuCreateShaderModule, _clearSubgraphs, _pushBinarySubgraph, _pushTextSubgraph, _changeBinaryGraph, _changeTextGraph, _processGl, _process, _bindTextureToCanvas, _requestShaderRefreshOnGraphChange, _waitUntilIdle, _closeGraph, _setAutoRenderToScreen, _emscripten_builtin_memalign, __emscripten_tempret_set, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, dynCall_ji, dynCall_jii, dynCall_iiiijij, dynCall_viji, dynCall_iiiji, dynCall_jjj, dynCall_iiiijj, dynCall_viijj, dynCall_viiijjj, dynCall_vij, dynCall_viiiji, dynCall_viiji, dynCall_viijii, dynCall_vijjj, dynCall_vj, dynCall_viij, dynCall_jiji, dynCall_iiiiij, dynCall_iiiiijj, dynCall_iiiiiijj, memory, _kVersionStampBuildChangelistStr, _kVersionStampCitcSnapshotStr, _kVersionStampCitcWorkspaceIdStr, _kVersionStampSourceUriStr, _kVersionStampBuildClientStr, _kVersionStampBuildClientMintStatusStr, _kVersionStampBuildCompilerStr, _kVersionStampBuildDateTimePstStr, _kVersionStampBuildDepotPathStr, _kVersionStampBuildIdStr, _kVersionStampBuildInfoStr, _kVersionStampBuildLabelStr, _kVersionStampBuildTargetStr, _kVersionStampBuildTimestampStr, _kVersionStampBuildToolStr, _kVersionStampG3BuildTargetStr, _kVersionStampVerifiableStr, _kVersionStampBuildFdoTypeStr, _kVersionStampBuildBaselineChangelistStr, _kVersionStampBuildLtoTypeStr, _kVersionStampBuildPropellerTypeStr, _kVersionStampBuildPghoTypeStr, _kVersionStampBuildUsernameStr, _kVersionStampBuildHostnameStr, _kVersionStampBuildDirectoryStr, _kVersionStampBuildChangelistInt, _kVersionStampCitcSnapshotInt, _kVersionStampBuildClientMintStatusInt, _kVersionStampBuildTimestampInt, _kVersionStampVerifiableInt, _kVersionStampBuildCoverageEnabledInt, _kVersionStampBuildBaselineChangelistInt, _kVersionStampPrecookedTimestampStr, _kVersionStampPrecookedClientInfoStr, __indirect_function_table, wasmMemory, wasmTable;
|
|
6555
6540
|
|
|
6556
6541
|
function assignWasmExports(wasmExports) {
|
|
6557
6542
|
_configureAudio = Module["_configureAudio"] = wasmExports["Rb"];
|
|
@@ -6636,7 +6621,7 @@ function assignWasmExports(wasmExports) {
|
|
|
6636
6621
|
_emwgpuCreateTexture = wasmExports["pd"];
|
|
6637
6622
|
_emwgpuCreateTextureView = wasmExports["qd"];
|
|
6638
6623
|
_emwgpuCreateAdapter = wasmExports["rd"];
|
|
6639
|
-
|
|
6624
|
+
_emwgpuImportBuffer = wasmExports["sd"];
|
|
6640
6625
|
_emwgpuCreateDevice = wasmExports["td"];
|
|
6641
6626
|
_emwgpuCreateQueue = wasmExports["ud"];
|
|
6642
6627
|
_emwgpuCreateShaderModule = wasmExports["vd"];
|
|
@@ -6667,9 +6652,9 @@ function assignWasmExports(wasmExports) {
|
|
|
6667
6652
|
dynCall_viijj = wasmExports["dynCall_viijj"];
|
|
6668
6653
|
dynCall_viiijjj = wasmExports["dynCall_viiijjj"];
|
|
6669
6654
|
dynCall_vij = wasmExports["dynCall_vij"];
|
|
6670
|
-
dynCall_viijii = wasmExports["dynCall_viijii"];
|
|
6671
6655
|
dynCall_viiiji = wasmExports["dynCall_viiiji"];
|
|
6672
6656
|
dynCall_viiji = wasmExports["dynCall_viiji"];
|
|
6657
|
+
dynCall_viijii = wasmExports["dynCall_viijii"];
|
|
6673
6658
|
dynCall_vijjj = wasmExports["dynCall_vijjj"];
|
|
6674
6659
|
dynCall_vj = wasmExports["dynCall_vj"];
|
|
6675
6660
|
dynCall_viij = wasmExports["dynCall_viij"];
|
|
@@ -6717,7 +6702,7 @@ function assignWasmExports(wasmExports) {
|
|
|
6717
6702
|
|
|
6718
6703
|
var wasmImports = {
|
|
6719
6704
|
/** @export */ gb: JsOnEmptyPacketListener,
|
|
6720
|
-
/** @export */
|
|
6705
|
+
/** @export */ S: JsOnSimpleListenerBinaryArray,
|
|
6721
6706
|
/** @export */ fb: JsOnSimpleListenerBool,
|
|
6722
6707
|
/** @export */ eb: JsOnSimpleListenerDouble,
|
|
6723
6708
|
/** @export */ db: JsOnSimpleListenerFloat,
|
|
@@ -6734,36 +6719,36 @@ var wasmImports = {
|
|
|
6734
6719
|
/** @export */ Va: JsOnVectorListenerUint,
|
|
6735
6720
|
/** @export */ x: JsWrapErrorListener,
|
|
6736
6721
|
/** @export */ a: JsWrapSimpleListeners,
|
|
6737
|
-
/** @export */
|
|
6738
|
-
/** @export */
|
|
6722
|
+
/** @export */ R: UseBottomLeftGpuOrigin,
|
|
6723
|
+
/** @export */ Z: __asyncjs__mediapipe_map_buffer_jspi,
|
|
6739
6724
|
/** @export */ Ua: ___syscall_dup,
|
|
6740
6725
|
/** @export */ Ta: ___syscall_faccessat,
|
|
6741
|
-
/** @export */
|
|
6726
|
+
/** @export */ Q: ___syscall_fcntl64,
|
|
6742
6727
|
/** @export */ Sa: ___syscall_fstat64,
|
|
6743
|
-
/** @export */
|
|
6728
|
+
/** @export */ fa: ___syscall_ftruncate64,
|
|
6744
6729
|
/** @export */ Ra: ___syscall_ioctl,
|
|
6745
6730
|
/** @export */ Qa: ___syscall_lstat64,
|
|
6746
6731
|
/** @export */ Pa: ___syscall_newfstatat,
|
|
6747
|
-
/** @export */
|
|
6732
|
+
/** @export */ P: ___syscall_openat,
|
|
6748
6733
|
/** @export */ Oa: ___syscall_stat64,
|
|
6749
6734
|
/** @export */ Ja: __abort_js,
|
|
6750
|
-
/** @export */
|
|
6751
|
-
/** @export */
|
|
6752
|
-
/** @export */
|
|
6753
|
-
/** @export */
|
|
6754
|
-
/** @export */
|
|
6735
|
+
/** @export */ ca: __gmtime_js,
|
|
6736
|
+
/** @export */ ba: __localtime_js,
|
|
6737
|
+
/** @export */ aa: __mktime_js,
|
|
6738
|
+
/** @export */ $: __mmap_js,
|
|
6739
|
+
/** @export */ _: __munmap_js,
|
|
6755
6740
|
/** @export */ Ia: __tzset_js,
|
|
6756
|
-
/** @export */
|
|
6741
|
+
/** @export */ ea: _clock_time_get,
|
|
6757
6742
|
/** @export */ Ha: custom_emscripten_dbgn,
|
|
6758
6743
|
/** @export */ Ga: _emscripten_asm_const_int,
|
|
6759
6744
|
/** @export */ u: _emscripten_errn,
|
|
6760
6745
|
/** @export */ Fa: _emscripten_get_heap_max,
|
|
6761
6746
|
/** @export */ b: _emscripten_get_now,
|
|
6762
|
-
/** @export */
|
|
6747
|
+
/** @export */ N: _emscripten_has_asyncify,
|
|
6763
6748
|
/** @export */ Ea: _emscripten_outn,
|
|
6764
6749
|
/** @export */ Da: _emscripten_pc_get_function,
|
|
6765
6750
|
/** @export */ Ca: _emscripten_resize_heap,
|
|
6766
|
-
/** @export */
|
|
6751
|
+
/** @export */ M: _emscripten_stack_snapshot,
|
|
6767
6752
|
/** @export */ Ba: _emscripten_stack_unwind_buffer,
|
|
6768
6753
|
/** @export */ Aa: _emscripten_webgl_create_context,
|
|
6769
6754
|
/** @export */ za: _emscripten_webgl_destroy_context,
|
|
@@ -6776,61 +6761,61 @@ var wasmImports = {
|
|
|
6776
6761
|
/** @export */ ua: _emwgpuDeviceDestroy,
|
|
6777
6762
|
/** @export */ Na: _environ_get,
|
|
6778
6763
|
/** @export */ Ma: _environ_sizes_get,
|
|
6779
|
-
/** @export */
|
|
6764
|
+
/** @export */ L: _exit,
|
|
6780
6765
|
/** @export */ w: _fd_close,
|
|
6781
|
-
/** @export */
|
|
6782
|
-
/** @export */
|
|
6766
|
+
/** @export */ O: _fd_read,
|
|
6767
|
+
/** @export */ da: _fd_seek,
|
|
6783
6768
|
/** @export */ v: _fd_write,
|
|
6784
6769
|
/** @export */ t: _glActiveTexture,
|
|
6785
6770
|
/** @export */ K: _glAttachShader,
|
|
6786
|
-
/** @export */
|
|
6771
|
+
/** @export */ ta: _glBindAttribLocation,
|
|
6787
6772
|
/** @export */ f: _glBindBuffer,
|
|
6788
6773
|
/** @export */ m: _glBindFramebuffer,
|
|
6789
6774
|
/** @export */ e: _glBindTexture,
|
|
6790
6775
|
/** @export */ s: _glBufferData,
|
|
6791
6776
|
/** @export */ h: _glClientWaitSync,
|
|
6792
|
-
/** @export */
|
|
6793
|
-
/** @export */
|
|
6794
|
-
/** @export */
|
|
6777
|
+
/** @export */ sa: _glCompileShader,
|
|
6778
|
+
/** @export */ ra: _glCreateProgram,
|
|
6779
|
+
/** @export */ qa: _glCreateShader,
|
|
6795
6780
|
/** @export */ J: _glDeleteFramebuffers,
|
|
6796
|
-
/** @export */
|
|
6781
|
+
/** @export */ pa: _glDeleteProgram,
|
|
6797
6782
|
/** @export */ I: _glDeleteShader,
|
|
6798
6783
|
/** @export */ l: _glDeleteSync,
|
|
6799
6784
|
/** @export */ H: _glDeleteTextures,
|
|
6800
6785
|
/** @export */ G: _glDetachShader,
|
|
6801
6786
|
/** @export */ F: _glDisableVertexAttribArray,
|
|
6802
|
-
/** @export */
|
|
6787
|
+
/** @export */ oa: _glDrawArrays,
|
|
6803
6788
|
/** @export */ E: _glEnableVertexAttribArray,
|
|
6804
6789
|
/** @export */ D: _glFenceSync,
|
|
6805
6790
|
/** @export */ k: _glFinish,
|
|
6806
6791
|
/** @export */ r: _glFramebufferTexture2D,
|
|
6807
6792
|
/** @export */ C: _glGenBuffers,
|
|
6808
|
-
/** @export */
|
|
6793
|
+
/** @export */ na: _glGenFramebuffers,
|
|
6809
6794
|
/** @export */ q: _glGenTextures,
|
|
6810
6795
|
/** @export */ j: _glGetError,
|
|
6811
6796
|
/** @export */ B: _glGetIntegerv,
|
|
6812
6797
|
/** @export */ p: _glGetString,
|
|
6813
|
-
/** @export */
|
|
6814
|
-
/** @export */
|
|
6798
|
+
/** @export */ ma: _glGetUniformLocation,
|
|
6799
|
+
/** @export */ la: _glLinkProgram,
|
|
6815
6800
|
/** @export */ o: _glPixelStorei,
|
|
6816
6801
|
/** @export */ A: _glReadPixels,
|
|
6817
|
-
/** @export */
|
|
6818
|
-
/** @export */
|
|
6802
|
+
/** @export */ ka: _glShaderSource,
|
|
6803
|
+
/** @export */ ja: _glTexImage2D,
|
|
6819
6804
|
/** @export */ d: _glTexParameteri,
|
|
6820
6805
|
/** @export */ z: _glTexStorage2D,
|
|
6821
|
-
/** @export */
|
|
6822
|
-
/** @export */
|
|
6806
|
+
/** @export */ ia: _glUniform1i,
|
|
6807
|
+
/** @export */ ha: _glUseProgram,
|
|
6823
6808
|
/** @export */ y: _glVertexAttribPointer,
|
|
6824
|
-
/** @export */
|
|
6809
|
+
/** @export */ ga: _glViewport,
|
|
6825
6810
|
/** @export */ n: hardware_concurrency,
|
|
6826
6811
|
/** @export */ La: _proc_exit,
|
|
6827
6812
|
/** @export */ Ka: _random_get,
|
|
6828
|
-
/** @export */
|
|
6829
|
-
/** @export */
|
|
6830
|
-
/** @export */
|
|
6831
|
-
/** @export */
|
|
6832
|
-
/** @export */
|
|
6833
|
-
/** @export */
|
|
6813
|
+
/** @export */ Y: _wgpuCommandEncoderCopyTextureToBuffer,
|
|
6814
|
+
/** @export */ X: _wgpuCommandEncoderFinish,
|
|
6815
|
+
/** @export */ W: _wgpuDeviceCreateCommandEncoder,
|
|
6816
|
+
/** @export */ V: _wgpuQueueSubmit,
|
|
6817
|
+
/** @export */ U: _wgpuTextureDestroy,
|
|
6818
|
+
/** @export */ T: _wgpuTextureGetFormat
|
|
6834
6819
|
};
|
|
6835
6820
|
|
|
6836
6821
|
// include: postamble.js
|
|
@@ -6896,5 +6881,5 @@ if (runtimeInitialized) {
|
|
|
6896
6881
|
}
|
|
6897
6882
|
|
|
6898
6883
|
// Export using a UMD style export, or ES6 exports if selected
|
|
6899
|
-
export default ModuleFactory;
|
|
6884
|
+
globalThis.ModuleFactory = ModuleFactory; globalThis.custom_dbg = console.warn.bind(console); export default ModuleFactory;
|
|
6900
6885
|
|
|
Binary file
|