@mediapipe/tasks-vision 1.2.0 → 1.2.1-rc.20261031
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/LICENSE +218 -0
- package/NOTICE +26949 -0
- package/README.md +0 -0
- package/package.json +1 -3
- package/vision.d.ts +17 -19
- package/vision_bundle.cjs +1 -1
- package/vision_bundle.cjs.map +1 -1
- package/vision_bundle.js +1 -1
- package/vision_bundle.js.map +1 -0
- package/vision_bundle.mjs +1 -1
- package/vision_bundle.mjs.map +1 -1
- package/wasm/vision_wasm_internal.js +17 -17
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_module_internal.js +17 -17
- package/wasm/vision_wasm_module_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +0 -9131
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
|
@@ -8363,12 +8363,12 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
|
|
|
8363
8363
|
// End JS library exports
|
|
8364
8364
|
// end include: postlibrary.js
|
|
8365
8365
|
var ASM_CONSTS = {
|
|
8366
|
-
|
|
8366
|
+
1628804: $0 => {
|
|
8367
8367
|
const canvas = Emval.toValue($0);
|
|
8368
8368
|
const context = canvas.getContext("webgpu");
|
|
8369
8369
|
return WebGPU.importJsTexture(context.getCurrentTexture());
|
|
8370
8370
|
},
|
|
8371
|
-
|
|
8371
|
+
1628947: ($0, $1, $2, $3, $4) => {
|
|
8372
8372
|
const drawable = Emval.toValue($0);
|
|
8373
8373
|
const device = WebGPU.getJsObject($1);
|
|
8374
8374
|
const texture = WebGPU.getJsObject($2);
|
|
@@ -8380,7 +8380,7 @@ var ASM_CONSTS = {
|
|
|
8380
8380
|
texture
|
|
8381
8381
|
}, [ width, height ]);
|
|
8382
8382
|
},
|
|
8383
|
-
|
|
8383
|
+
1629206: ($0, $1, $2, $3) => {
|
|
8384
8384
|
const sourceExtTex = Emval.toValue($0);
|
|
8385
8385
|
const device = WebGPU.getJsObject($1);
|
|
8386
8386
|
const sampler = WebGPU.getJsObject($2);
|
|
@@ -8397,29 +8397,29 @@ var ASM_CONSTS = {
|
|
|
8397
8397
|
});
|
|
8398
8398
|
return WebGPU.importJsBindGroup(bindGroup);
|
|
8399
8399
|
},
|
|
8400
|
-
|
|
8400
|
+
1629576: ($0, $1) => {
|
|
8401
8401
|
const input = Emval.toValue($0);
|
|
8402
8402
|
const output = Emval.toValue($1);
|
|
8403
8403
|
const ctx = output.getContext("2d");
|
|
8404
8404
|
ctx.drawImage(input, 0, 0, output.width, output.height);
|
|
8405
8405
|
},
|
|
8406
|
-
|
|
8406
|
+
1629741: ($0, $1) => {
|
|
8407
8407
|
const inputArray = Emval.toValue($0);
|
|
8408
8408
|
const output = Emval.toValue($1);
|
|
8409
8409
|
const ctx = output.getContext("2d");
|
|
8410
8410
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
8411
8411
|
ctx.putImageData(image_data, 0, 0);
|
|
8412
8412
|
},
|
|
8413
|
-
|
|
8413
|
+
1629965: ($0, $1) => {
|
|
8414
8414
|
const input = Emval.toValue($0);
|
|
8415
8415
|
const outputArray = Emval.toValue($1);
|
|
8416
8416
|
const ctx = input.getContext("2d");
|
|
8417
8417
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
8418
8418
|
outputArray.set(data.data);
|
|
8419
8419
|
},
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8420
|
+
1630169: () => (typeof HTMLCanvasElement !== "undefined"),
|
|
8421
|
+
1630224: () => !!Module["preinitializedWebGPUDevice"],
|
|
8422
|
+
1630275: () => {
|
|
8423
8423
|
specialHTMLTargets["#canvas"] = Module.canvas;
|
|
8424
8424
|
}
|
|
8425
8425
|
};
|
|
@@ -8877,7 +8877,7 @@ var wasmImports = {
|
|
|
8877
8877
|
/** @export */ dd: JsOnSimpleListenerUint,
|
|
8878
8878
|
/** @export */ cd: JsOnUint8ArrayImageListener,
|
|
8879
8879
|
/** @export */ bd: JsOnUint8ArrayImageVectorListener,
|
|
8880
|
-
/** @export */
|
|
8880
|
+
/** @export */ S: JsOnVectorFinishedListener,
|
|
8881
8881
|
/** @export */ ad: JsOnVectorListenerBool,
|
|
8882
8882
|
/** @export */ $c: JsOnVectorListenerDouble,
|
|
8883
8883
|
/** @export */ _c: JsOnVectorListenerFloat,
|
|
@@ -8946,7 +8946,7 @@ var wasmImports = {
|
|
|
8946
8946
|
/** @export */ Ma: _emscripten_errn,
|
|
8947
8947
|
/** @export */ rc: _emscripten_get_heap_max,
|
|
8948
8948
|
/** @export */ y: _emscripten_get_now,
|
|
8949
|
-
/** @export */
|
|
8949
|
+
/** @export */ R: _emscripten_has_asyncify,
|
|
8950
8950
|
/** @export */ qc: _emscripten_outn,
|
|
8951
8951
|
/** @export */ pc: _emscripten_pc_get_function,
|
|
8952
8952
|
/** @export */ oc: _emscripten_resize_heap,
|
|
@@ -8995,7 +8995,7 @@ var wasmImports = {
|
|
|
8995
8995
|
/** @export */ ab: _glCreateProgram,
|
|
8996
8996
|
/** @export */ La: _glCreateShader,
|
|
8997
8997
|
/** @export */ p: _glDeleteBuffers,
|
|
8998
|
-
/** @export */
|
|
8998
|
+
/** @export */ U: _glDeleteFramebuffers,
|
|
8999
8999
|
/** @export */ h: _glDeleteProgram,
|
|
9000
9000
|
/** @export */ ia: _glDeleteShader,
|
|
9001
9001
|
/** @export */ ta: _glDeleteSync,
|
|
@@ -9038,16 +9038,16 @@ var wasmImports = {
|
|
|
9038
9038
|
/** @export */ f: _glTexParameteri,
|
|
9039
9039
|
/** @export */ oa: _glTexStorage2D,
|
|
9040
9040
|
/** @export */ Tb: _glTexStorage3D,
|
|
9041
|
-
/** @export */
|
|
9041
|
+
/** @export */ T: _glTexSubImage2D,
|
|
9042
9042
|
/** @export */ Sb: _glTexSubImage3D,
|
|
9043
9043
|
/** @export */ M: _glUniform1f,
|
|
9044
9044
|
/** @export */ na: _glUniform1fv,
|
|
9045
9045
|
/** @export */ e: _glUniform1i,
|
|
9046
|
-
/** @export */
|
|
9046
|
+
/** @export */ Y: _glUniform2f,
|
|
9047
9047
|
/** @export */ Rb: _glUniform2fv,
|
|
9048
9048
|
/** @export */ Ja: _glUniform3f,
|
|
9049
9049
|
/** @export */ Va: _glUniform4f,
|
|
9050
|
-
/** @export */
|
|
9050
|
+
/** @export */ X: _glUniform4fv,
|
|
9051
9051
|
/** @export */ Qb: _glUniform4iv,
|
|
9052
9052
|
/** @export */ Pb: _glUniformBlockBinding,
|
|
9053
9053
|
/** @export */ Ob: _glUniformMatrix2fv,
|
|
@@ -9055,7 +9055,7 @@ var wasmImports = {
|
|
|
9055
9055
|
/** @export */ Ia: _glUniformMatrix4fv,
|
|
9056
9056
|
/** @export */ g: _glUseProgram,
|
|
9057
9057
|
/** @export */ k: _glVertexAttribPointer,
|
|
9058
|
-
/** @export */
|
|
9058
|
+
/** @export */ W: _glViewport,
|
|
9059
9059
|
/** @export */ Ha: hardware_concurrency,
|
|
9060
9060
|
/** @export */ zb: mediapipe_create_utility_canvas2d,
|
|
9061
9061
|
/** @export */ yb: _mediapipe_find_canvas_event_target,
|
|
@@ -9080,7 +9080,7 @@ var wasmImports = {
|
|
|
9080
9080
|
/** @export */ qb: _wgpuDeviceCreateComputePipeline,
|
|
9081
9081
|
/** @export */ pb: _wgpuDeviceCreatePipelineLayout,
|
|
9082
9082
|
/** @export */ Ua: _wgpuDeviceCreateRenderPipeline,
|
|
9083
|
-
/** @export */
|
|
9083
|
+
/** @export */ V: _wgpuDeviceCreateSampler,
|
|
9084
9084
|
/** @export */ da: _wgpuDeviceCreateTexture,
|
|
9085
9085
|
/** @export */ J: _wgpuQueueSubmit,
|
|
9086
9086
|
/** @export */ Ab: _wgpuQueueWriteBuffer,
|
|
Binary file
|
|
@@ -8366,12 +8366,12 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
|
|
|
8366
8366
|
// End JS library exports
|
|
8367
8367
|
// end include: postlibrary.js
|
|
8368
8368
|
var ASM_CONSTS = {
|
|
8369
|
-
|
|
8369
|
+
1628804: $0 => {
|
|
8370
8370
|
const canvas = Emval.toValue($0);
|
|
8371
8371
|
const context = canvas.getContext("webgpu");
|
|
8372
8372
|
return WebGPU.importJsTexture(context.getCurrentTexture());
|
|
8373
8373
|
},
|
|
8374
|
-
|
|
8374
|
+
1628947: ($0, $1, $2, $3, $4) => {
|
|
8375
8375
|
const drawable = Emval.toValue($0);
|
|
8376
8376
|
const device = WebGPU.getJsObject($1);
|
|
8377
8377
|
const texture = WebGPU.getJsObject($2);
|
|
@@ -8383,7 +8383,7 @@ var ASM_CONSTS = {
|
|
|
8383
8383
|
texture
|
|
8384
8384
|
}, [ width, height ]);
|
|
8385
8385
|
},
|
|
8386
|
-
|
|
8386
|
+
1629206: ($0, $1, $2, $3) => {
|
|
8387
8387
|
const sourceExtTex = Emval.toValue($0);
|
|
8388
8388
|
const device = WebGPU.getJsObject($1);
|
|
8389
8389
|
const sampler = WebGPU.getJsObject($2);
|
|
@@ -8400,29 +8400,29 @@ var ASM_CONSTS = {
|
|
|
8400
8400
|
});
|
|
8401
8401
|
return WebGPU.importJsBindGroup(bindGroup);
|
|
8402
8402
|
},
|
|
8403
|
-
|
|
8403
|
+
1629576: ($0, $1) => {
|
|
8404
8404
|
const input = Emval.toValue($0);
|
|
8405
8405
|
const output = Emval.toValue($1);
|
|
8406
8406
|
const ctx = output.getContext("2d");
|
|
8407
8407
|
ctx.drawImage(input, 0, 0, output.width, output.height);
|
|
8408
8408
|
},
|
|
8409
|
-
|
|
8409
|
+
1629741: ($0, $1) => {
|
|
8410
8410
|
const inputArray = Emval.toValue($0);
|
|
8411
8411
|
const output = Emval.toValue($1);
|
|
8412
8412
|
const ctx = output.getContext("2d");
|
|
8413
8413
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
8414
8414
|
ctx.putImageData(image_data, 0, 0);
|
|
8415
8415
|
},
|
|
8416
|
-
|
|
8416
|
+
1629965: ($0, $1) => {
|
|
8417
8417
|
const input = Emval.toValue($0);
|
|
8418
8418
|
const outputArray = Emval.toValue($1);
|
|
8419
8419
|
const ctx = input.getContext("2d");
|
|
8420
8420
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
8421
8421
|
outputArray.set(data.data);
|
|
8422
8422
|
},
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8423
|
+
1630169: () => (typeof HTMLCanvasElement !== "undefined"),
|
|
8424
|
+
1630224: () => !!Module["preinitializedWebGPUDevice"],
|
|
8425
|
+
1630275: () => {
|
|
8426
8426
|
specialHTMLTargets["#canvas"] = Module.canvas;
|
|
8427
8427
|
}
|
|
8428
8428
|
};
|
|
@@ -8880,7 +8880,7 @@ var wasmImports = {
|
|
|
8880
8880
|
/** @export */ dd: JsOnSimpleListenerUint,
|
|
8881
8881
|
/** @export */ cd: JsOnUint8ArrayImageListener,
|
|
8882
8882
|
/** @export */ bd: JsOnUint8ArrayImageVectorListener,
|
|
8883
|
-
/** @export */
|
|
8883
|
+
/** @export */ S: JsOnVectorFinishedListener,
|
|
8884
8884
|
/** @export */ ad: JsOnVectorListenerBool,
|
|
8885
8885
|
/** @export */ $c: JsOnVectorListenerDouble,
|
|
8886
8886
|
/** @export */ _c: JsOnVectorListenerFloat,
|
|
@@ -8949,7 +8949,7 @@ var wasmImports = {
|
|
|
8949
8949
|
/** @export */ Ma: _emscripten_errn,
|
|
8950
8950
|
/** @export */ rc: _emscripten_get_heap_max,
|
|
8951
8951
|
/** @export */ y: _emscripten_get_now,
|
|
8952
|
-
/** @export */
|
|
8952
|
+
/** @export */ R: _emscripten_has_asyncify,
|
|
8953
8953
|
/** @export */ qc: _emscripten_outn,
|
|
8954
8954
|
/** @export */ pc: _emscripten_pc_get_function,
|
|
8955
8955
|
/** @export */ oc: _emscripten_resize_heap,
|
|
@@ -8998,7 +8998,7 @@ var wasmImports = {
|
|
|
8998
8998
|
/** @export */ ab: _glCreateProgram,
|
|
8999
8999
|
/** @export */ La: _glCreateShader,
|
|
9000
9000
|
/** @export */ p: _glDeleteBuffers,
|
|
9001
|
-
/** @export */
|
|
9001
|
+
/** @export */ U: _glDeleteFramebuffers,
|
|
9002
9002
|
/** @export */ h: _glDeleteProgram,
|
|
9003
9003
|
/** @export */ ia: _glDeleteShader,
|
|
9004
9004
|
/** @export */ ta: _glDeleteSync,
|
|
@@ -9041,16 +9041,16 @@ var wasmImports = {
|
|
|
9041
9041
|
/** @export */ f: _glTexParameteri,
|
|
9042
9042
|
/** @export */ oa: _glTexStorage2D,
|
|
9043
9043
|
/** @export */ Tb: _glTexStorage3D,
|
|
9044
|
-
/** @export */
|
|
9044
|
+
/** @export */ T: _glTexSubImage2D,
|
|
9045
9045
|
/** @export */ Sb: _glTexSubImage3D,
|
|
9046
9046
|
/** @export */ M: _glUniform1f,
|
|
9047
9047
|
/** @export */ na: _glUniform1fv,
|
|
9048
9048
|
/** @export */ e: _glUniform1i,
|
|
9049
|
-
/** @export */
|
|
9049
|
+
/** @export */ Y: _glUniform2f,
|
|
9050
9050
|
/** @export */ Rb: _glUniform2fv,
|
|
9051
9051
|
/** @export */ Ja: _glUniform3f,
|
|
9052
9052
|
/** @export */ Va: _glUniform4f,
|
|
9053
|
-
/** @export */
|
|
9053
|
+
/** @export */ X: _glUniform4fv,
|
|
9054
9054
|
/** @export */ Qb: _glUniform4iv,
|
|
9055
9055
|
/** @export */ Pb: _glUniformBlockBinding,
|
|
9056
9056
|
/** @export */ Ob: _glUniformMatrix2fv,
|
|
@@ -9058,7 +9058,7 @@ var wasmImports = {
|
|
|
9058
9058
|
/** @export */ Ia: _glUniformMatrix4fv,
|
|
9059
9059
|
/** @export */ g: _glUseProgram,
|
|
9060
9060
|
/** @export */ k: _glVertexAttribPointer,
|
|
9061
|
-
/** @export */
|
|
9061
|
+
/** @export */ W: _glViewport,
|
|
9062
9062
|
/** @export */ Ha: hardware_concurrency,
|
|
9063
9063
|
/** @export */ zb: mediapipe_create_utility_canvas2d,
|
|
9064
9064
|
/** @export */ yb: _mediapipe_find_canvas_event_target,
|
|
@@ -9083,7 +9083,7 @@ var wasmImports = {
|
|
|
9083
9083
|
/** @export */ qb: _wgpuDeviceCreateComputePipeline,
|
|
9084
9084
|
/** @export */ pb: _wgpuDeviceCreatePipelineLayout,
|
|
9085
9085
|
/** @export */ Ua: _wgpuDeviceCreateRenderPipeline,
|
|
9086
|
-
/** @export */
|
|
9086
|
+
/** @export */ V: _wgpuDeviceCreateSampler,
|
|
9087
9087
|
/** @export */ da: _wgpuDeviceCreateTexture,
|
|
9088
9088
|
/** @export */ J: _wgpuQueueSubmit,
|
|
9089
9089
|
/** @export */ Ab: _wgpuQueueWriteBuffer,
|
|
Binary file
|