@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
|
+
1181902: $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
|
+
1182037: () => {
|
|
529
529
|
return typeof HTMLCanvasElement !== "undefined";
|
|
530
530
|
},
|
|
531
|
-
|
|
531
|
+
1182092: ($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
|
+
1182343: ($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
|
+
1182691: ($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
|
+
1182915: ($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
|
+
1183119: ($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
|
+
1183255: () => {
|
|
581
581
|
return !!Module["preinitializedWebGPUDevice"];
|
|
582
582
|
},
|
|
583
|
-
|
|
583
|
+
1183306: () => {
|
|
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
|
+
1184091: () => {
|
|
610
610
|
return typeof wasmOffsetConverter !== "undefined";
|
|
611
611
|
}
|
|
612
612
|
};
|
|
@@ -8026,7 +8026,7 @@ var asmLibraryArg = {
|
|
|
8026
8026
|
"jd": JsOnEmptyPacketListener,
|
|
8027
8027
|
"id": JsOnFloat32ArrayImageListener,
|
|
8028
8028
|
"hd": JsOnFloat32ArrayImageVectorListener,
|
|
8029
|
-
"
|
|
8029
|
+
"Ma": JsOnSimpleListenerBinaryArray,
|
|
8030
8030
|
"gd": JsOnSimpleListenerBool,
|
|
8031
8031
|
"fd": JsOnSimpleListenerDouble,
|
|
8032
8032
|
"ed": JsOnSimpleListenerFloat,
|
|
@@ -8044,39 +8044,39 @@ var asmLibraryArg = {
|
|
|
8044
8044
|
"Vc": JsOnWebGLTextureListener,
|
|
8045
8045
|
"Uc": JsOnWebGLTextureVectorListener,
|
|
8046
8046
|
"G": JsWrapErrorListener,
|
|
8047
|
-
"
|
|
8047
|
+
"La": JsWrapImageConverter,
|
|
8048
8048
|
"s": JsWrapSimpleListeners,
|
|
8049
8049
|
"i": ___cxa_allocate_exception,
|
|
8050
8050
|
"h": ___cxa_throw,
|
|
8051
|
-
"
|
|
8051
|
+
"Ka": ___syscall_fcntl64,
|
|
8052
8052
|
"Tc": ___syscall_fstat64,
|
|
8053
8053
|
"Sc": ___syscall_ioctl,
|
|
8054
8054
|
"Rc": ___syscall_lstat64,
|
|
8055
8055
|
"Qc": ___syscall_newfstatat,
|
|
8056
|
-
"
|
|
8056
|
+
"Ja": ___syscall_openat,
|
|
8057
8057
|
"Pc": ___syscall_stat64,
|
|
8058
8058
|
"Lc": __dlinit,
|
|
8059
8059
|
"Kc": __dlopen_js,
|
|
8060
8060
|
"Jc": __dlsym_js,
|
|
8061
|
-
"
|
|
8061
|
+
"Sb": __embind_register_bigint,
|
|
8062
8062
|
"Ic": __embind_register_bool,
|
|
8063
8063
|
"Hc": __embind_register_emval,
|
|
8064
|
-
"
|
|
8065
|
-
"
|
|
8066
|
-
"
|
|
8067
|
-
"
|
|
8068
|
-
"
|
|
8064
|
+
"Ha": __embind_register_float,
|
|
8065
|
+
"E": __embind_register_integer,
|
|
8066
|
+
"q": __embind_register_memory_view,
|
|
8067
|
+
"Ga": __embind_register_std_string,
|
|
8068
|
+
"ka": __embind_register_std_wstring,
|
|
8069
8069
|
"Gc": __embind_register_void,
|
|
8070
8070
|
"Fc": __emscripten_get_now_is_monotonic,
|
|
8071
|
-
"
|
|
8071
|
+
"ja": __emval_as,
|
|
8072
8072
|
"k": __emval_decref,
|
|
8073
|
-
"
|
|
8074
|
-
"
|
|
8075
|
-
"
|
|
8076
|
-
"
|
|
8073
|
+
"ia": __emval_get_global,
|
|
8074
|
+
"Fa": __emval_get_property,
|
|
8075
|
+
"Ea": __emval_incref,
|
|
8076
|
+
"ha": __emval_instanceof,
|
|
8077
8077
|
"ca": __emval_new_cstring,
|
|
8078
|
-
"
|
|
8079
|
-
"
|
|
8078
|
+
"ga": __emval_run_destructors,
|
|
8079
|
+
"Da": __emval_set_property,
|
|
8080
8080
|
"ba": __emval_take_value,
|
|
8081
8081
|
"Ec": __emval_typeof,
|
|
8082
8082
|
"Dc": __gmtime_js,
|
|
@@ -8086,7 +8086,7 @@ var asmLibraryArg = {
|
|
|
8086
8086
|
"zc": __munmap_js,
|
|
8087
8087
|
"yc": __tzset_js,
|
|
8088
8088
|
"a": _abort,
|
|
8089
|
-
"
|
|
8089
|
+
"D": _emscripten_asm_const_int,
|
|
8090
8090
|
"xc": _emscripten_date_now,
|
|
8091
8091
|
"wc": _emscripten_get_heap_max,
|
|
8092
8092
|
"F": _emscripten_get_now,
|
|
@@ -8098,11 +8098,11 @@ var asmLibraryArg = {
|
|
|
8098
8098
|
"qc": _emscripten_webgl_create_context,
|
|
8099
8099
|
"pc": _emscripten_webgl_destroy_context,
|
|
8100
8100
|
"oc": _emscripten_webgl_get_context_attributes,
|
|
8101
|
-
"
|
|
8101
|
+
"Ca": _emscripten_webgl_get_current_context,
|
|
8102
8102
|
"nc": _emscripten_webgl_init_context_attributes,
|
|
8103
8103
|
"mc": _emscripten_webgl_make_context_current,
|
|
8104
8104
|
"lc": _emscripten_webgpu_export_bind_group_layout,
|
|
8105
|
-
"
|
|
8105
|
+
"Ba": _emscripten_webgpu_export_device,
|
|
8106
8106
|
"kc": _emscripten_webgpu_export_sampler,
|
|
8107
8107
|
"jc": _emscripten_webgpu_export_texture,
|
|
8108
8108
|
"K": _emscripten_webgpu_get_device,
|
|
@@ -8111,13 +8111,13 @@ var asmLibraryArg = {
|
|
|
8111
8111
|
"V": _emscripten_webgpu_release_js_handle,
|
|
8112
8112
|
"Oc": _environ_get,
|
|
8113
8113
|
"Nc": _environ_sizes_get,
|
|
8114
|
-
"
|
|
8115
|
-
"
|
|
8116
|
-
"
|
|
8117
|
-
"
|
|
8118
|
-
"
|
|
8114
|
+
"Aa": _exit,
|
|
8115
|
+
"ma": _fd_close,
|
|
8116
|
+
"Ia": _fd_read,
|
|
8117
|
+
"Tb": _fd_seek,
|
|
8118
|
+
"la": _fd_write,
|
|
8119
8119
|
"gc": _getentropy,
|
|
8120
|
-
"
|
|
8120
|
+
"d": _glActiveTexture,
|
|
8121
8121
|
"aa": _glAttachShader,
|
|
8122
8122
|
"fc": _glBindAttribLocation,
|
|
8123
8123
|
"e": _glBindBuffer,
|
|
@@ -8125,16 +8125,16 @@ var asmLibraryArg = {
|
|
|
8125
8125
|
"v": _glBindFramebuffer,
|
|
8126
8126
|
"b": _glBindTexture,
|
|
8127
8127
|
"u": _glBindVertexArray,
|
|
8128
|
-
"
|
|
8128
|
+
"za": _glBlendEquation,
|
|
8129
8129
|
"dc": _glBlendFunc,
|
|
8130
|
-
"
|
|
8131
|
-
"
|
|
8132
|
-
"
|
|
8133
|
-
"
|
|
8134
|
-
"
|
|
8135
|
-
"
|
|
8136
|
-
"
|
|
8137
|
-
"
|
|
8130
|
+
"p": _glBufferData,
|
|
8131
|
+
"z": _glClear,
|
|
8132
|
+
"fa": _glClearColor,
|
|
8133
|
+
"Rb": _glClientWaitSync,
|
|
8134
|
+
"ya": _glCompileShader,
|
|
8135
|
+
"xa": _glCreateProgram,
|
|
8136
|
+
"wa": _glCreateShader,
|
|
8137
|
+
"C": _glDeleteBuffers,
|
|
8138
8138
|
"Q": _glDeleteFramebuffers,
|
|
8139
8139
|
"n": _glDeleteProgram,
|
|
8140
8140
|
"U": _glDeleteShader,
|
|
@@ -8143,112 +8143,112 @@ var asmLibraryArg = {
|
|
|
8143
8143
|
"P": _glDeleteVertexArrays,
|
|
8144
8144
|
"J": _glDisable,
|
|
8145
8145
|
"t": _glDisableVertexAttribArray,
|
|
8146
|
-
"
|
|
8146
|
+
"o": _glDrawArrays,
|
|
8147
8147
|
"S": _glDrawBuffers,
|
|
8148
|
-
"
|
|
8148
|
+
"cc": _glEnable,
|
|
8149
8149
|
"m": _glEnableVertexAttribArray,
|
|
8150
|
-
"
|
|
8150
|
+
"va": _glFenceSync,
|
|
8151
8151
|
"$": _glFinish,
|
|
8152
8152
|
"I": _glFlush,
|
|
8153
8153
|
"x": _glFramebufferTexture2D,
|
|
8154
|
-
"
|
|
8154
|
+
"ua": _glFramebufferTextureLayer,
|
|
8155
8155
|
"w": _glGenBuffers,
|
|
8156
8156
|
"O": _glGenFramebuffers,
|
|
8157
|
-
"
|
|
8157
|
+
"B": _glGenTextures,
|
|
8158
8158
|
"N": _glGenVertexArrays,
|
|
8159
|
-
"
|
|
8159
|
+
"ta": _glGetAttribLocation,
|
|
8160
8160
|
"_": _glGetError,
|
|
8161
8161
|
"r": _glGetIntegerv,
|
|
8162
|
-
"
|
|
8163
|
-
"
|
|
8164
|
-
"
|
|
8162
|
+
"bc": _glGetProgramiv,
|
|
8163
|
+
"ac": _glGetShaderInfoLog,
|
|
8164
|
+
"$b": _glGetShaderiv,
|
|
8165
8165
|
"H": _glGetString,
|
|
8166
|
-
"
|
|
8167
|
-
"
|
|
8168
|
-
"
|
|
8166
|
+
"_b": _glGetUniformBlockIndex,
|
|
8167
|
+
"g": _glGetUniformLocation,
|
|
8168
|
+
"sa": _glLinkProgram,
|
|
8169
8169
|
"Z": _glPixelStorei,
|
|
8170
8170
|
"ea": _glReadPixels,
|
|
8171
|
-
"
|
|
8172
|
-
"
|
|
8171
|
+
"ra": _glShaderSource,
|
|
8172
|
+
"A": _glTexImage2D,
|
|
8173
8173
|
"Y": _glTexParameterf,
|
|
8174
|
-
"
|
|
8175
|
-
"
|
|
8174
|
+
"qa": _glTexParameterfv,
|
|
8175
|
+
"c": _glTexParameteri,
|
|
8176
8176
|
"da": _glTexStorage2D,
|
|
8177
|
-
"
|
|
8177
|
+
"Zb": _glTexStorage3D,
|
|
8178
8178
|
"R": _glTexSubImage2D,
|
|
8179
|
-
"
|
|
8179
|
+
"Yb": _glTexSubImage3D,
|
|
8180
8180
|
"X": _glUniform1f,
|
|
8181
|
-
"
|
|
8182
|
-
"
|
|
8183
|
-
"
|
|
8184
|
-
"
|
|
8185
|
-
"
|
|
8186
|
-
"
|
|
8187
|
-
"
|
|
8188
|
-
"
|
|
8181
|
+
"f": _glUniform1i,
|
|
8182
|
+
"Xb": _glUniform2f,
|
|
8183
|
+
"Wb": _glUniform2fv,
|
|
8184
|
+
"pa": _glUniform3f,
|
|
8185
|
+
"oa": _glUniform4fv,
|
|
8186
|
+
"Vb": _glUniform4iv,
|
|
8187
|
+
"Ub": _glUniformBlockBinding,
|
|
8188
|
+
"na": _glUniformMatrix4fv,
|
|
8189
8189
|
"j": _glUseProgram,
|
|
8190
8190
|
"l": _glVertexAttribPointer,
|
|
8191
8191
|
"M": _glViewport,
|
|
8192
|
-
"
|
|
8193
|
-
"
|
|
8194
|
-
"
|
|
8195
|
-
"
|
|
8192
|
+
"Pb": mediapipe_create_utility_canvas2d,
|
|
8193
|
+
"Ob": _mediapipe_find_canvas_event_target,
|
|
8194
|
+
"Nb": mediapipe_import_external_texture,
|
|
8195
|
+
"Mb": _mediapipe_webgl_tex_image_drawable,
|
|
8196
8196
|
"Mc": _proc_exit,
|
|
8197
8197
|
"W": _strftime,
|
|
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
|
-
"
|
|
8242
|
-
"
|
|
8243
|
-
"
|
|
8244
|
-
"
|
|
8245
|
-
"
|
|
8246
|
-
"
|
|
8247
|
-
"
|
|
8248
|
-
"
|
|
8249
|
-
"
|
|
8250
|
-
"
|
|
8251
|
-
"
|
|
8198
|
+
"Lb": _strftime_l,
|
|
8199
|
+
"Kb": _wgpuBindGroupLayoutRelease,
|
|
8200
|
+
"Jb": _wgpuBindGroupRelease,
|
|
8201
|
+
"Ib": _wgpuBufferGetMappedRange,
|
|
8202
|
+
"Hb": _wgpuBufferReference,
|
|
8203
|
+
"Gb": _wgpuBufferRelease,
|
|
8204
|
+
"Fb": _wgpuBufferUnmap,
|
|
8205
|
+
"Eb": _wgpuCommandBufferRelease,
|
|
8206
|
+
"Db": _wgpuCommandEncoderBeginComputePass,
|
|
8207
|
+
"Cb": _wgpuCommandEncoderBeginRenderPass,
|
|
8208
|
+
"Bb": _wgpuCommandEncoderCopyBufferToTexture,
|
|
8209
|
+
"Ab": _wgpuCommandEncoderCopyTextureToTexture,
|
|
8210
|
+
"zb": _wgpuCommandEncoderFinish,
|
|
8211
|
+
"yb": _wgpuCommandEncoderRelease,
|
|
8212
|
+
"xb": _wgpuComputePassEncoderDispatchWorkgroups,
|
|
8213
|
+
"wb": _wgpuComputePassEncoderEnd,
|
|
8214
|
+
"vb": _wgpuComputePassEncoderRelease,
|
|
8215
|
+
"ub": _wgpuComputePassEncoderSetBindGroup,
|
|
8216
|
+
"tb": _wgpuComputePassEncoderSetPipeline,
|
|
8217
|
+
"sb": _wgpuComputePipelineGetBindGroupLayout,
|
|
8218
|
+
"rb": _wgpuComputePipelineRelease,
|
|
8219
|
+
"qb": _wgpuDeviceCreateBindGroup,
|
|
8220
|
+
"pb": _wgpuDeviceCreateBuffer,
|
|
8221
|
+
"ob": _wgpuDeviceCreateCommandEncoder,
|
|
8222
|
+
"nb": _wgpuDeviceCreateComputePipeline,
|
|
8223
|
+
"mb": _wgpuDeviceCreateRenderPipeline,
|
|
8224
|
+
"lb": _wgpuDeviceCreateSampler,
|
|
8225
|
+
"kb": _wgpuDeviceCreateShaderModule,
|
|
8226
|
+
"jb": _wgpuDeviceCreateTexture,
|
|
8227
|
+
"ib": _wgpuDeviceGetQueue,
|
|
8228
|
+
"hb": _wgpuDeviceReference,
|
|
8229
|
+
"gb": _wgpuDeviceRelease,
|
|
8230
|
+
"fb": _wgpuPipelineLayoutRelease,
|
|
8231
|
+
"eb": _wgpuQuerySetRelease,
|
|
8232
|
+
"db": _wgpuQueueRelease,
|
|
8233
|
+
"cb": _wgpuQueueSubmit,
|
|
8234
|
+
"Qb": _wgpuQueueWriteBuffer,
|
|
8235
|
+
"bb": _wgpuRenderPassEncoderDraw,
|
|
8236
|
+
"ab": _wgpuRenderPassEncoderEnd,
|
|
8237
|
+
"$a": _wgpuRenderPassEncoderRelease,
|
|
8238
|
+
"_a": _wgpuRenderPassEncoderSetBindGroup,
|
|
8239
|
+
"Za": _wgpuRenderPassEncoderSetPipeline,
|
|
8240
|
+
"Ya": _wgpuRenderPipelineGetBindGroupLayout,
|
|
8241
|
+
"Xa": _wgpuRenderPipelineRelease,
|
|
8242
|
+
"Wa": _wgpuSamplerReference,
|
|
8243
|
+
"Va": _wgpuSamplerRelease,
|
|
8244
|
+
"Ua": _wgpuShaderModuleReference,
|
|
8245
|
+
"Ta": _wgpuShaderModuleRelease,
|
|
8246
|
+
"Sa": _wgpuTextureCreateView,
|
|
8247
|
+
"Ra": _wgpuTextureDestroy,
|
|
8248
|
+
"Qa": _wgpuTextureReference,
|
|
8249
|
+
"Pa": _wgpuTextureRelease,
|
|
8250
|
+
"Oa": _wgpuTextureViewReference,
|
|
8251
|
+
"Na": _wgpuTextureViewRelease
|
|
8252
8252
|
};
|
|
8253
8253
|
|
|
8254
8254
|
var asm = createWasm();
|
|
@@ -8473,9 +8473,9 @@ var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() {
|
|
|
8473
8473
|
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["ne"]).apply(null, arguments);
|
|
8474
8474
|
};
|
|
8475
8475
|
|
|
8476
|
-
var ___start_em_js = Module["___start_em_js"] =
|
|
8476
|
+
var ___start_em_js = Module["___start_em_js"] = 1175340;
|
|
8477
8477
|
|
|
8478
|
-
var ___stop_em_js = Module["___stop_em_js"] =
|
|
8478
|
+
var ___stop_em_js = Module["___stop_em_js"] = 1181902;
|
|
8479
8479
|
|
|
8480
8480
|
Module["addRunDependency"] = addRunDependency;
|
|
8481
8481
|
|
|
Binary file
|