@mediapipe/tasks-vision 0.1.0-alpha-9 → 0.1.0-alpha-11

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.
@@ -1,4 +1,4 @@
1
- // Build 523446140
1
+ // Build 523775288
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
- 1181902: $0 => {
523
+ 1180686: $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
- 1182037: () => {
528
+ 1180821: () => {
529
529
  return typeof HTMLCanvasElement !== "undefined";
530
530
  },
531
- 1182092: ($0, $1, $2, $3, $4) => {
531
+ 1180876: ($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
- 1182343: ($0, $1, $2, $3) => {
543
+ 1181127: ($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
- 1182691: ($0, $1) => {
560
+ 1181475: ($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
- 1182915: ($0, $1) => {
567
+ 1181699: ($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
- 1183119: ($0, $1) => {
574
+ 1181903: ($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
- 1183255: () => {
580
+ 1182039: () => {
581
581
  return !!Module["preinitializedWebGPUDevice"];
582
582
  },
583
- 1183306: () => {
583
+ 1182090: () => {
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
- 1184091: () => {
609
+ 1182875: () => {
610
610
  return typeof wasmOffsetConverter !== "undefined";
611
611
  }
612
612
  };
@@ -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"] = 1175340;
8476
+ var ___start_em_js = Module["___start_em_js"] = 1174124;
8477
8477
 
8478
- var ___stop_em_js = Module["___stop_em_js"] = 1181902;
8478
+ var ___stop_em_js = Module["___stop_em_js"] = 1180686;
8479
8479
 
8480
8480
  Module["addRunDependency"] = addRunDependency;
8481
8481
 
Binary file
@@ -1,4 +1,4 @@
1
- // Build 523446140
1
+ // Build 523775288
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
- 1007374: $0 => {
523
+ 1006158: $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
- 1007509: () => {
528
+ 1006293: () => {
529
529
  return typeof HTMLCanvasElement !== "undefined";
530
530
  },
531
- 1007564: ($0, $1, $2, $3, $4) => {
531
+ 1006348: ($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
- 1007815: ($0, $1, $2, $3) => {
543
+ 1006599: ($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
- 1008163: ($0, $1) => {
560
+ 1006947: ($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
- 1008387: ($0, $1) => {
567
+ 1007171: ($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
- 1008591: ($0, $1) => {
574
+ 1007375: ($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
- 1008727: () => {
580
+ 1007511: () => {
581
581
  return !!Module["preinitializedWebGPUDevice"];
582
582
  },
583
- 1008778: () => {
583
+ 1007562: () => {
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
- 1009563: () => {
609
+ 1008347: () => {
610
610
  return typeof wasmOffsetConverter !== "undefined";
611
611
  }
612
612
  };
@@ -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"] = 1000812;
8466
+ var ___start_em_js = Module["___start_em_js"] = 999596;
8467
8467
 
8468
- var ___stop_em_js = Module["___stop_em_js"] = 1007374;
8468
+ var ___stop_em_js = Module["___stop_em_js"] = 1006158;
8469
8469
 
8470
8470
  Module["addRunDependency"] = addRunDependency;
8471
8471