@mediapipe/tasks-vision 0.1.0-alpha-5 → 0.1.0-alpha-6
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 +17 -0
- package/package.json +1 -1
- package/vision.d.ts +3 -3
- package/vision_bundle.js +1 -1
- package/wasm/vision_wasm_internal.js +63 -56
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +62 -55
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Build
|
|
1
|
+
// Build 519727428
|
|
2
2
|
|
|
3
3
|
var ModuleFactory = (() => {
|
|
4
4
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
@@ -520,12 +520,15 @@ var tempDouble;
|
|
|
520
520
|
var tempI64;
|
|
521
521
|
|
|
522
522
|
var ASM_CONSTS = {
|
|
523
|
-
|
|
523
|
+
1170076: $0 => {
|
|
524
524
|
const canvas = Emval.toValue($0);
|
|
525
525
|
const context = canvas.getContext("webgpu");
|
|
526
526
|
return JsValStore.add(context.getCurrentTexture());
|
|
527
527
|
},
|
|
528
|
-
|
|
528
|
+
1170211: () => {
|
|
529
|
+
return typeof HTMLCanvasElement !== "undefined";
|
|
530
|
+
},
|
|
531
|
+
1170266: ($0, $1, $2, $3, $4) => {
|
|
529
532
|
const drawable = Emval.toValue($0);
|
|
530
533
|
const device = JsValStore.get($1);
|
|
531
534
|
const texture = JsValStore.get($2);
|
|
@@ -537,7 +540,7 @@ var ASM_CONSTS = {
|
|
|
537
540
|
texture: texture
|
|
538
541
|
}, [ width, height ]);
|
|
539
542
|
},
|
|
540
|
-
|
|
543
|
+
1170517: ($0, $1, $2, $3) => {
|
|
541
544
|
const sourceExtTex = Emval.toValue($0);
|
|
542
545
|
const device = JsValStore.get($1);
|
|
543
546
|
const sampler = JsValStore.get($2);
|
|
@@ -554,30 +557,30 @@ var ASM_CONSTS = {
|
|
|
554
557
|
});
|
|
555
558
|
return JsValStore.add(bindGroup);
|
|
556
559
|
},
|
|
557
|
-
|
|
560
|
+
1170865: ($0, $1) => {
|
|
558
561
|
const inputArray = Emval.toValue($0);
|
|
559
562
|
const output = Emval.toValue($1);
|
|
560
563
|
const ctx = output.getContext("2d");
|
|
561
564
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
562
565
|
ctx.putImageData(image_data, 0, 0);
|
|
563
566
|
},
|
|
564
|
-
|
|
567
|
+
1171089: ($0, $1) => {
|
|
565
568
|
const input = Emval.toValue($0);
|
|
566
569
|
const outputArray = Emval.toValue($1);
|
|
567
570
|
const ctx = input.getContext("2d");
|
|
568
571
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
569
572
|
outputArray.set(data.data);
|
|
570
573
|
},
|
|
571
|
-
|
|
574
|
+
1171293: ($0, $1) => {
|
|
572
575
|
const input = Emval.toValue($0);
|
|
573
576
|
const output = Emval.toValue($1);
|
|
574
577
|
const ctx = output.getContext("2d");
|
|
575
578
|
ctx.drawImage(input, 0, 0);
|
|
576
579
|
},
|
|
577
|
-
|
|
580
|
+
1171429: () => {
|
|
578
581
|
return !!Module["preinitializedWebGPUDevice"];
|
|
579
582
|
},
|
|
580
|
-
|
|
583
|
+
1171480: () => {
|
|
581
584
|
let init_once = true;
|
|
582
585
|
if (init_once) {
|
|
583
586
|
const cachedFindCanvasEventTarget = findCanvasEventTarget;
|
|
@@ -603,7 +606,7 @@ var ASM_CONSTS = {
|
|
|
603
606
|
init_once = false;
|
|
604
607
|
}
|
|
605
608
|
},
|
|
606
|
-
|
|
609
|
+
1172265: () => {
|
|
607
610
|
return typeof wasmOffsetConverter !== "undefined";
|
|
608
611
|
}
|
|
609
612
|
};
|
|
@@ -6862,7 +6865,11 @@ function _glViewport(x0, x1, x2, x3) {
|
|
|
6862
6865
|
}
|
|
6863
6866
|
|
|
6864
6867
|
function _mediapipe_find_canvas_event_target(canvasSelector) {
|
|
6865
|
-
|
|
6868
|
+
let target = findCanvasEventTarget(canvasSelector);
|
|
6869
|
+
if (Module && !target) {
|
|
6870
|
+
target = Module.canvas_webgpu;
|
|
6871
|
+
}
|
|
6872
|
+
return Emval.toHandle(target);
|
|
6866
6873
|
}
|
|
6867
6874
|
|
|
6868
6875
|
function _mediapipe_webgl_tex_image_drawable(drawableHandle) {
|
|
@@ -8022,7 +8029,7 @@ var asmLibraryArg = {
|
|
|
8022
8029
|
"Qc": JsOnWebGLTextureVectorListener,
|
|
8023
8030
|
"F": JsWrapErrorListener,
|
|
8024
8031
|
"Ja": JsWrapImageConverter,
|
|
8025
|
-
"
|
|
8032
|
+
"r": JsWrapSimpleListeners,
|
|
8026
8033
|
"h": ___cxa_allocate_exception,
|
|
8027
8034
|
"g": ___cxa_throw,
|
|
8028
8035
|
"Ia": ___syscall_fcntl64,
|
|
@@ -8039,7 +8046,7 @@ var asmLibraryArg = {
|
|
|
8039
8046
|
"Ec": __embind_register_bool,
|
|
8040
8047
|
"Dc": __embind_register_emval,
|
|
8041
8048
|
"Fa": __embind_register_float,
|
|
8042
|
-
"
|
|
8049
|
+
"D": __embind_register_integer,
|
|
8043
8050
|
"o": __embind_register_memory_view,
|
|
8044
8051
|
"Ea": __embind_register_std_string,
|
|
8045
8052
|
"ia": __embind_register_std_wstring,
|
|
@@ -8063,10 +8070,10 @@ var asmLibraryArg = {
|
|
|
8063
8070
|
"vc": __munmap_js,
|
|
8064
8071
|
"uc": __tzset_js,
|
|
8065
8072
|
"a": _abort,
|
|
8066
|
-
"
|
|
8073
|
+
"C": _emscripten_asm_const_int,
|
|
8067
8074
|
"tc": _emscripten_date_now,
|
|
8068
8075
|
"sc": _emscripten_get_heap_max,
|
|
8069
|
-
"
|
|
8076
|
+
"E": _emscripten_get_now,
|
|
8070
8077
|
"rc": _emscripten_memcpy_big,
|
|
8071
8078
|
"qc": _emscripten_pc_get_function,
|
|
8072
8079
|
"pc": _emscripten_resize_heap,
|
|
@@ -8099,9 +8106,9 @@ var asmLibraryArg = {
|
|
|
8099
8106
|
"bc": _glBindAttribLocation,
|
|
8100
8107
|
"f": _glBindBuffer,
|
|
8101
8108
|
"ac": _glBindBufferBase,
|
|
8102
|
-
"
|
|
8109
|
+
"v": _glBindFramebuffer,
|
|
8103
8110
|
"b": _glBindTexture,
|
|
8104
|
-
"
|
|
8111
|
+
"u": _glBindVertexArray,
|
|
8105
8112
|
"n": _glBufferData,
|
|
8106
8113
|
"T": _glClear,
|
|
8107
8114
|
"Pb": _glClientWaitSync,
|
|
@@ -8110,14 +8117,14 @@ var asmLibraryArg = {
|
|
|
8110
8117
|
"va": _glCreateShader,
|
|
8111
8118
|
"B": _glDeleteBuffers,
|
|
8112
8119
|
"P": _glDeleteFramebuffers,
|
|
8113
|
-
"
|
|
8120
|
+
"p": _glDeleteProgram,
|
|
8114
8121
|
"S": _glDeleteShader,
|
|
8115
8122
|
"R": _glDeleteSync,
|
|
8116
8123
|
"x": _glDeleteTextures,
|
|
8117
8124
|
"O": _glDeleteVertexArrays,
|
|
8118
8125
|
"N": _glDisable,
|
|
8119
|
-
"
|
|
8120
|
-
"
|
|
8126
|
+
"t": _glDisableVertexAttribArray,
|
|
8127
|
+
"s": _glDrawArrays,
|
|
8121
8128
|
"ua": _glDrawBuffers,
|
|
8122
8129
|
"m": _glEnableVertexAttribArray,
|
|
8123
8130
|
"ta": _glFenceSync,
|
|
@@ -8131,7 +8138,7 @@ var asmLibraryArg = {
|
|
|
8131
8138
|
"L": _glGenVertexArrays,
|
|
8132
8139
|
"ra": _glGetAttribLocation,
|
|
8133
8140
|
"Z": _glGetError,
|
|
8134
|
-
"
|
|
8141
|
+
"q": _glGetIntegerv,
|
|
8135
8142
|
"$b": _glGetProgramiv,
|
|
8136
8143
|
"_b": _glGetShaderInfoLog,
|
|
8137
8144
|
"Zb": _glGetShaderiv,
|
|
@@ -8254,124 +8261,124 @@ var _registerModelResourcesGraphService = Module["_registerModelResourcesGraphSe
|
|
|
8254
8261
|
return (_registerModelResourcesGraphService = Module["_registerModelResourcesGraphService"] = Module["asm"]["pd"]).apply(null, arguments);
|
|
8255
8262
|
};
|
|
8256
8263
|
|
|
8264
|
+
var ___errno_location = Module["___errno_location"] = function() {
|
|
8265
|
+
return (___errno_location = Module["___errno_location"] = Module["asm"]["qd"]).apply(null, arguments);
|
|
8266
|
+
};
|
|
8267
|
+
|
|
8257
8268
|
var _bindTextureToStream = Module["_bindTextureToStream"] = function() {
|
|
8258
|
-
return (_bindTextureToStream = Module["_bindTextureToStream"] = Module["asm"]["
|
|
8269
|
+
return (_bindTextureToStream = Module["_bindTextureToStream"] = Module["asm"]["rd"]).apply(null, arguments);
|
|
8259
8270
|
};
|
|
8260
8271
|
|
|
8261
8272
|
var _addBoundTextureToStream = Module["_addBoundTextureToStream"] = function() {
|
|
8262
|
-
return (_addBoundTextureToStream = Module["_addBoundTextureToStream"] = Module["asm"]["
|
|
8273
|
+
return (_addBoundTextureToStream = Module["_addBoundTextureToStream"] = Module["asm"]["sd"]).apply(null, arguments);
|
|
8263
8274
|
};
|
|
8264
8275
|
|
|
8265
8276
|
var _addDoubleToInputStream = Module["_addDoubleToInputStream"] = function() {
|
|
8266
|
-
return (_addDoubleToInputStream = Module["_addDoubleToInputStream"] = Module["asm"]["
|
|
8277
|
+
return (_addDoubleToInputStream = Module["_addDoubleToInputStream"] = Module["asm"]["td"]).apply(null, arguments);
|
|
8267
8278
|
};
|
|
8268
8279
|
|
|
8269
8280
|
var _addFloatToInputStream = Module["_addFloatToInputStream"] = function() {
|
|
8270
|
-
return (_addFloatToInputStream = Module["_addFloatToInputStream"] = Module["asm"]["
|
|
8281
|
+
return (_addFloatToInputStream = Module["_addFloatToInputStream"] = Module["asm"]["ud"]).apply(null, arguments);
|
|
8271
8282
|
};
|
|
8272
8283
|
|
|
8273
8284
|
var _addBoolToInputStream = Module["_addBoolToInputStream"] = function() {
|
|
8274
|
-
return (_addBoolToInputStream = Module["_addBoolToInputStream"] = Module["asm"]["
|
|
8285
|
+
return (_addBoolToInputStream = Module["_addBoolToInputStream"] = Module["asm"]["vd"]).apply(null, arguments);
|
|
8275
8286
|
};
|
|
8276
8287
|
|
|
8277
8288
|
var _addIntToInputStream = Module["_addIntToInputStream"] = function() {
|
|
8278
|
-
return (_addIntToInputStream = Module["_addIntToInputStream"] = Module["asm"]["
|
|
8289
|
+
return (_addIntToInputStream = Module["_addIntToInputStream"] = Module["asm"]["wd"]).apply(null, arguments);
|
|
8279
8290
|
};
|
|
8280
8291
|
|
|
8281
8292
|
var _addStringToInputStream = Module["_addStringToInputStream"] = function() {
|
|
8282
|
-
return (_addStringToInputStream = Module["_addStringToInputStream"] = Module["asm"]["
|
|
8293
|
+
return (_addStringToInputStream = Module["_addStringToInputStream"] = Module["asm"]["xd"]).apply(null, arguments);
|
|
8283
8294
|
};
|
|
8284
8295
|
|
|
8285
8296
|
var _addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = function() {
|
|
8286
|
-
return (_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = Module["asm"]["
|
|
8297
|
+
return (_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = Module["asm"]["yd"]).apply(null, arguments);
|
|
8287
8298
|
};
|
|
8288
8299
|
|
|
8289
8300
|
var _addProtoToInputStream = Module["_addProtoToInputStream"] = function() {
|
|
8290
|
-
return (_addProtoToInputStream = Module["_addProtoToInputStream"] = Module["asm"]["
|
|
8301
|
+
return (_addProtoToInputStream = Module["_addProtoToInputStream"] = Module["asm"]["zd"]).apply(null, arguments);
|
|
8291
8302
|
};
|
|
8292
8303
|
|
|
8293
8304
|
var _addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = function() {
|
|
8294
|
-
return (_addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = Module["asm"]["
|
|
8305
|
+
return (_addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = Module["asm"]["Ad"]).apply(null, arguments);
|
|
8295
8306
|
};
|
|
8296
8307
|
|
|
8297
8308
|
var _addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = function() {
|
|
8298
|
-
return (_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = Module["asm"]["
|
|
8309
|
+
return (_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = Module["asm"]["Bd"]).apply(null, arguments);
|
|
8299
8310
|
};
|
|
8300
8311
|
|
|
8301
8312
|
var _addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = function() {
|
|
8302
|
-
return (_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = Module["asm"]["
|
|
8313
|
+
return (_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = Module["asm"]["Cd"]).apply(null, arguments);
|
|
8303
8314
|
};
|
|
8304
8315
|
|
|
8305
8316
|
var _addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = function() {
|
|
8306
|
-
return (_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = Module["asm"]["
|
|
8317
|
+
return (_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = Module["asm"]["Dd"]).apply(null, arguments);
|
|
8307
8318
|
};
|
|
8308
8319
|
|
|
8309
8320
|
var _addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = function() {
|
|
8310
|
-
return (_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = Module["asm"]["
|
|
8321
|
+
return (_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = Module["asm"]["Ed"]).apply(null, arguments);
|
|
8311
8322
|
};
|
|
8312
8323
|
|
|
8313
8324
|
var _addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = function() {
|
|
8314
|
-
return (_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = Module["asm"]["
|
|
8325
|
+
return (_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = Module["asm"]["Fd"]).apply(null, arguments);
|
|
8315
8326
|
};
|
|
8316
8327
|
|
|
8317
8328
|
var _addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = function() {
|
|
8318
|
-
return (_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = Module["asm"]["
|
|
8329
|
+
return (_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = Module["asm"]["Gd"]).apply(null, arguments);
|
|
8319
8330
|
};
|
|
8320
8331
|
|
|
8321
8332
|
var _attachBoolListener = Module["_attachBoolListener"] = function() {
|
|
8322
|
-
return (_attachBoolListener = Module["_attachBoolListener"] = Module["asm"]["
|
|
8333
|
+
return (_attachBoolListener = Module["_attachBoolListener"] = Module["asm"]["Hd"]).apply(null, arguments);
|
|
8323
8334
|
};
|
|
8324
8335
|
|
|
8325
8336
|
var _attachBoolVectorListener = Module["_attachBoolVectorListener"] = function() {
|
|
8326
|
-
return (_attachBoolVectorListener = Module["_attachBoolVectorListener"] = Module["asm"]["
|
|
8337
|
+
return (_attachBoolVectorListener = Module["_attachBoolVectorListener"] = Module["asm"]["Id"]).apply(null, arguments);
|
|
8327
8338
|
};
|
|
8328
8339
|
|
|
8329
8340
|
var _attachDoubleListener = Module["_attachDoubleListener"] = function() {
|
|
8330
|
-
return (_attachDoubleListener = Module["_attachDoubleListener"] = Module["asm"]["
|
|
8341
|
+
return (_attachDoubleListener = Module["_attachDoubleListener"] = Module["asm"]["Jd"]).apply(null, arguments);
|
|
8331
8342
|
};
|
|
8332
8343
|
|
|
8333
8344
|
var _attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = function() {
|
|
8334
|
-
return (_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = Module["asm"]["
|
|
8345
|
+
return (_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = Module["asm"]["Kd"]).apply(null, arguments);
|
|
8335
8346
|
};
|
|
8336
8347
|
|
|
8337
8348
|
var _attachFloatListener = Module["_attachFloatListener"] = function() {
|
|
8338
|
-
return (_attachFloatListener = Module["_attachFloatListener"] = Module["asm"]["
|
|
8349
|
+
return (_attachFloatListener = Module["_attachFloatListener"] = Module["asm"]["Ld"]).apply(null, arguments);
|
|
8339
8350
|
};
|
|
8340
8351
|
|
|
8341
8352
|
var _attachFloatVectorListener = Module["_attachFloatVectorListener"] = function() {
|
|
8342
|
-
return (_attachFloatVectorListener = Module["_attachFloatVectorListener"] = Module["asm"]["
|
|
8353
|
+
return (_attachFloatVectorListener = Module["_attachFloatVectorListener"] = Module["asm"]["Md"]).apply(null, arguments);
|
|
8343
8354
|
};
|
|
8344
8355
|
|
|
8345
8356
|
var _attachIntListener = Module["_attachIntListener"] = function() {
|
|
8346
|
-
return (_attachIntListener = Module["_attachIntListener"] = Module["asm"]["
|
|
8357
|
+
return (_attachIntListener = Module["_attachIntListener"] = Module["asm"]["Nd"]).apply(null, arguments);
|
|
8347
8358
|
};
|
|
8348
8359
|
|
|
8349
8360
|
var _attachIntVectorListener = Module["_attachIntVectorListener"] = function() {
|
|
8350
|
-
return (_attachIntVectorListener = Module["_attachIntVectorListener"] = Module["asm"]["
|
|
8361
|
+
return (_attachIntVectorListener = Module["_attachIntVectorListener"] = Module["asm"]["Od"]).apply(null, arguments);
|
|
8351
8362
|
};
|
|
8352
8363
|
|
|
8353
8364
|
var _attachStringListener = Module["_attachStringListener"] = function() {
|
|
8354
|
-
return (_attachStringListener = Module["_attachStringListener"] = Module["asm"]["
|
|
8365
|
+
return (_attachStringListener = Module["_attachStringListener"] = Module["asm"]["Pd"]).apply(null, arguments);
|
|
8355
8366
|
};
|
|
8356
8367
|
|
|
8357
8368
|
var _attachStringVectorListener = Module["_attachStringVectorListener"] = function() {
|
|
8358
|
-
return (_attachStringVectorListener = Module["_attachStringVectorListener"] = Module["asm"]["
|
|
8369
|
+
return (_attachStringVectorListener = Module["_attachStringVectorListener"] = Module["asm"]["Qd"]).apply(null, arguments);
|
|
8359
8370
|
};
|
|
8360
8371
|
|
|
8361
8372
|
var _attachProtoListener = Module["_attachProtoListener"] = function() {
|
|
8362
|
-
return (_attachProtoListener = Module["_attachProtoListener"] = Module["asm"]["
|
|
8373
|
+
return (_attachProtoListener = Module["_attachProtoListener"] = Module["asm"]["Rd"]).apply(null, arguments);
|
|
8363
8374
|
};
|
|
8364
8375
|
|
|
8365
8376
|
var _attachProtoVectorListener = Module["_attachProtoVectorListener"] = function() {
|
|
8366
|
-
return (_attachProtoVectorListener = Module["_attachProtoVectorListener"] = Module["asm"]["
|
|
8377
|
+
return (_attachProtoVectorListener = Module["_attachProtoVectorListener"] = Module["asm"]["Sd"]).apply(null, arguments);
|
|
8367
8378
|
};
|
|
8368
8379
|
|
|
8369
8380
|
var _getGraphConfig = Module["_getGraphConfig"] = function() {
|
|
8370
|
-
return (_getGraphConfig = Module["_getGraphConfig"] = Module["asm"]["
|
|
8371
|
-
};
|
|
8372
|
-
|
|
8373
|
-
var ___errno_location = Module["___errno_location"] = function() {
|
|
8374
|
-
return (___errno_location = Module["___errno_location"] = Module["asm"]["Td"]).apply(null, arguments);
|
|
8381
|
+
return (_getGraphConfig = Module["_getGraphConfig"] = Module["asm"]["Td"]).apply(null, arguments);
|
|
8375
8382
|
};
|
|
8376
8383
|
|
|
8377
8384
|
var _clearSubgraphs = Module["_clearSubgraphs"] = function() {
|
|
@@ -8446,9 +8453,9 @@ var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() {
|
|
|
8446
8453
|
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["je"]).apply(null, arguments);
|
|
8447
8454
|
};
|
|
8448
8455
|
|
|
8449
|
-
var ___start_em_js = Module["___start_em_js"] =
|
|
8456
|
+
var ___start_em_js = Module["___start_em_js"] = 1163500;
|
|
8450
8457
|
|
|
8451
|
-
var ___stop_em_js = Module["___stop_em_js"] =
|
|
8458
|
+
var ___stop_em_js = Module["___stop_em_js"] = 1170076;
|
|
8452
8459
|
|
|
8453
8460
|
Module["addRunDependency"] = addRunDependency;
|
|
8454
8461
|
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Build
|
|
1
|
+
// Build 519727428
|
|
2
2
|
|
|
3
3
|
var ModuleFactory = (() => {
|
|
4
4
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
@@ -520,12 +520,15 @@ var tempDouble;
|
|
|
520
520
|
var tempI64;
|
|
521
521
|
|
|
522
522
|
var ASM_CONSTS = {
|
|
523
|
-
|
|
523
|
+
995612: $0 => {
|
|
524
524
|
const canvas = Emval.toValue($0);
|
|
525
525
|
const context = canvas.getContext("webgpu");
|
|
526
526
|
return JsValStore.add(context.getCurrentTexture());
|
|
527
527
|
},
|
|
528
|
-
|
|
528
|
+
995747: () => {
|
|
529
|
+
return typeof HTMLCanvasElement !== "undefined";
|
|
530
|
+
},
|
|
531
|
+
995802: ($0, $1, $2, $3, $4) => {
|
|
529
532
|
const drawable = Emval.toValue($0);
|
|
530
533
|
const device = JsValStore.get($1);
|
|
531
534
|
const texture = JsValStore.get($2);
|
|
@@ -537,7 +540,7 @@ var ASM_CONSTS = {
|
|
|
537
540
|
texture: texture
|
|
538
541
|
}, [ width, height ]);
|
|
539
542
|
},
|
|
540
|
-
|
|
543
|
+
996053: ($0, $1, $2, $3) => {
|
|
541
544
|
const sourceExtTex = Emval.toValue($0);
|
|
542
545
|
const device = JsValStore.get($1);
|
|
543
546
|
const sampler = JsValStore.get($2);
|
|
@@ -554,30 +557,30 @@ var ASM_CONSTS = {
|
|
|
554
557
|
});
|
|
555
558
|
return JsValStore.add(bindGroup);
|
|
556
559
|
},
|
|
557
|
-
|
|
560
|
+
996401: ($0, $1) => {
|
|
558
561
|
const inputArray = Emval.toValue($0);
|
|
559
562
|
const output = Emval.toValue($1);
|
|
560
563
|
const ctx = output.getContext("2d");
|
|
561
564
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
562
565
|
ctx.putImageData(image_data, 0, 0);
|
|
563
566
|
},
|
|
564
|
-
|
|
567
|
+
996625: ($0, $1) => {
|
|
565
568
|
const input = Emval.toValue($0);
|
|
566
569
|
const outputArray = Emval.toValue($1);
|
|
567
570
|
const ctx = input.getContext("2d");
|
|
568
571
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
569
572
|
outputArray.set(data.data);
|
|
570
573
|
},
|
|
571
|
-
|
|
574
|
+
996829: ($0, $1) => {
|
|
572
575
|
const input = Emval.toValue($0);
|
|
573
576
|
const output = Emval.toValue($1);
|
|
574
577
|
const ctx = output.getContext("2d");
|
|
575
578
|
ctx.drawImage(input, 0, 0);
|
|
576
579
|
},
|
|
577
|
-
|
|
580
|
+
996965: () => {
|
|
578
581
|
return !!Module["preinitializedWebGPUDevice"];
|
|
579
582
|
},
|
|
580
|
-
|
|
583
|
+
997016: () => {
|
|
581
584
|
let init_once = true;
|
|
582
585
|
if (init_once) {
|
|
583
586
|
const cachedFindCanvasEventTarget = findCanvasEventTarget;
|
|
@@ -603,7 +606,7 @@ var ASM_CONSTS = {
|
|
|
603
606
|
init_once = false;
|
|
604
607
|
}
|
|
605
608
|
},
|
|
606
|
-
|
|
609
|
+
997801: () => {
|
|
607
610
|
return typeof wasmOffsetConverter !== "undefined";
|
|
608
611
|
}
|
|
609
612
|
};
|
|
@@ -6854,7 +6857,11 @@ function _glViewport(x0, x1, x2, x3) {
|
|
|
6854
6857
|
}
|
|
6855
6858
|
|
|
6856
6859
|
function _mediapipe_find_canvas_event_target(canvasSelector) {
|
|
6857
|
-
|
|
6860
|
+
let target = findCanvasEventTarget(canvasSelector);
|
|
6861
|
+
if (Module && !target) {
|
|
6862
|
+
target = Module.canvas_webgpu;
|
|
6863
|
+
}
|
|
6864
|
+
return Emval.toHandle(target);
|
|
6858
6865
|
}
|
|
6859
6866
|
|
|
6860
6867
|
function _mediapipe_webgl_tex_image_drawable(drawableHandle) {
|
|
@@ -8015,8 +8022,8 @@ var asmLibraryArg = {
|
|
|
8015
8022
|
"C": JsWrapErrorListener,
|
|
8016
8023
|
"Ha": JsWrapImageConverter,
|
|
8017
8024
|
"p": JsWrapSimpleListeners,
|
|
8018
|
-
"
|
|
8019
|
-
"
|
|
8025
|
+
"i": ___cxa_allocate_exception,
|
|
8026
|
+
"h": ___cxa_throw,
|
|
8020
8027
|
"Ga": ___syscall_fcntl64,
|
|
8021
8028
|
"Nc": ___syscall_fstat64,
|
|
8022
8029
|
"Mc": ___syscall_ioctl,
|
|
@@ -8031,14 +8038,14 @@ var asmLibraryArg = {
|
|
|
8031
8038
|
"Cc": __embind_register_bool,
|
|
8032
8039
|
"Bc": __embind_register_emval,
|
|
8033
8040
|
"Da": __embind_register_float,
|
|
8034
|
-
"
|
|
8041
|
+
"A": __embind_register_integer,
|
|
8035
8042
|
"l": __embind_register_memory_view,
|
|
8036
8043
|
"Ca": __embind_register_std_string,
|
|
8037
8044
|
"fa": __embind_register_std_wstring,
|
|
8038
8045
|
"Ac": __embind_register_void,
|
|
8039
8046
|
"zc": __emscripten_get_now_is_monotonic,
|
|
8040
8047
|
"ea": __emval_as,
|
|
8041
|
-
"
|
|
8048
|
+
"j": __emval_decref,
|
|
8042
8049
|
"da": __emval_get_global,
|
|
8043
8050
|
"Ba": __emval_get_property,
|
|
8044
8051
|
"Aa": __emval_incref,
|
|
@@ -8055,10 +8062,10 @@ var asmLibraryArg = {
|
|
|
8055
8062
|
"tc": __munmap_js,
|
|
8056
8063
|
"sc": __tzset_js,
|
|
8057
8064
|
"a": _abort,
|
|
8058
|
-
"
|
|
8065
|
+
"z": _emscripten_asm_const_int,
|
|
8059
8066
|
"rc": _emscripten_date_now,
|
|
8060
8067
|
"qc": _emscripten_get_heap_max,
|
|
8061
|
-
"
|
|
8068
|
+
"B": _emscripten_get_now,
|
|
8062
8069
|
"pc": _emscripten_memcpy_big,
|
|
8063
8070
|
"oc": _emscripten_pc_get_function,
|
|
8064
8071
|
"nc": _emscripten_resize_heap,
|
|
@@ -8093,7 +8100,7 @@ var asmLibraryArg = {
|
|
|
8093
8100
|
"_b": _glBindBufferBase,
|
|
8094
8101
|
"s": _glBindFramebuffer,
|
|
8095
8102
|
"b": _glBindTexture,
|
|
8096
|
-
"
|
|
8103
|
+
"w": _glBindVertexArray,
|
|
8097
8104
|
"r": _glBufferData,
|
|
8098
8105
|
"P": _glClear,
|
|
8099
8106
|
"Nb": _glClientWaitSync,
|
|
@@ -8115,9 +8122,9 @@ var asmLibraryArg = {
|
|
|
8115
8122
|
"ra": _glFenceSync,
|
|
8116
8123
|
"V": _glFinish,
|
|
8117
8124
|
"qa": _glFlush,
|
|
8118
|
-
"
|
|
8125
|
+
"y": _glFramebufferTexture2D,
|
|
8119
8126
|
"pa": _glFramebufferTextureLayer,
|
|
8120
|
-
"
|
|
8127
|
+
"x": _glGenBuffers,
|
|
8121
8128
|
"K": _glGenFramebuffers,
|
|
8122
8129
|
"F": _glGenTextures,
|
|
8123
8130
|
"U": _glGenVertexArrays,
|
|
@@ -8244,124 +8251,124 @@ var _registerModelResourcesGraphService = Module["_registerModelResourcesGraphSe
|
|
|
8244
8251
|
return (_registerModelResourcesGraphService = Module["_registerModelResourcesGraphService"] = Module["asm"]["nd"]).apply(null, arguments);
|
|
8245
8252
|
};
|
|
8246
8253
|
|
|
8254
|
+
var ___errno_location = Module["___errno_location"] = function() {
|
|
8255
|
+
return (___errno_location = Module["___errno_location"] = Module["asm"]["od"]).apply(null, arguments);
|
|
8256
|
+
};
|
|
8257
|
+
|
|
8247
8258
|
var _bindTextureToStream = Module["_bindTextureToStream"] = function() {
|
|
8248
|
-
return (_bindTextureToStream = Module["_bindTextureToStream"] = Module["asm"]["
|
|
8259
|
+
return (_bindTextureToStream = Module["_bindTextureToStream"] = Module["asm"]["pd"]).apply(null, arguments);
|
|
8249
8260
|
};
|
|
8250
8261
|
|
|
8251
8262
|
var _addBoundTextureToStream = Module["_addBoundTextureToStream"] = function() {
|
|
8252
|
-
return (_addBoundTextureToStream = Module["_addBoundTextureToStream"] = Module["asm"]["
|
|
8263
|
+
return (_addBoundTextureToStream = Module["_addBoundTextureToStream"] = Module["asm"]["qd"]).apply(null, arguments);
|
|
8253
8264
|
};
|
|
8254
8265
|
|
|
8255
8266
|
var _addDoubleToInputStream = Module["_addDoubleToInputStream"] = function() {
|
|
8256
|
-
return (_addDoubleToInputStream = Module["_addDoubleToInputStream"] = Module["asm"]["
|
|
8267
|
+
return (_addDoubleToInputStream = Module["_addDoubleToInputStream"] = Module["asm"]["rd"]).apply(null, arguments);
|
|
8257
8268
|
};
|
|
8258
8269
|
|
|
8259
8270
|
var _addFloatToInputStream = Module["_addFloatToInputStream"] = function() {
|
|
8260
|
-
return (_addFloatToInputStream = Module["_addFloatToInputStream"] = Module["asm"]["
|
|
8271
|
+
return (_addFloatToInputStream = Module["_addFloatToInputStream"] = Module["asm"]["sd"]).apply(null, arguments);
|
|
8261
8272
|
};
|
|
8262
8273
|
|
|
8263
8274
|
var _addBoolToInputStream = Module["_addBoolToInputStream"] = function() {
|
|
8264
|
-
return (_addBoolToInputStream = Module["_addBoolToInputStream"] = Module["asm"]["
|
|
8275
|
+
return (_addBoolToInputStream = Module["_addBoolToInputStream"] = Module["asm"]["td"]).apply(null, arguments);
|
|
8265
8276
|
};
|
|
8266
8277
|
|
|
8267
8278
|
var _addIntToInputStream = Module["_addIntToInputStream"] = function() {
|
|
8268
|
-
return (_addIntToInputStream = Module["_addIntToInputStream"] = Module["asm"]["
|
|
8279
|
+
return (_addIntToInputStream = Module["_addIntToInputStream"] = Module["asm"]["ud"]).apply(null, arguments);
|
|
8269
8280
|
};
|
|
8270
8281
|
|
|
8271
8282
|
var _addStringToInputStream = Module["_addStringToInputStream"] = function() {
|
|
8272
|
-
return (_addStringToInputStream = Module["_addStringToInputStream"] = Module["asm"]["
|
|
8283
|
+
return (_addStringToInputStream = Module["_addStringToInputStream"] = Module["asm"]["vd"]).apply(null, arguments);
|
|
8273
8284
|
};
|
|
8274
8285
|
|
|
8275
8286
|
var _addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = function() {
|
|
8276
|
-
return (_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = Module["asm"]["
|
|
8287
|
+
return (_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = Module["asm"]["wd"]).apply(null, arguments);
|
|
8277
8288
|
};
|
|
8278
8289
|
|
|
8279
8290
|
var _addProtoToInputStream = Module["_addProtoToInputStream"] = function() {
|
|
8280
|
-
return (_addProtoToInputStream = Module["_addProtoToInputStream"] = Module["asm"]["
|
|
8291
|
+
return (_addProtoToInputStream = Module["_addProtoToInputStream"] = Module["asm"]["xd"]).apply(null, arguments);
|
|
8281
8292
|
};
|
|
8282
8293
|
|
|
8283
8294
|
var _addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = function() {
|
|
8284
|
-
return (_addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = Module["asm"]["
|
|
8295
|
+
return (_addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = Module["asm"]["yd"]).apply(null, arguments);
|
|
8285
8296
|
};
|
|
8286
8297
|
|
|
8287
8298
|
var _addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = function() {
|
|
8288
|
-
return (_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = Module["asm"]["
|
|
8299
|
+
return (_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = Module["asm"]["zd"]).apply(null, arguments);
|
|
8289
8300
|
};
|
|
8290
8301
|
|
|
8291
8302
|
var _addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = function() {
|
|
8292
|
-
return (_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = Module["asm"]["
|
|
8303
|
+
return (_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = Module["asm"]["Ad"]).apply(null, arguments);
|
|
8293
8304
|
};
|
|
8294
8305
|
|
|
8295
8306
|
var _addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = function() {
|
|
8296
|
-
return (_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = Module["asm"]["
|
|
8307
|
+
return (_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = Module["asm"]["Bd"]).apply(null, arguments);
|
|
8297
8308
|
};
|
|
8298
8309
|
|
|
8299
8310
|
var _addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = function() {
|
|
8300
|
-
return (_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = Module["asm"]["
|
|
8311
|
+
return (_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = Module["asm"]["Cd"]).apply(null, arguments);
|
|
8301
8312
|
};
|
|
8302
8313
|
|
|
8303
8314
|
var _addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = function() {
|
|
8304
|
-
return (_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = Module["asm"]["
|
|
8315
|
+
return (_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = Module["asm"]["Dd"]).apply(null, arguments);
|
|
8305
8316
|
};
|
|
8306
8317
|
|
|
8307
8318
|
var _addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = function() {
|
|
8308
|
-
return (_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = Module["asm"]["
|
|
8319
|
+
return (_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = Module["asm"]["Ed"]).apply(null, arguments);
|
|
8309
8320
|
};
|
|
8310
8321
|
|
|
8311
8322
|
var _attachBoolListener = Module["_attachBoolListener"] = function() {
|
|
8312
|
-
return (_attachBoolListener = Module["_attachBoolListener"] = Module["asm"]["
|
|
8323
|
+
return (_attachBoolListener = Module["_attachBoolListener"] = Module["asm"]["Fd"]).apply(null, arguments);
|
|
8313
8324
|
};
|
|
8314
8325
|
|
|
8315
8326
|
var _attachBoolVectorListener = Module["_attachBoolVectorListener"] = function() {
|
|
8316
|
-
return (_attachBoolVectorListener = Module["_attachBoolVectorListener"] = Module["asm"]["
|
|
8327
|
+
return (_attachBoolVectorListener = Module["_attachBoolVectorListener"] = Module["asm"]["Gd"]).apply(null, arguments);
|
|
8317
8328
|
};
|
|
8318
8329
|
|
|
8319
8330
|
var _attachDoubleListener = Module["_attachDoubleListener"] = function() {
|
|
8320
|
-
return (_attachDoubleListener = Module["_attachDoubleListener"] = Module["asm"]["
|
|
8331
|
+
return (_attachDoubleListener = Module["_attachDoubleListener"] = Module["asm"]["Hd"]).apply(null, arguments);
|
|
8321
8332
|
};
|
|
8322
8333
|
|
|
8323
8334
|
var _attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = function() {
|
|
8324
|
-
return (_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = Module["asm"]["
|
|
8335
|
+
return (_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = Module["asm"]["Id"]).apply(null, arguments);
|
|
8325
8336
|
};
|
|
8326
8337
|
|
|
8327
8338
|
var _attachFloatListener = Module["_attachFloatListener"] = function() {
|
|
8328
|
-
return (_attachFloatListener = Module["_attachFloatListener"] = Module["asm"]["
|
|
8339
|
+
return (_attachFloatListener = Module["_attachFloatListener"] = Module["asm"]["Jd"]).apply(null, arguments);
|
|
8329
8340
|
};
|
|
8330
8341
|
|
|
8331
8342
|
var _attachFloatVectorListener = Module["_attachFloatVectorListener"] = function() {
|
|
8332
|
-
return (_attachFloatVectorListener = Module["_attachFloatVectorListener"] = Module["asm"]["
|
|
8343
|
+
return (_attachFloatVectorListener = Module["_attachFloatVectorListener"] = Module["asm"]["Kd"]).apply(null, arguments);
|
|
8333
8344
|
};
|
|
8334
8345
|
|
|
8335
8346
|
var _attachIntListener = Module["_attachIntListener"] = function() {
|
|
8336
|
-
return (_attachIntListener = Module["_attachIntListener"] = Module["asm"]["
|
|
8347
|
+
return (_attachIntListener = Module["_attachIntListener"] = Module["asm"]["Ld"]).apply(null, arguments);
|
|
8337
8348
|
};
|
|
8338
8349
|
|
|
8339
8350
|
var _attachIntVectorListener = Module["_attachIntVectorListener"] = function() {
|
|
8340
|
-
return (_attachIntVectorListener = Module["_attachIntVectorListener"] = Module["asm"]["
|
|
8351
|
+
return (_attachIntVectorListener = Module["_attachIntVectorListener"] = Module["asm"]["Md"]).apply(null, arguments);
|
|
8341
8352
|
};
|
|
8342
8353
|
|
|
8343
8354
|
var _attachStringListener = Module["_attachStringListener"] = function() {
|
|
8344
|
-
return (_attachStringListener = Module["_attachStringListener"] = Module["asm"]["
|
|
8355
|
+
return (_attachStringListener = Module["_attachStringListener"] = Module["asm"]["Nd"]).apply(null, arguments);
|
|
8345
8356
|
};
|
|
8346
8357
|
|
|
8347
8358
|
var _attachStringVectorListener = Module["_attachStringVectorListener"] = function() {
|
|
8348
|
-
return (_attachStringVectorListener = Module["_attachStringVectorListener"] = Module["asm"]["
|
|
8359
|
+
return (_attachStringVectorListener = Module["_attachStringVectorListener"] = Module["asm"]["Od"]).apply(null, arguments);
|
|
8349
8360
|
};
|
|
8350
8361
|
|
|
8351
8362
|
var _attachProtoListener = Module["_attachProtoListener"] = function() {
|
|
8352
|
-
return (_attachProtoListener = Module["_attachProtoListener"] = Module["asm"]["
|
|
8363
|
+
return (_attachProtoListener = Module["_attachProtoListener"] = Module["asm"]["Pd"]).apply(null, arguments);
|
|
8353
8364
|
};
|
|
8354
8365
|
|
|
8355
8366
|
var _attachProtoVectorListener = Module["_attachProtoVectorListener"] = function() {
|
|
8356
|
-
return (_attachProtoVectorListener = Module["_attachProtoVectorListener"] = Module["asm"]["
|
|
8367
|
+
return (_attachProtoVectorListener = Module["_attachProtoVectorListener"] = Module["asm"]["Qd"]).apply(null, arguments);
|
|
8357
8368
|
};
|
|
8358
8369
|
|
|
8359
8370
|
var _getGraphConfig = Module["_getGraphConfig"] = function() {
|
|
8360
|
-
return (_getGraphConfig = Module["_getGraphConfig"] = Module["asm"]["
|
|
8361
|
-
};
|
|
8362
|
-
|
|
8363
|
-
var ___errno_location = Module["___errno_location"] = function() {
|
|
8364
|
-
return (___errno_location = Module["___errno_location"] = Module["asm"]["Rd"]).apply(null, arguments);
|
|
8371
|
+
return (_getGraphConfig = Module["_getGraphConfig"] = Module["asm"]["Rd"]).apply(null, arguments);
|
|
8365
8372
|
};
|
|
8366
8373
|
|
|
8367
8374
|
var _clearSubgraphs = Module["_clearSubgraphs"] = function() {
|
|
@@ -8436,9 +8443,9 @@ var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() {
|
|
|
8436
8443
|
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["he"]).apply(null, arguments);
|
|
8437
8444
|
};
|
|
8438
8445
|
|
|
8439
|
-
var ___start_em_js = Module["___start_em_js"] =
|
|
8446
|
+
var ___start_em_js = Module["___start_em_js"] = 989036;
|
|
8440
8447
|
|
|
8441
|
-
var ___stop_em_js = Module["___stop_em_js"] =
|
|
8448
|
+
var ___stop_em_js = Module["___stop_em_js"] = 995612;
|
|
8442
8449
|
|
|
8443
8450
|
Module["addRunDependency"] = addRunDependency;
|
|
8444
8451
|
|
|
Binary file
|