@mediapipe/tasks-vision 0.1.0-alpha-8 → 0.1.0-alpha-9
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 +1 -1
- package/vision.d.ts +68 -0
- package/vision_bundle.js +1 -1
- package/wasm/vision_wasm_internal.js +132 -132
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +139 -139
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Build
|
|
1
|
+
// Build 523446140
|
|
2
2
|
|
|
3
3
|
var ModuleFactory = (() => {
|
|
4
4
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
@@ -520,15 +520,15 @@ var tempDouble;
|
|
|
520
520
|
var tempI64;
|
|
521
521
|
|
|
522
522
|
var ASM_CONSTS = {
|
|
523
|
-
|
|
523
|
+
1007374: $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
|
+
1007509: () => {
|
|
529
529
|
return typeof HTMLCanvasElement !== "undefined";
|
|
530
530
|
},
|
|
531
|
-
|
|
531
|
+
1007564: ($0, $1, $2, $3, $4) => {
|
|
532
532
|
const drawable = Emval.toValue($0);
|
|
533
533
|
const device = JsValStore.get($1);
|
|
534
534
|
const texture = JsValStore.get($2);
|
|
@@ -540,7 +540,7 @@ var ASM_CONSTS = {
|
|
|
540
540
|
texture: texture
|
|
541
541
|
}, [ width, height ]);
|
|
542
542
|
},
|
|
543
|
-
|
|
543
|
+
1007815: ($0, $1, $2, $3) => {
|
|
544
544
|
const sourceExtTex = Emval.toValue($0);
|
|
545
545
|
const device = JsValStore.get($1);
|
|
546
546
|
const sampler = JsValStore.get($2);
|
|
@@ -557,30 +557,30 @@ var ASM_CONSTS = {
|
|
|
557
557
|
});
|
|
558
558
|
return JsValStore.add(bindGroup);
|
|
559
559
|
},
|
|
560
|
-
|
|
560
|
+
1008163: ($0, $1) => {
|
|
561
561
|
const inputArray = Emval.toValue($0);
|
|
562
562
|
const output = Emval.toValue($1);
|
|
563
563
|
const ctx = output.getContext("2d");
|
|
564
564
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
565
565
|
ctx.putImageData(image_data, 0, 0);
|
|
566
566
|
},
|
|
567
|
-
|
|
567
|
+
1008387: ($0, $1) => {
|
|
568
568
|
const input = Emval.toValue($0);
|
|
569
569
|
const outputArray = Emval.toValue($1);
|
|
570
570
|
const ctx = input.getContext("2d");
|
|
571
571
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
572
572
|
outputArray.set(data.data);
|
|
573
573
|
},
|
|
574
|
-
|
|
574
|
+
1008591: ($0, $1) => {
|
|
575
575
|
const input = Emval.toValue($0);
|
|
576
576
|
const output = Emval.toValue($1);
|
|
577
577
|
const ctx = output.getContext("2d");
|
|
578
578
|
ctx.drawImage(input, 0, 0);
|
|
579
579
|
},
|
|
580
|
-
|
|
580
|
+
1008727: () => {
|
|
581
581
|
return !!Module["preinitializedWebGPUDevice"];
|
|
582
582
|
},
|
|
583
|
-
|
|
583
|
+
1008778: () => {
|
|
584
584
|
let init_once = true;
|
|
585
585
|
if (init_once) {
|
|
586
586
|
const cachedFindCanvasEventTarget = findCanvasEventTarget;
|
|
@@ -606,7 +606,7 @@ var ASM_CONSTS = {
|
|
|
606
606
|
init_once = false;
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
|
-
|
|
609
|
+
1009563: () => {
|
|
610
610
|
return typeof wasmOffsetConverter !== "undefined";
|
|
611
611
|
}
|
|
612
612
|
};
|
|
@@ -8018,7 +8018,7 @@ var asmLibraryArg = {
|
|
|
8018
8018
|
"hd": JsOnEmptyPacketListener,
|
|
8019
8019
|
"gd": JsOnFloat32ArrayImageListener,
|
|
8020
8020
|
"fd": JsOnFloat32ArrayImageVectorListener,
|
|
8021
|
-
"
|
|
8021
|
+
"Ka": JsOnSimpleListenerBinaryArray,
|
|
8022
8022
|
"ed": JsOnSimpleListenerBool,
|
|
8023
8023
|
"dd": JsOnSimpleListenerDouble,
|
|
8024
8024
|
"cd": JsOnSimpleListenerFloat,
|
|
@@ -8036,39 +8036,39 @@ var asmLibraryArg = {
|
|
|
8036
8036
|
"Tc": JsOnWebGLTextureListener,
|
|
8037
8037
|
"Sc": JsOnWebGLTextureVectorListener,
|
|
8038
8038
|
"D": JsWrapErrorListener,
|
|
8039
|
-
"
|
|
8040
|
-
"
|
|
8041
|
-
"
|
|
8042
|
-
"
|
|
8043
|
-
"
|
|
8039
|
+
"Ja": JsWrapImageConverter,
|
|
8040
|
+
"r": JsWrapSimpleListeners,
|
|
8041
|
+
"j": ___cxa_allocate_exception,
|
|
8042
|
+
"i": ___cxa_throw,
|
|
8043
|
+
"Ia": ___syscall_fcntl64,
|
|
8044
8044
|
"Rc": ___syscall_fstat64,
|
|
8045
8045
|
"Qc": ___syscall_ioctl,
|
|
8046
8046
|
"Pc": ___syscall_lstat64,
|
|
8047
8047
|
"Oc": ___syscall_newfstatat,
|
|
8048
|
-
"
|
|
8048
|
+
"Ha": ___syscall_openat,
|
|
8049
8049
|
"Nc": ___syscall_stat64,
|
|
8050
8050
|
"Jc": __dlinit,
|
|
8051
8051
|
"Ic": __dlopen_js,
|
|
8052
8052
|
"Hc": __dlsym_js,
|
|
8053
|
-
"
|
|
8053
|
+
"Qb": __embind_register_bigint,
|
|
8054
8054
|
"Gc": __embind_register_bool,
|
|
8055
8055
|
"Fc": __embind_register_emval,
|
|
8056
|
-
"
|
|
8057
|
-
"
|
|
8058
|
-
"
|
|
8059
|
-
"
|
|
8060
|
-
"
|
|
8056
|
+
"Fa": __embind_register_float,
|
|
8057
|
+
"B": __embind_register_integer,
|
|
8058
|
+
"m": __embind_register_memory_view,
|
|
8059
|
+
"Ea": __embind_register_std_string,
|
|
8060
|
+
"ha": __embind_register_std_wstring,
|
|
8061
8061
|
"Ec": __embind_register_void,
|
|
8062
8062
|
"Dc": __emscripten_get_now_is_monotonic,
|
|
8063
|
-
"
|
|
8063
|
+
"ga": __emval_as,
|
|
8064
8064
|
"k": __emval_decref,
|
|
8065
|
-
"
|
|
8066
|
-
"
|
|
8067
|
-
"
|
|
8068
|
-
"
|
|
8065
|
+
"fa": __emval_get_global,
|
|
8066
|
+
"Da": __emval_get_property,
|
|
8067
|
+
"Ca": __emval_incref,
|
|
8068
|
+
"ea": __emval_instanceof,
|
|
8069
8069
|
"_": __emval_new_cstring,
|
|
8070
|
-
"
|
|
8071
|
-
"
|
|
8070
|
+
"da": __emval_run_destructors,
|
|
8071
|
+
"Ba": __emval_set_property,
|
|
8072
8072
|
"Z": __emval_take_value,
|
|
8073
8073
|
"Cc": __emval_typeof,
|
|
8074
8074
|
"Bc": __gmtime_js,
|
|
@@ -8078,7 +8078,7 @@ var asmLibraryArg = {
|
|
|
8078
8078
|
"xc": __munmap_js,
|
|
8079
8079
|
"wc": __tzset_js,
|
|
8080
8080
|
"a": _abort,
|
|
8081
|
-
"
|
|
8081
|
+
"A": _emscripten_asm_const_int,
|
|
8082
8082
|
"vc": _emscripten_date_now,
|
|
8083
8083
|
"uc": _emscripten_get_heap_max,
|
|
8084
8084
|
"C": _emscripten_get_now,
|
|
@@ -8090,11 +8090,11 @@ var asmLibraryArg = {
|
|
|
8090
8090
|
"oc": _emscripten_webgl_create_context,
|
|
8091
8091
|
"nc": _emscripten_webgl_destroy_context,
|
|
8092
8092
|
"mc": _emscripten_webgl_get_context_attributes,
|
|
8093
|
-
"
|
|
8093
|
+
"Aa": _emscripten_webgl_get_current_context,
|
|
8094
8094
|
"lc": _emscripten_webgl_init_context_attributes,
|
|
8095
8095
|
"kc": _emscripten_webgl_make_context_current,
|
|
8096
8096
|
"jc": _emscripten_webgpu_export_bind_group_layout,
|
|
8097
|
-
"
|
|
8097
|
+
"za": _emscripten_webgpu_export_device,
|
|
8098
8098
|
"ic": _emscripten_webgpu_export_sampler,
|
|
8099
8099
|
"hc": _emscripten_webgpu_export_texture,
|
|
8100
8100
|
"J": _emscripten_webgpu_get_device,
|
|
@@ -8103,11 +8103,11 @@ var asmLibraryArg = {
|
|
|
8103
8103
|
"R": _emscripten_webgpu_release_js_handle,
|
|
8104
8104
|
"Mc": _environ_get,
|
|
8105
8105
|
"Lc": _environ_sizes_get,
|
|
8106
|
-
"
|
|
8107
|
-
"
|
|
8108
|
-
"
|
|
8109
|
-
"
|
|
8110
|
-
"
|
|
8106
|
+
"ya": _exit,
|
|
8107
|
+
"ja": _fd_close,
|
|
8108
|
+
"Ga": _fd_read,
|
|
8109
|
+
"Rb": _fd_seek,
|
|
8110
|
+
"ia": _fd_write,
|
|
8111
8111
|
"ec": _getentropy,
|
|
8112
8112
|
"d": _glActiveTexture,
|
|
8113
8113
|
"Y": _glAttachShader,
|
|
@@ -8116,129 +8116,129 @@ var asmLibraryArg = {
|
|
|
8116
8116
|
"cc": _glBindBufferBase,
|
|
8117
8117
|
"t": _glBindFramebuffer,
|
|
8118
8118
|
"b": _glBindTexture,
|
|
8119
|
-
"
|
|
8120
|
-
"
|
|
8119
|
+
"y": _glBindVertexArray,
|
|
8120
|
+
"xa": _glBlendEquation,
|
|
8121
8121
|
"bc": _glBlendFunc,
|
|
8122
8122
|
"s": _glBufferData,
|
|
8123
|
-
"
|
|
8124
|
-
"
|
|
8125
|
-
"
|
|
8126
|
-
"
|
|
8127
|
-
"
|
|
8128
|
-
"
|
|
8123
|
+
"v": _glClear,
|
|
8124
|
+
"ca": _glClearColor,
|
|
8125
|
+
"Pb": _glClientWaitSync,
|
|
8126
|
+
"wa": _glCompileShader,
|
|
8127
|
+
"va": _glCreateProgram,
|
|
8128
|
+
"ua": _glCreateShader,
|
|
8129
8129
|
"I": _glDeleteBuffers,
|
|
8130
8130
|
"N": _glDeleteFramebuffers,
|
|
8131
|
-
"
|
|
8131
|
+
"l": _glDeleteProgram,
|
|
8132
8132
|
"Q": _glDeleteShader,
|
|
8133
8133
|
"P": _glDeleteSync,
|
|
8134
|
-
"
|
|
8134
|
+
"x": _glDeleteTextures,
|
|
8135
8135
|
"X": _glDeleteVertexArrays,
|
|
8136
8136
|
"H": _glDisable,
|
|
8137
|
-
"
|
|
8138
|
-
"
|
|
8137
|
+
"w": _glDisableVertexAttribArray,
|
|
8138
|
+
"n": _glDrawArrays,
|
|
8139
8139
|
"O": _glDrawBuffers,
|
|
8140
|
-
"
|
|
8141
|
-
"
|
|
8142
|
-
"
|
|
8140
|
+
"ac": _glEnable,
|
|
8141
|
+
"q": _glEnableVertexAttribArray,
|
|
8142
|
+
"ta": _glFenceSync,
|
|
8143
8143
|
"W": _glFinish,
|
|
8144
|
-
"
|
|
8144
|
+
"sa": _glFlush,
|
|
8145
8145
|
"u": _glFramebufferTexture2D,
|
|
8146
|
-
"
|
|
8147
|
-
"
|
|
8146
|
+
"ra": _glFramebufferTextureLayer,
|
|
8147
|
+
"z": _glGenBuffers,
|
|
8148
8148
|
"M": _glGenFramebuffers,
|
|
8149
8149
|
"G": _glGenTextures,
|
|
8150
8150
|
"V": _glGenVertexArrays,
|
|
8151
|
-
"
|
|
8151
|
+
"qa": _glGetAttribLocation,
|
|
8152
8152
|
"U": _glGetError,
|
|
8153
|
-
"
|
|
8154
|
-
"
|
|
8155
|
-
"
|
|
8156
|
-
"
|
|
8153
|
+
"p": _glGetIntegerv,
|
|
8154
|
+
"$b": _glGetProgramiv,
|
|
8155
|
+
"_b": _glGetShaderInfoLog,
|
|
8156
|
+
"Zb": _glGetShaderiv,
|
|
8157
8157
|
"F": _glGetString,
|
|
8158
|
-
"
|
|
8159
|
-
"
|
|
8160
|
-
"
|
|
8158
|
+
"Yb": _glGetUniformBlockIndex,
|
|
8159
|
+
"g": _glGetUniformLocation,
|
|
8160
|
+
"pa": _glLinkProgram,
|
|
8161
8161
|
"T": _glPixelStorei,
|
|
8162
|
-
"
|
|
8163
|
-
"
|
|
8162
|
+
"oa": _glReadPixels,
|
|
8163
|
+
"na": _glShaderSource,
|
|
8164
8164
|
"E": _glTexImage2D,
|
|
8165
|
-
"
|
|
8165
|
+
"ma": _glTexParameterfv,
|
|
8166
8166
|
"c": _glTexParameteri,
|
|
8167
8167
|
"ba": _glTexStorage2D,
|
|
8168
|
-
"
|
|
8168
|
+
"Xb": _glTexStorage3D,
|
|
8169
8169
|
"aa": _glTexSubImage2D,
|
|
8170
|
-
"
|
|
8170
|
+
"Wb": _glTexSubImage3D,
|
|
8171
8171
|
"$": _glUniform1f,
|
|
8172
|
-
"
|
|
8173
|
-
"
|
|
8174
|
-
"
|
|
8175
|
-
"
|
|
8176
|
-
"
|
|
8177
|
-
"
|
|
8178
|
-
"
|
|
8179
|
-
"
|
|
8180
|
-
"
|
|
8172
|
+
"f": _glUniform1i,
|
|
8173
|
+
"Vb": _glUniform2f,
|
|
8174
|
+
"Ub": _glUniform2fv,
|
|
8175
|
+
"la": _glUniform4fv,
|
|
8176
|
+
"Tb": _glUniform4iv,
|
|
8177
|
+
"Sb": _glUniformBlockBinding,
|
|
8178
|
+
"ka": _glUniformMatrix4fv,
|
|
8179
|
+
"h": _glUseProgram,
|
|
8180
|
+
"o": _glVertexAttribPointer,
|
|
8181
8181
|
"L": _glViewport,
|
|
8182
|
-
"
|
|
8183
|
-
"
|
|
8184
|
-
"
|
|
8185
|
-
"
|
|
8182
|
+
"Nb": mediapipe_create_utility_canvas2d,
|
|
8183
|
+
"Mb": _mediapipe_find_canvas_event_target,
|
|
8184
|
+
"Lb": mediapipe_import_external_texture,
|
|
8185
|
+
"Kb": _mediapipe_webgl_tex_image_drawable,
|
|
8186
8186
|
"Kc": _proc_exit,
|
|
8187
8187
|
"S": _strftime,
|
|
8188
|
-
"
|
|
8189
|
-
"
|
|
8190
|
-
"
|
|
8191
|
-
"
|
|
8192
|
-
"
|
|
8193
|
-
"
|
|
8194
|
-
"
|
|
8195
|
-
"
|
|
8196
|
-
"
|
|
8197
|
-
"
|
|
8198
|
-
"
|
|
8199
|
-
"
|
|
8200
|
-
"
|
|
8201
|
-
"
|
|
8202
|
-
"
|
|
8203
|
-
"
|
|
8204
|
-
"
|
|
8205
|
-
"
|
|
8206
|
-
"
|
|
8207
|
-
"
|
|
8208
|
-
"
|
|
8209
|
-
"
|
|
8210
|
-
"
|
|
8211
|
-
"
|
|
8212
|
-
"
|
|
8213
|
-
"
|
|
8214
|
-
"
|
|
8215
|
-
"
|
|
8216
|
-
"
|
|
8217
|
-
"
|
|
8218
|
-
"
|
|
8219
|
-
"
|
|
8220
|
-
"
|
|
8221
|
-
"
|
|
8222
|
-
"
|
|
8223
|
-
"
|
|
8224
|
-
"
|
|
8225
|
-
"
|
|
8226
|
-
"
|
|
8227
|
-
"
|
|
8228
|
-
"
|
|
8229
|
-
"
|
|
8230
|
-
"
|
|
8231
|
-
"
|
|
8232
|
-
"
|
|
8233
|
-
"
|
|
8234
|
-
"
|
|
8235
|
-
"
|
|
8236
|
-
"
|
|
8237
|
-
"
|
|
8238
|
-
"
|
|
8239
|
-
"
|
|
8240
|
-
"
|
|
8241
|
-
"
|
|
8188
|
+
"Jb": _strftime_l,
|
|
8189
|
+
"Ib": _wgpuBindGroupLayoutRelease,
|
|
8190
|
+
"Hb": _wgpuBindGroupRelease,
|
|
8191
|
+
"Gb": _wgpuBufferGetMappedRange,
|
|
8192
|
+
"Fb": _wgpuBufferReference,
|
|
8193
|
+
"Eb": _wgpuBufferRelease,
|
|
8194
|
+
"Db": _wgpuBufferUnmap,
|
|
8195
|
+
"Cb": _wgpuCommandBufferRelease,
|
|
8196
|
+
"Bb": _wgpuCommandEncoderBeginComputePass,
|
|
8197
|
+
"Ab": _wgpuCommandEncoderBeginRenderPass,
|
|
8198
|
+
"zb": _wgpuCommandEncoderCopyBufferToTexture,
|
|
8199
|
+
"yb": _wgpuCommandEncoderCopyTextureToTexture,
|
|
8200
|
+
"xb": _wgpuCommandEncoderFinish,
|
|
8201
|
+
"wb": _wgpuCommandEncoderRelease,
|
|
8202
|
+
"vb": _wgpuComputePassEncoderDispatchWorkgroups,
|
|
8203
|
+
"ub": _wgpuComputePassEncoderEnd,
|
|
8204
|
+
"tb": _wgpuComputePassEncoderRelease,
|
|
8205
|
+
"sb": _wgpuComputePassEncoderSetBindGroup,
|
|
8206
|
+
"rb": _wgpuComputePassEncoderSetPipeline,
|
|
8207
|
+
"qb": _wgpuComputePipelineGetBindGroupLayout,
|
|
8208
|
+
"pb": _wgpuComputePipelineRelease,
|
|
8209
|
+
"ob": _wgpuDeviceCreateBindGroup,
|
|
8210
|
+
"nb": _wgpuDeviceCreateBuffer,
|
|
8211
|
+
"mb": _wgpuDeviceCreateCommandEncoder,
|
|
8212
|
+
"lb": _wgpuDeviceCreateComputePipeline,
|
|
8213
|
+
"kb": _wgpuDeviceCreateRenderPipeline,
|
|
8214
|
+
"jb": _wgpuDeviceCreateSampler,
|
|
8215
|
+
"ib": _wgpuDeviceCreateShaderModule,
|
|
8216
|
+
"hb": _wgpuDeviceCreateTexture,
|
|
8217
|
+
"gb": _wgpuDeviceGetQueue,
|
|
8218
|
+
"fb": _wgpuDeviceReference,
|
|
8219
|
+
"eb": _wgpuDeviceRelease,
|
|
8220
|
+
"db": _wgpuPipelineLayoutRelease,
|
|
8221
|
+
"cb": _wgpuQuerySetRelease,
|
|
8222
|
+
"bb": _wgpuQueueRelease,
|
|
8223
|
+
"ab": _wgpuQueueSubmit,
|
|
8224
|
+
"Ob": _wgpuQueueWriteBuffer,
|
|
8225
|
+
"$a": _wgpuRenderPassEncoderDraw,
|
|
8226
|
+
"_a": _wgpuRenderPassEncoderEnd,
|
|
8227
|
+
"Za": _wgpuRenderPassEncoderRelease,
|
|
8228
|
+
"Ya": _wgpuRenderPassEncoderSetBindGroup,
|
|
8229
|
+
"Xa": _wgpuRenderPassEncoderSetPipeline,
|
|
8230
|
+
"Wa": _wgpuRenderPipelineGetBindGroupLayout,
|
|
8231
|
+
"Va": _wgpuRenderPipelineRelease,
|
|
8232
|
+
"Ua": _wgpuSamplerReference,
|
|
8233
|
+
"Ta": _wgpuSamplerRelease,
|
|
8234
|
+
"Sa": _wgpuShaderModuleReference,
|
|
8235
|
+
"Ra": _wgpuShaderModuleRelease,
|
|
8236
|
+
"Qa": _wgpuTextureCreateView,
|
|
8237
|
+
"Pa": _wgpuTextureDestroy,
|
|
8238
|
+
"Oa": _wgpuTextureReference,
|
|
8239
|
+
"Na": _wgpuTextureRelease,
|
|
8240
|
+
"Ma": _wgpuTextureViewReference,
|
|
8241
|
+
"La": _wgpuTextureViewRelease
|
|
8242
8242
|
};
|
|
8243
8243
|
|
|
8244
8244
|
var asm = createWasm();
|
|
@@ -8463,9 +8463,9 @@ var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() {
|
|
|
8463
8463
|
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["le"]).apply(null, arguments);
|
|
8464
8464
|
};
|
|
8465
8465
|
|
|
8466
|
-
var ___start_em_js = Module["___start_em_js"] =
|
|
8466
|
+
var ___start_em_js = Module["___start_em_js"] = 1000812;
|
|
8467
8467
|
|
|
8468
|
-
var ___stop_em_js = Module["___stop_em_js"] =
|
|
8468
|
+
var ___stop_em_js = Module["___stop_em_js"] = 1007374;
|
|
8469
8469
|
|
|
8470
8470
|
Module["addRunDependency"] = addRunDependency;
|
|
8471
8471
|
|
|
Binary file
|