@mediapipe/tasks-vision 1.1.1 → 1.2.0-rc.20261017

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.
@@ -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
- 1606134: $0 => {
8366
+ 1610870: $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
- 1606277: ($0, $1, $2, $3, $4) => {
8371
+ 1611013: ($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
- 1606536: ($0, $1, $2, $3) => {
8383
+ 1611272: ($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
- 1606906: ($0, $1) => {
8400
+ 1611642: ($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
- 1607071: ($0, $1) => {
8406
+ 1611807: ($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
- 1607295: ($0, $1) => {
8413
+ 1612031: ($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
- 1607499: () => (typeof HTMLCanvasElement !== "undefined"),
8421
- 1607554: () => !!Module["preinitializedWebGPUDevice"],
8422
- 1607605: () => {
8420
+ 1612235: () => (typeof HTMLCanvasElement !== "undefined"),
8421
+ 1612290: () => !!Module["preinitializedWebGPUDevice"],
8422
+ 1612341: () => {
8423
8423
  specialHTMLTargets["#canvas"] = Module.canvas;
8424
8424
  }
8425
8425
  };
@@ -8860,7 +8860,7 @@ var wasmImports = {
8860
8860
  /** @export */ kd: JsOnEmptyPacketListener,
8861
8861
  /** @export */ jd: JsOnFloat32ArrayImageListener,
8862
8862
  /** @export */ id: JsOnFloat32ArrayImageVectorListener,
8863
- /** @export */ nb: JsOnSimpleListenerBinaryArray,
8863
+ /** @export */ mb: JsOnSimpleListenerBinaryArray,
8864
8864
  /** @export */ hd: JsOnSimpleListenerBool,
8865
8865
  /** @export */ gd: JsOnSimpleListenerDouble,
8866
8866
  /** @export */ fd: JsOnSimpleListenerFloat,
@@ -8880,11 +8880,11 @@ var wasmImports = {
8880
8880
  /** @export */ Uc: JsOnWebGLTextureListener,
8881
8881
  /** @export */ Tc: JsOnWebGLTextureVectorListener,
8882
8882
  /** @export */ Sc: JsWrapErrorListenerInternal,
8883
- /** @export */ mb: JsWrapImageConverter,
8883
+ /** @export */ lb: JsWrapImageConverter,
8884
8884
  /** @export */ Rc: JsWrapLoggingHelpers,
8885
8885
  /** @export */ v: JsWrapSimpleListeners,
8886
- /** @export */ lb: UseBottomLeftGpuOrigin,
8887
- /** @export */ wb: __asyncjs__mediapipe_map_buffer_jspi,
8886
+ /** @export */ kb: UseBottomLeftGpuOrigin,
8887
+ /** @export */ vb: __asyncjs__mediapipe_map_buffer_jspi,
8888
8888
  /** @export */ n: ___cxa_throw,
8889
8889
  /** @export */ Qc: ___syscall_dup,
8890
8890
  /** @export */ Pc: ___syscall_faccessat,
@@ -8898,32 +8898,32 @@ var wasmImports = {
8898
8898
  /** @export */ Jc: ___syscall_lstat64,
8899
8899
  /** @export */ Ic: ___syscall_mkdirat,
8900
8900
  /** @export */ Hc: ___syscall_newfstatat,
8901
- /** @export */ Ra: ___syscall_openat,
8901
+ /** @export */ Qa: ___syscall_openat,
8902
8902
  /** @export */ Gc: ___syscall_readlinkat,
8903
8903
  /** @export */ Fc: ___syscall_rmdir,
8904
8904
  /** @export */ Ec: ___syscall_stat64,
8905
- /** @export */ kb: ___syscall_unlinkat,
8905
+ /** @export */ jb: ___syscall_unlinkat,
8906
8906
  /** @export */ Dc: ___syscall_utimensat,
8907
8907
  /** @export */ yc: __abort_js,
8908
8908
  /** @export */ Hb: __embind_register_bigint,
8909
8909
  /** @export */ xc: __embind_register_bool,
8910
8910
  /** @export */ wc: __embind_register_emval,
8911
- /** @export */ ib: __embind_register_float,
8911
+ /** @export */ hb: __embind_register_float,
8912
8912
  /** @export */ I: __embind_register_integer,
8913
8913
  /** @export */ r: __embind_register_memory_view,
8914
8914
  /** @export */ vc: __embind_register_std_string,
8915
- /** @export */ Pa: __embind_register_std_wstring,
8915
+ /** @export */ Oa: __embind_register_std_wstring,
8916
8916
  /** @export */ uc: __embind_register_void,
8917
8917
  /** @export */ ba: __emval_create_invoker,
8918
8918
  /** @export */ q: __emval_decref,
8919
- /** @export */ Oa: __emval_get_global,
8920
- /** @export */ hb: __emval_get_property,
8919
+ /** @export */ Na: __emval_get_global,
8920
+ /** @export */ gb: __emval_get_property,
8921
8921
  /** @export */ la: __emval_incref,
8922
- /** @export */ Na: __emval_instanceof,
8922
+ /** @export */ Ma: __emval_instanceof,
8923
8923
  /** @export */ aa: __emval_invoke,
8924
- /** @export */ wa: __emval_new_cstring,
8924
+ /** @export */ va: __emval_new_cstring,
8925
8925
  /** @export */ $: __emval_run_destructors,
8926
- /** @export */ gb: __emval_set_property,
8926
+ /** @export */ fb: __emval_set_property,
8927
8927
  /** @export */ tc: __emval_typeof,
8928
8928
  /** @export */ Gb: __gmtime_js,
8929
8929
  /** @export */ Fb: __localtime_js,
@@ -8934,15 +8934,15 @@ var wasmImports = {
8934
8934
  /** @export */ Kb: _clock_time_get,
8935
8935
  /** @export */ rc: custom_emscripten_dbgn,
8936
8936
  /** @export */ _: _emscripten_asm_const_int,
8937
- /** @export */ fb: _emscripten_asm_const_ptr,
8938
- /** @export */ Ma: _emscripten_errn,
8937
+ /** @export */ eb: _emscripten_asm_const_ptr,
8938
+ /** @export */ La: _emscripten_errn,
8939
8939
  /** @export */ qc: _emscripten_get_heap_max,
8940
8940
  /** @export */ y: _emscripten_get_now,
8941
8941
  /** @export */ T: _emscripten_has_asyncify,
8942
8942
  /** @export */ pc: _emscripten_outn,
8943
8943
  /** @export */ oc: _emscripten_pc_get_function,
8944
8944
  /** @export */ nc: _emscripten_resize_heap,
8945
- /** @export */ eb: _emscripten_stack_snapshot,
8945
+ /** @export */ db: _emscripten_stack_snapshot,
8946
8946
  /** @export */ mc: _emscripten_stack_unwind_buffer,
8947
8947
  /** @export */ lc: _emscripten_webgl_create_context,
8948
8948
  /** @export */ kc: _emscripten_webgl_destroy_context,
@@ -8965,51 +8965,51 @@ var wasmImports = {
8965
8965
  /** @export */ ac: _exit,
8966
8966
  /** @export */ ma: _fd_close,
8967
8967
  /** @export */ Jb: _fd_pread,
8968
- /** @export */ jb: _fd_read,
8968
+ /** @export */ ib: _fd_read,
8969
8969
  /** @export */ Ib: _fd_seek,
8970
- /** @export */ Qa: _fd_write,
8970
+ /** @export */ Pa: _fd_write,
8971
8971
  /** @export */ b: _glActiveTexture,
8972
- /** @export */ va: _glAttachShader,
8972
+ /** @export */ ua: _glAttachShader,
8973
8973
  /** @export */ $b: _glBindAttribLocation,
8974
8974
  /** @export */ c: _glBindBuffer,
8975
- /** @export */ db: _glBindBufferBase,
8975
+ /** @export */ cb: _glBindBufferBase,
8976
8976
  /** @export */ t: _glBindFramebuffer,
8977
8977
  /** @export */ a: _glBindTexture,
8978
8978
  /** @export */ m: _glBindVertexArray,
8979
- /** @export */ cb: _glBlendEquation,
8979
+ /** @export */ bb: _glBlendEquation,
8980
8980
  /** @export */ _b: _glBlendFunc,
8981
8981
  /** @export */ j: _glBufferData,
8982
8982
  /** @export */ P: _glClear,
8983
8983
  /** @export */ O: _glClearColor,
8984
8984
  /** @export */ fa: _glClientWaitSync,
8985
8985
  /** @export */ ja: _glColorMask,
8986
- /** @export */ bb: _glCompileShader,
8987
- /** @export */ ab: _glCreateProgram,
8988
- /** @export */ La: _glCreateShader,
8986
+ /** @export */ ab: _glCompileShader,
8987
+ /** @export */ $a: _glCreateProgram,
8988
+ /** @export */ Ka: _glCreateShader,
8989
8989
  /** @export */ p: _glDeleteBuffers,
8990
8990
  /** @export */ S: _glDeleteFramebuffers,
8991
8991
  /** @export */ h: _glDeleteProgram,
8992
8992
  /** @export */ ia: _glDeleteShader,
8993
- /** @export */ ua: _glDeleteSync,
8993
+ /** @export */ ta: _glDeleteSync,
8994
8994
  /** @export */ D: _glDeleteTextures,
8995
8995
  /** @export */ A: _glDeleteVertexArrays,
8996
- /** @export */ $a: _glDetachShader,
8996
+ /** @export */ _a: _glDetachShader,
8997
8997
  /** @export */ H: _glDisable,
8998
8998
  /** @export */ o: _glDisableVertexAttribArray,
8999
8999
  /** @export */ i: _glDrawArrays,
9000
9000
  /** @export */ ha: _glDrawBuffers,
9001
9001
  /** @export */ Zb: _glEnable,
9002
9002
  /** @export */ l: _glEnableVertexAttribArray,
9003
- /** @export */ _a: _glFenceSync,
9004
- /** @export */ ta: _glFinish,
9003
+ /** @export */ Za: _glFenceSync,
9004
+ /** @export */ sa: _glFinish,
9005
9005
  /** @export */ x: _glFlush,
9006
9006
  /** @export */ C: _glFramebufferTexture2D,
9007
- /** @export */ Za: _glFramebufferTextureLayer,
9007
+ /** @export */ Ya: _glFramebufferTextureLayer,
9008
9008
  /** @export */ s: _glGenBuffers,
9009
9009
  /** @export */ Z: _glGenFramebuffers,
9010
9010
  /** @export */ G: _glGenTextures,
9011
9011
  /** @export */ B: _glGenVertexArrays,
9012
- /** @export */ Ya: _glGetAttribLocation,
9012
+ /** @export */ Xa: _glGetAttribLocation,
9013
9013
  /** @export */ ga: _glGetError,
9014
9014
  /** @export */ Yb: _glGetFloatv,
9015
9015
  /** @export */ w: _glGetIntegerv,
@@ -9020,69 +9020,69 @@ var wasmImports = {
9020
9020
  /** @export */ Ub: _glGetUniformBlockIndex,
9021
9021
  /** @export */ d: _glGetUniformLocation,
9022
9022
  /** @export */ Tb: _glLineWidth,
9023
- /** @export */ Xa: _glLinkProgram,
9024
- /** @export */ sa: _glPixelStorei,
9025
- /** @export */ ra: _glReadPixels,
9026
- /** @export */ Ka: _glShaderSource,
9023
+ /** @export */ Wa: _glLinkProgram,
9024
+ /** @export */ ra: _glPixelStorei,
9025
+ /** @export */ qa: _glReadPixels,
9026
+ /** @export */ Ja: _glShaderSource,
9027
9027
  /** @export */ F: _glTexImage2D,
9028
- /** @export */ qa: _glTexParameterf,
9029
- /** @export */ Wa: _glTexParameterfv,
9028
+ /** @export */ pa: _glTexParameterf,
9029
+ /** @export */ Va: _glTexParameterfv,
9030
9030
  /** @export */ f: _glTexParameteri,
9031
- /** @export */ pa: _glTexStorage2D,
9031
+ /** @export */ oa: _glTexStorage2D,
9032
9032
  /** @export */ Sb: _glTexStorage3D,
9033
9033
  /** @export */ Y: _glTexSubImage2D,
9034
9034
  /** @export */ Rb: _glTexSubImage3D,
9035
9035
  /** @export */ M: _glUniform1f,
9036
- /** @export */ oa: _glUniform1fv,
9036
+ /** @export */ na: _glUniform1fv,
9037
9037
  /** @export */ e: _glUniform1i,
9038
9038
  /** @export */ X: _glUniform2f,
9039
9039
  /** @export */ Qb: _glUniform2fv,
9040
- /** @export */ Ja: _glUniform3f,
9041
- /** @export */ Va: _glUniform4f,
9040
+ /** @export */ Ia: _glUniform3f,
9041
+ /** @export */ Ua: _glUniform4f,
9042
9042
  /** @export */ W: _glUniform4fv,
9043
9043
  /** @export */ Pb: _glUniform4iv,
9044
9044
  /** @export */ Ob: _glUniformBlockBinding,
9045
9045
  /** @export */ Nb: _glUniformMatrix2fv,
9046
9046
  /** @export */ Mb: _glUniformMatrix3fv,
9047
- /** @export */ Ia: _glUniformMatrix4fv,
9047
+ /** @export */ Ha: _glUniformMatrix4fv,
9048
9048
  /** @export */ g: _glUseProgram,
9049
9049
  /** @export */ k: _glVertexAttribPointer,
9050
9050
  /** @export */ V: _glViewport,
9051
- /** @export */ zb: mediapipe_create_utility_canvas2d,
9052
- /** @export */ yb: _mediapipe_find_canvas_event_target,
9053
- /** @export */ xb: mediapipe_import_external_texture,
9054
- /** @export */ vb: _mediapipe_webgl_tex_image_drawable,
9051
+ /** @export */ yb: mediapipe_create_utility_canvas2d,
9052
+ /** @export */ xb: _mediapipe_find_canvas_event_target,
9053
+ /** @export */ wb: mediapipe_import_external_texture,
9054
+ /** @export */ ub: _mediapipe_webgl_tex_image_drawable,
9055
9055
  /** @export */ Ac: _proc_exit,
9056
9056
  /** @export */ zc: _random_get,
9057
- /** @export */ Ha: _wgpuCommandEncoderBeginComputePass,
9058
- /** @export */ Ga: _wgpuCommandEncoderBeginRenderPass,
9059
- /** @export */ ub: _wgpuCommandEncoderCopyBufferToTexture,
9060
- /** @export */ tb: _wgpuCommandEncoderCopyTextureToBuffer,
9061
- /** @export */ sb: _wgpuCommandEncoderCopyTextureToTexture,
9057
+ /** @export */ Ga: _wgpuCommandEncoderBeginComputePass,
9058
+ /** @export */ Fa: _wgpuCommandEncoderBeginRenderPass,
9059
+ /** @export */ tb: _wgpuCommandEncoderCopyBufferToTexture,
9060
+ /** @export */ sb: _wgpuCommandEncoderCopyTextureToBuffer,
9061
+ /** @export */ rb: _wgpuCommandEncoderCopyTextureToTexture,
9062
9062
  /** @export */ L: _wgpuCommandEncoderFinish,
9063
- /** @export */ Fa: _wgpuComputePassEncoderDispatchWorkgroups,
9064
- /** @export */ Ea: _wgpuComputePassEncoderEnd,
9065
- /** @export */ Da: _wgpuComputePassEncoderSetBindGroup,
9066
- /** @export */ Ca: _wgpuComputePassEncoderSetPipeline,
9067
- /** @export */ Ba: _wgpuComputePipelineGetBindGroupLayout,
9063
+ /** @export */ Ea: _wgpuComputePassEncoderDispatchWorkgroups,
9064
+ /** @export */ Da: _wgpuComputePassEncoderEnd,
9065
+ /** @export */ Ca: _wgpuComputePassEncoderSetBindGroup,
9066
+ /** @export */ Ba: _wgpuComputePassEncoderSetPipeline,
9067
+ /** @export */ Aa: _wgpuComputePipelineGetBindGroupLayout,
9068
9068
  /** @export */ ea: _wgpuDeviceCreateBindGroup,
9069
- /** @export */ rb: _wgpuDeviceCreateBindGroupLayout,
9069
+ /** @export */ qb: _wgpuDeviceCreateBindGroupLayout,
9070
9070
  /** @export */ K: _wgpuDeviceCreateCommandEncoder,
9071
- /** @export */ qb: _wgpuDeviceCreateComputePipeline,
9072
- /** @export */ pb: _wgpuDeviceCreatePipelineLayout,
9073
- /** @export */ Ua: _wgpuDeviceCreateRenderPipeline,
9071
+ /** @export */ pb: _wgpuDeviceCreateComputePipeline,
9072
+ /** @export */ ob: _wgpuDeviceCreatePipelineLayout,
9073
+ /** @export */ Ta: _wgpuDeviceCreateRenderPipeline,
9074
9074
  /** @export */ U: _wgpuDeviceCreateSampler,
9075
9075
  /** @export */ da: _wgpuDeviceCreateTexture,
9076
9076
  /** @export */ J: _wgpuQueueSubmit,
9077
- /** @export */ na: _wgpuQueueWriteBuffer,
9078
- /** @export */ ob: _wgpuQueueWriteTexture,
9079
- /** @export */ Aa: _wgpuRenderPassEncoderDraw,
9080
- /** @export */ za: _wgpuRenderPassEncoderEnd,
9081
- /** @export */ ya: _wgpuRenderPassEncoderSetBindGroup,
9082
- /** @export */ xa: _wgpuRenderPassEncoderSetPipeline,
9083
- /** @export */ Ta: _wgpuRenderPipelineGetBindGroupLayout,
9077
+ /** @export */ zb: _wgpuQueueWriteBuffer,
9078
+ /** @export */ nb: _wgpuQueueWriteTexture,
9079
+ /** @export */ za: _wgpuRenderPassEncoderDraw,
9080
+ /** @export */ ya: _wgpuRenderPassEncoderEnd,
9081
+ /** @export */ xa: _wgpuRenderPassEncoderSetBindGroup,
9082
+ /** @export */ wa: _wgpuRenderPassEncoderSetPipeline,
9083
+ /** @export */ Sa: _wgpuRenderPipelineGetBindGroupLayout,
9084
9084
  /** @export */ z: _wgpuTextureCreateView,
9085
- /** @export */ Sa: _wgpuTextureDestroy,
9085
+ /** @export */ Ra: _wgpuTextureDestroy,
9086
9086
  /** @export */ ca: _wgpuTextureGetFormat
9087
9087
  };
9088
9088