@mediapipe/tasks-vision 0.1.0-alpha-1 → 0.1.0-alpha-3
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/README.md +78 -0
- package/package.json +1 -1
- package/vision.d.ts +97 -1219
- package/vision_bundle.js +1 -1
- package/wasm/vision_wasm_internal.js +96 -87
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +96 -87
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Build 502698517
|
|
1
2
|
|
|
2
3
|
var ModuleFactory = (() => {
|
|
3
4
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
@@ -49,18 +50,15 @@ function logExceptionOnExit(e) {
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
if (ENVIRONMENT_IS_NODE) {
|
|
53
|
+
var fs = require("fs");
|
|
54
|
+
var nodePath = require("path");
|
|
52
55
|
if (ENVIRONMENT_IS_WORKER) {
|
|
53
|
-
scriptDirectory =
|
|
56
|
+
scriptDirectory = nodePath.dirname(scriptDirectory) + "/";
|
|
54
57
|
} else {
|
|
55
58
|
scriptDirectory = __dirname + "/";
|
|
56
59
|
}
|
|
57
|
-
var fs, nodePath;
|
|
58
|
-
if (typeof require === "function") {
|
|
59
|
-
fs = require("fs");
|
|
60
|
-
nodePath = require("path");
|
|
61
|
-
}
|
|
62
60
|
read_ = (filename, binary) => {
|
|
63
|
-
filename = nodePath
|
|
61
|
+
filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
|
|
64
62
|
return fs.readFileSync(filename, binary ? undefined : "utf8");
|
|
65
63
|
};
|
|
66
64
|
readBinary = filename => {
|
|
@@ -71,7 +69,7 @@ if (ENVIRONMENT_IS_NODE) {
|
|
|
71
69
|
return ret;
|
|
72
70
|
};
|
|
73
71
|
readAsync = (filename, onload, onerror) => {
|
|
74
|
-
filename = nodePath
|
|
72
|
+
filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
|
|
75
73
|
fs.readFile(filename, function(err, data) {
|
|
76
74
|
if (err) onerror(err); else onload(data.buffer);
|
|
77
75
|
});
|
|
@@ -388,10 +386,8 @@ function removeRunDependency(id) {
|
|
|
388
386
|
}
|
|
389
387
|
|
|
390
388
|
function abort(what) {
|
|
391
|
-
{
|
|
392
|
-
|
|
393
|
-
Module["onAbort"](what);
|
|
394
|
-
}
|
|
389
|
+
if (Module["onAbort"]) {
|
|
390
|
+
Module["onAbort"](what);
|
|
395
391
|
}
|
|
396
392
|
what = "Aborted(" + what + ")";
|
|
397
393
|
err(what);
|
|
@@ -524,12 +520,12 @@ var tempDouble;
|
|
|
524
520
|
var tempI64;
|
|
525
521
|
|
|
526
522
|
var ASM_CONSTS = {
|
|
527
|
-
|
|
523
|
+
854293: $0 => {
|
|
528
524
|
const canvas = Emval.toValue($0);
|
|
529
525
|
const context = canvas.getContext("webgpu");
|
|
530
526
|
return JsValStore.add(context.getCurrentTexture());
|
|
531
527
|
},
|
|
532
|
-
|
|
528
|
+
854428: ($0, $1, $2, $3, $4) => {
|
|
533
529
|
const drawable = Emval.toValue($0);
|
|
534
530
|
const device = JsValStore.get($1);
|
|
535
531
|
const texture = JsValStore.get($2);
|
|
@@ -541,7 +537,7 @@ var ASM_CONSTS = {
|
|
|
541
537
|
texture: texture
|
|
542
538
|
}, [ width, height ]);
|
|
543
539
|
},
|
|
544
|
-
|
|
540
|
+
854679: ($0, $1, $2, $3) => {
|
|
545
541
|
const sourceExtTex = Emval.toValue($0);
|
|
546
542
|
const device = JsValStore.get($1);
|
|
547
543
|
const sampler = JsValStore.get($2);
|
|
@@ -558,30 +554,30 @@ var ASM_CONSTS = {
|
|
|
558
554
|
});
|
|
559
555
|
return JsValStore.add(bindGroup);
|
|
560
556
|
},
|
|
561
|
-
|
|
557
|
+
855027: ($0, $1) => {
|
|
562
558
|
const inputArray = Emval.toValue($0);
|
|
563
559
|
const output = Emval.toValue($1);
|
|
564
560
|
const ctx = output.getContext("2d");
|
|
565
561
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
566
562
|
ctx.putImageData(image_data, 0, 0);
|
|
567
563
|
},
|
|
568
|
-
|
|
564
|
+
855251: ($0, $1) => {
|
|
569
565
|
const input = Emval.toValue($0);
|
|
570
566
|
const outputArray = Emval.toValue($1);
|
|
571
567
|
const ctx = input.getContext("2d");
|
|
572
568
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
573
569
|
outputArray.set(data.data);
|
|
574
570
|
},
|
|
575
|
-
|
|
571
|
+
855455: ($0, $1) => {
|
|
576
572
|
const input = Emval.toValue($0);
|
|
577
573
|
const output = Emval.toValue($1);
|
|
578
574
|
const ctx = output.getContext("2d");
|
|
579
575
|
ctx.drawImage(input, 0, 0);
|
|
580
576
|
},
|
|
581
|
-
|
|
577
|
+
855591: () => {
|
|
582
578
|
return !!Module["preinitializedWebGPUDevice"];
|
|
583
579
|
},
|
|
584
|
-
|
|
580
|
+
855642: () => {
|
|
585
581
|
let init_once = true;
|
|
586
582
|
if (init_once) {
|
|
587
583
|
const cachedFindCanvasEventTarget = findCanvasEventTarget;
|
|
@@ -607,85 +603,85 @@ var ASM_CONSTS = {
|
|
|
607
603
|
init_once = false;
|
|
608
604
|
}
|
|
609
605
|
},
|
|
610
|
-
|
|
606
|
+
856427: () => {
|
|
611
607
|
return typeof wasmOffsetConverter !== "undefined";
|
|
612
608
|
}
|
|
613
609
|
};
|
|
614
610
|
|
|
615
611
|
function JsWrapVectorListeners() {
|
|
616
612
|
if (!Module._wrapVectorListenerOutput) {
|
|
617
|
-
Module._wrapVectorListenerOutput = (outputStreamName, outData, index, length) => {
|
|
613
|
+
Module._wrapVectorListenerOutput = (outputStreamName, outData, index, length, timestamp) => {
|
|
618
614
|
if (Module.vectorListeners) {
|
|
619
615
|
const streamName = UTF8ToString(outputStreamName);
|
|
620
616
|
if (Module.vectorListeners[streamName]) {
|
|
621
|
-
Module.vectorListeners[streamName](outData, index, length);
|
|
617
|
+
Module.vectorListeners[streamName](outData, index, length, timestamp);
|
|
622
618
|
}
|
|
623
619
|
}
|
|
624
620
|
};
|
|
625
621
|
}
|
|
626
622
|
}
|
|
627
623
|
|
|
628
|
-
function JsOnSimpleListenerBool(output_stream_name, out_data) {
|
|
629
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data);
|
|
624
|
+
function JsOnSimpleListenerBool(output_stream_name, out_data, timestamp) {
|
|
625
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
630
626
|
}
|
|
631
627
|
|
|
632
|
-
function JsOnVectorListenerBool(output_stream_name, out_data, index, length) {
|
|
633
|
-
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length);
|
|
628
|
+
function JsOnVectorListenerBool(output_stream_name, out_data, index, length, timestamp) {
|
|
629
|
+
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length, timestamp);
|
|
634
630
|
}
|
|
635
631
|
|
|
636
|
-
function JsOnSimpleListenerInt(output_stream_name, out_data) {
|
|
637
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data);
|
|
632
|
+
function JsOnSimpleListenerInt(output_stream_name, out_data, timestamp) {
|
|
633
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
638
634
|
}
|
|
639
635
|
|
|
640
|
-
function JsOnVectorListenerInt(output_stream_name, out_data, index, length) {
|
|
641
|
-
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length);
|
|
636
|
+
function JsOnVectorListenerInt(output_stream_name, out_data, index, length, timestamp) {
|
|
637
|
+
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length, timestamp);
|
|
642
638
|
}
|
|
643
639
|
|
|
644
|
-
function JsOnSimpleListenerDouble(output_stream_name, out_data) {
|
|
645
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data);
|
|
640
|
+
function JsOnSimpleListenerDouble(output_stream_name, out_data, timestamp) {
|
|
641
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
646
642
|
}
|
|
647
643
|
|
|
648
|
-
function JsOnVectorListenerDouble(output_stream_name, out_data, index, length) {
|
|
649
|
-
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length);
|
|
644
|
+
function JsOnVectorListenerDouble(output_stream_name, out_data, index, length, timestamp) {
|
|
645
|
+
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length, timestamp);
|
|
650
646
|
}
|
|
651
647
|
|
|
652
|
-
function JsOnSimpleListenerFloat(output_stream_name, out_data) {
|
|
653
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data);
|
|
648
|
+
function JsOnSimpleListenerFloat(output_stream_name, out_data, timestamp) {
|
|
649
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
654
650
|
}
|
|
655
651
|
|
|
656
|
-
function JsOnVectorListenerFloat(output_stream_name, out_data, index, length) {
|
|
657
|
-
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length);
|
|
652
|
+
function JsOnVectorListenerFloat(output_stream_name, out_data, index, length, timestamp) {
|
|
653
|
+
Module._wrapVectorListenerOutput(output_stream_name, out_data, index, length, timestamp);
|
|
658
654
|
}
|
|
659
655
|
|
|
660
|
-
function JsOnSimpleListenerString(output_stream_name, out_data) {
|
|
661
|
-
Module._wrapSimpleListenerOutput(output_stream_name, UTF8ToString(out_data));
|
|
656
|
+
function JsOnSimpleListenerString(output_stream_name, out_data, timestamp) {
|
|
657
|
+
Module._wrapSimpleListenerOutput(output_stream_name, UTF8ToString(out_data), timestamp);
|
|
662
658
|
}
|
|
663
659
|
|
|
664
|
-
function JsOnVectorListenerString(output_stream_name, out_data, index, length) {
|
|
665
|
-
Module._wrapVectorListenerOutput(output_stream_name, UTF8ToString(out_data), index, length);
|
|
660
|
+
function JsOnVectorListenerString(output_stream_name, out_data, index, length, timestamp) {
|
|
661
|
+
Module._wrapVectorListenerOutput(output_stream_name, UTF8ToString(out_data), index, length, timestamp);
|
|
666
662
|
}
|
|
667
663
|
|
|
668
|
-
function JsOnVectorListenerProto(output_stream_name, proto_ptr, proto_size, make_deep_copy, index, length) {
|
|
664
|
+
function JsOnVectorListenerProto(output_stream_name, proto_ptr, proto_size, make_deep_copy, index, length, timestamp) {
|
|
669
665
|
const newProtoArray = make_deep_copy ? Module.HEAPU8.slice(proto_ptr, proto_ptr + proto_size) : new Uint8Array(Module.HEAPU8.buffer, proto_ptr, proto_size);
|
|
670
|
-
Module._wrapVectorListenerOutput(output_stream_name, newProtoArray, index, length);
|
|
666
|
+
Module._wrapVectorListenerOutput(output_stream_name, newProtoArray, index, length, timestamp);
|
|
671
667
|
}
|
|
672
668
|
|
|
673
669
|
function JsWrapSimpleListeners() {
|
|
674
670
|
if (!Module._wrapSimpleListenerOutput) {
|
|
675
|
-
Module._wrapSimpleListenerOutput = (outputStreamName, outData) => {
|
|
671
|
+
Module._wrapSimpleListenerOutput = (outputStreamName, outData, timestamp) => {
|
|
676
672
|
if (Module.simpleListeners) {
|
|
677
673
|
const streamName = UTF8ToString(outputStreamName);
|
|
678
674
|
if (Module.simpleListeners[streamName]) {
|
|
679
|
-
Module.simpleListeners[streamName](outData);
|
|
675
|
+
Module.simpleListeners[streamName](outData, timestamp);
|
|
680
676
|
}
|
|
681
677
|
}
|
|
682
678
|
};
|
|
683
679
|
}
|
|
684
680
|
}
|
|
685
681
|
|
|
686
|
-
function JsOnSimpleListenerBinaryArray(output_stream_name, binary_ptr, binary_size, make_deep_copy) {
|
|
682
|
+
function JsOnSimpleListenerBinaryArray(output_stream_name, binary_ptr, binary_size, make_deep_copy, timestamp) {
|
|
687
683
|
const newProtoArray = make_deep_copy ? Module.HEAPU8.slice(binary_ptr, binary_ptr + binary_size) : new Uint8Array(Module.HEAPU8.buffer, binary_ptr, binary_size);
|
|
688
|
-
Module._wrapSimpleListenerOutput(output_stream_name, newProtoArray);
|
|
684
|
+
Module._wrapSimpleListenerOutput(output_stream_name, newProtoArray, timestamp);
|
|
689
685
|
}
|
|
690
686
|
|
|
691
687
|
function mediapipe_import_external_texture(device_handle, source_handle) {
|
|
@@ -1410,7 +1406,7 @@ var FS = {
|
|
|
1410
1406
|
filesystems: null,
|
|
1411
1407
|
syncFSRequests: 0,
|
|
1412
1408
|
lookupPath: (path, opts = {}) => {
|
|
1413
|
-
path = PATH_FS.resolve(
|
|
1409
|
+
path = PATH_FS.resolve(path);
|
|
1414
1410
|
if (!path) return {
|
|
1415
1411
|
path: "",
|
|
1416
1412
|
node: null
|
|
@@ -1423,7 +1419,7 @@ var FS = {
|
|
|
1423
1419
|
if (opts.recurse_count > 8) {
|
|
1424
1420
|
throw new FS.ErrnoError(32);
|
|
1425
1421
|
}
|
|
1426
|
-
var parts =
|
|
1422
|
+
var parts = path.split("/").filter(p => !!p);
|
|
1427
1423
|
var current = FS.root;
|
|
1428
1424
|
var current_path = "/";
|
|
1429
1425
|
for (var i = 0; i < parts.length; i++) {
|
|
@@ -3931,7 +3927,7 @@ function ___syscall_newfstatat(dirfd, path, buf, flags) {
|
|
|
3931
3927
|
path = SYSCALLS.getStr(path);
|
|
3932
3928
|
var nofollow = flags & 256;
|
|
3933
3929
|
var allowEmpty = flags & 4096;
|
|
3934
|
-
flags = flags & ~
|
|
3930
|
+
flags = flags & ~6400;
|
|
3935
3931
|
path = SYSCALLS.calculateAt(dirfd, path, allowEmpty);
|
|
3936
3932
|
return SYSCALLS.doStat(nofollow ? FS.lstat : FS.stat, path, buf);
|
|
3937
3933
|
} catch (e) {
|
|
@@ -4737,6 +4733,21 @@ function __gmtime_js(time, tmPtr) {
|
|
|
4737
4733
|
HEAP32[tmPtr + 28 >> 2] = yday;
|
|
4738
4734
|
}
|
|
4739
4735
|
|
|
4736
|
+
function __isLeapYear(year) {
|
|
4737
|
+
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
4738
|
+
}
|
|
4739
|
+
|
|
4740
|
+
var __MONTH_DAYS_LEAP_CUMULATIVE = [ 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335 ];
|
|
4741
|
+
|
|
4742
|
+
var __MONTH_DAYS_REGULAR_CUMULATIVE = [ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 ];
|
|
4743
|
+
|
|
4744
|
+
function __yday_from_date(date) {
|
|
4745
|
+
var isLeapYear = __isLeapYear(date.getFullYear());
|
|
4746
|
+
var monthDaysCumulative = isLeapYear ? __MONTH_DAYS_LEAP_CUMULATIVE : __MONTH_DAYS_REGULAR_CUMULATIVE;
|
|
4747
|
+
var yday = monthDaysCumulative[date.getMonth()] + date.getDate() - 1;
|
|
4748
|
+
return yday;
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4740
4751
|
function __localtime_js(time, tmPtr) {
|
|
4741
4752
|
var date = new Date(readI53FromI64(time) * 1e3);
|
|
4742
4753
|
HEAP32[tmPtr >> 2] = date.getSeconds();
|
|
@@ -4746,10 +4757,10 @@ function __localtime_js(time, tmPtr) {
|
|
|
4746
4757
|
HEAP32[tmPtr + 16 >> 2] = date.getMonth();
|
|
4747
4758
|
HEAP32[tmPtr + 20 >> 2] = date.getFullYear() - 1900;
|
|
4748
4759
|
HEAP32[tmPtr + 24 >> 2] = date.getDay();
|
|
4749
|
-
var
|
|
4750
|
-
var yday = (date.getTime() - start.getTime()) / (1e3 * 60 * 60 * 24) | 0;
|
|
4760
|
+
var yday = __yday_from_date(date) | 0;
|
|
4751
4761
|
HEAP32[tmPtr + 28 >> 2] = yday;
|
|
4752
4762
|
HEAP32[tmPtr + 36 >> 2] = -(date.getTimezoneOffset() * 60);
|
|
4763
|
+
var start = new Date(date.getFullYear(), 0, 1);
|
|
4753
4764
|
var summerOffset = new Date(date.getFullYear(), 6, 1).getTimezoneOffset();
|
|
4754
4765
|
var winterOffset = start.getTimezoneOffset();
|
|
4755
4766
|
var dst = (summerOffset != winterOffset && date.getTimezoneOffset() == Math.min(winterOffset, summerOffset)) | 0;
|
|
@@ -4772,7 +4783,7 @@ function __mktime_js(tmPtr) {
|
|
|
4772
4783
|
date.setTime(date.getTime() + (trueOffset - guessedOffset) * 6e4);
|
|
4773
4784
|
}
|
|
4774
4785
|
HEAP32[tmPtr + 24 >> 2] = date.getDay();
|
|
4775
|
-
var yday = (date
|
|
4786
|
+
var yday = __yday_from_date(date) | 0;
|
|
4776
4787
|
HEAP32[tmPtr + 28 >> 2] = yday;
|
|
4777
4788
|
HEAP32[tmPtr >> 2] = date.getSeconds();
|
|
4778
4789
|
HEAP32[tmPtr + 4 >> 2] = date.getMinutes();
|
|
@@ -4817,14 +4828,14 @@ function allocateUTF8(str) {
|
|
|
4817
4828
|
return ret;
|
|
4818
4829
|
}
|
|
4819
4830
|
|
|
4820
|
-
function
|
|
4831
|
+
function __tzset_js(timezone, daylight, tzname) {
|
|
4821
4832
|
var currentYear = new Date().getFullYear();
|
|
4822
4833
|
var winter = new Date(currentYear, 0, 1);
|
|
4823
4834
|
var summer = new Date(currentYear, 6, 1);
|
|
4824
4835
|
var winterOffset = winter.getTimezoneOffset();
|
|
4825
4836
|
var summerOffset = summer.getTimezoneOffset();
|
|
4826
4837
|
var stdTimezoneOffset = Math.max(winterOffset, summerOffset);
|
|
4827
|
-
|
|
4838
|
+
HEAPU32[timezone >> 2] = stdTimezoneOffset * 60;
|
|
4828
4839
|
HEAP32[daylight >> 2] = Number(winterOffset != summerOffset);
|
|
4829
4840
|
function extractZone(date) {
|
|
4830
4841
|
var match = date.toTimeString().match(/\(([A-Za-z ]+)\)$/);
|
|
@@ -4843,35 +4854,33 @@ function _tzset_impl(timezone, daylight, tzname) {
|
|
|
4843
4854
|
}
|
|
4844
4855
|
}
|
|
4845
4856
|
|
|
4846
|
-
function __tzset_js(timezone, daylight, tzname) {
|
|
4847
|
-
if (__tzset_js.called) return;
|
|
4848
|
-
__tzset_js.called = true;
|
|
4849
|
-
_tzset_impl(timezone, daylight, tzname);
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
4857
|
function _abort() {
|
|
4853
4858
|
abort("");
|
|
4854
4859
|
}
|
|
4855
4860
|
|
|
4856
|
-
var
|
|
4861
|
+
var readEmAsmArgsArray = [];
|
|
4857
4862
|
|
|
4858
|
-
function
|
|
4859
|
-
|
|
4863
|
+
function readEmAsmArgs(sigPtr, buf) {
|
|
4864
|
+
readEmAsmArgsArray.length = 0;
|
|
4860
4865
|
var ch;
|
|
4861
4866
|
buf >>= 2;
|
|
4862
4867
|
while (ch = HEAPU8[sigPtr++]) {
|
|
4863
4868
|
buf += ch != 105 & buf;
|
|
4864
|
-
|
|
4869
|
+
readEmAsmArgsArray.push(ch == 105 ? HEAP32[buf] : HEAPF64[buf++ >> 1]);
|
|
4865
4870
|
++buf;
|
|
4866
4871
|
}
|
|
4867
|
-
return
|
|
4872
|
+
return readEmAsmArgsArray;
|
|
4868
4873
|
}
|
|
4869
4874
|
|
|
4870
|
-
function
|
|
4871
|
-
var args =
|
|
4875
|
+
function runEmAsmFunction(code, sigPtr, argbuf) {
|
|
4876
|
+
var args = readEmAsmArgs(sigPtr, argbuf);
|
|
4872
4877
|
return ASM_CONSTS[code].apply(null, args);
|
|
4873
4878
|
}
|
|
4874
4879
|
|
|
4880
|
+
function _emscripten_asm_const_int(code, sigPtr, argbuf) {
|
|
4881
|
+
return runEmAsmFunction(code, sigPtr, argbuf);
|
|
4882
|
+
}
|
|
4883
|
+
|
|
4875
4884
|
function _emscripten_date_now() {
|
|
4876
4885
|
return Date.now();
|
|
4877
4886
|
}
|
|
@@ -5704,11 +5713,15 @@ function _emscripten_webgpu_export_texture(handle) {
|
|
|
5704
5713
|
}
|
|
5705
5714
|
|
|
5706
5715
|
function _emscripten_webgpu_get_device() {
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5716
|
+
if (WebGPU.preinitializedDeviceId === undefined) {
|
|
5717
|
+
var device = Module["preinitializedWebGPUDevice"];
|
|
5718
|
+
var deviceWrapper = {
|
|
5719
|
+
queueId: WebGPU.mgrQueue.create(device["queue"])
|
|
5720
|
+
};
|
|
5721
|
+
WebGPU.preinitializedDeviceId = WebGPU.mgrDevice.create(device, deviceWrapper);
|
|
5722
|
+
}
|
|
5723
|
+
WebGPU.mgrDevice.reference(WebGPU.preinitializedDeviceId);
|
|
5724
|
+
return WebGPU.preinitializedDeviceId;
|
|
5712
5725
|
}
|
|
5713
5726
|
|
|
5714
5727
|
function _emscripten_webgpu_import_bind_group(handle) {
|
|
@@ -6708,10 +6721,6 @@ function _mediapipe_webgl_tex_image_drawable(drawableHandle) {
|
|
|
6708
6721
|
GLctx.texImage2D(GLctx.TEXTURE_2D, 0, GLctx.RGBA, GLctx.RGBA, GLctx.UNSIGNED_BYTE, drawable);
|
|
6709
6722
|
}
|
|
6710
6723
|
|
|
6711
|
-
function __isLeapYear(year) {
|
|
6712
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
6713
|
-
}
|
|
6714
|
-
|
|
6715
6724
|
function __arraySum(array, index) {
|
|
6716
6725
|
var sum = 0;
|
|
6717
6726
|
for (var i = 0; i <= index; sum += array[i++]) {}
|
|
@@ -7855,8 +7864,8 @@ var asmLibraryArg = {
|
|
|
7855
7864
|
"Hc": JsOnVectorListenerProto,
|
|
7856
7865
|
"Gc": JsOnVectorListenerString,
|
|
7857
7866
|
"r": JsWrapErrorListener,
|
|
7858
|
-
"
|
|
7859
|
-
"
|
|
7867
|
+
"B": JsWrapSimpleListeners,
|
|
7868
|
+
"A": JsWrapVectorListeners,
|
|
7860
7869
|
"f": ___cxa_allocate_exception,
|
|
7861
7870
|
"e": ___cxa_throw,
|
|
7862
7871
|
"za": ___syscall_fcntl64,
|
|
@@ -7942,10 +7951,10 @@ var asmLibraryArg = {
|
|
|
7942
7951
|
"ma": _glCreateProgram,
|
|
7943
7952
|
"la": _glCreateShader,
|
|
7944
7953
|
"ka": _glDeleteBuffers,
|
|
7945
|
-
"
|
|
7954
|
+
"F": _glDeleteFramebuffers,
|
|
7946
7955
|
"Q": _glDeleteProgram,
|
|
7947
|
-
"
|
|
7948
|
-
"
|
|
7956
|
+
"E": _glDeleteShader,
|
|
7957
|
+
"D": _glDeleteSync,
|
|
7949
7958
|
"l": _glDeleteTextures,
|
|
7950
7959
|
"Rb": _glDeleteVertexArrays,
|
|
7951
7960
|
"ja": _glDisable,
|
|
@@ -7958,7 +7967,7 @@ var asmLibraryArg = {
|
|
|
7958
7967
|
"x": _glFramebufferTexture2D,
|
|
7959
7968
|
"ga": _glFramebufferTextureLayer,
|
|
7960
7969
|
"M": _glGenBuffers,
|
|
7961
|
-
"
|
|
7970
|
+
"C": _glGenFramebuffers,
|
|
7962
7971
|
"w": _glGenTextures,
|
|
7963
7972
|
"Qb": _glGenVertexArrays,
|
|
7964
7973
|
"fa": _glGetAttribLocation,
|
|
@@ -8256,9 +8265,9 @@ var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() {
|
|
|
8256
8265
|
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["Rd"]).apply(null, arguments);
|
|
8257
8266
|
};
|
|
8258
8267
|
|
|
8259
|
-
var ___start_em_js = Module["___start_em_js"] =
|
|
8268
|
+
var ___start_em_js = Module["___start_em_js"] = 850428;
|
|
8260
8269
|
|
|
8261
|
-
var ___stop_em_js = Module["___stop_em_js"] =
|
|
8270
|
+
var ___stop_em_js = Module["___stop_em_js"] = 854293;
|
|
8262
8271
|
|
|
8263
8272
|
Module["addRunDependency"] = addRunDependency;
|
|
8264
8273
|
|
|
Binary file
|