@supraio/client-daemon-js 0.0.1-mz-webcodecs.1 → 0.0.1-mz-webcodecs.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supraio/client-daemon-js",
3
- "version": "0.0.1-mz-webcodecs.1",
3
+ "version": "0.0.1-mz-webcodecs.2",
4
4
  "description": "",
5
5
  "main": "sdk.js",
6
6
  "scripts": {
@@ -138892,24 +138892,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
138892
138892
  /* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
138893
138893
  /* */ $s = 11; continue;
138894
138894
  /* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
138895
- s$9[0] = _ref.$val;
138896
- h = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
138895
+ s$4[0] = _ref.$val;
138896
+ h = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
138897
138897
  $s = -1; return ((h)).$get();
138898
138898
  /* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
138899
- s$4[0] = _ref.$val;
138900
- h$1 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
138899
+ s$5[0] = _ref.$val;
138900
+ h$1 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
138901
138901
  h$1.Len = $imul(h$1.Len, (2));
138902
138902
  h$1.Cap = $imul(h$1.Cap, (2));
138903
138903
  $s = -1; return ((h$1)).$get();
138904
138904
  /* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
138905
- s$5[0] = _ref.$val;
138906
- h$2 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
138905
+ s$6[0] = _ref.$val;
138906
+ h$2 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
138907
138907
  h$2.Len = $imul(h$2.Len, (4));
138908
138908
  h$2.Cap = $imul(h$2.Cap, (4));
138909
138909
  $s = -1; return ((h$2)).$get();
138910
138910
  /* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
138911
- s$6[0] = _ref.$val;
138912
- h$3 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
138911
+ s$7[0] = _ref.$val;
138912
+ h$3 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
138913
138913
  h$3.Len = $imul(h$3.Len, (8));
138914
138914
  h$3.Cap = $imul(h$3.Cap, (8));
138915
138915
  $s = -1; return ((h$3)).$get();
@@ -138917,32 +138917,32 @@ $packages["github.com/nuberu/webgl"] = (function() {
138917
138917
  s$10 = _ref.$val;
138918
138918
  $s = -1; return s$10;
138919
138919
  /* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
138920
- s$7[0] = _ref.$val;
138921
- h$4 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
138920
+ s$8[0] = _ref.$val;
138921
+ h$4 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
138922
138922
  h$4.Len = $imul(h$4.Len, (2));
138923
138923
  h$4.Cap = $imul(h$4.Cap, (2));
138924
138924
  $s = -1; return ((h$4)).$get();
138925
138925
  /* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
138926
- s$8[0] = _ref.$val;
138927
- h$5 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
138926
+ s$1[0] = _ref.$val;
138927
+ h$5 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
138928
138928
  h$5.Len = $imul(h$5.Len, (4));
138929
138929
  h$5.Cap = $imul(h$5.Cap, (4));
138930
138930
  $s = -1; return ((h$5)).$get();
138931
138931
  /* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
138932
- s$3[0] = _ref.$val;
138933
- h$6 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
138932
+ s$9[0] = _ref.$val;
138933
+ h$6 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
138934
138934
  h$6.Len = $imul(h$6.Len, (8));
138935
138935
  h$6.Cap = $imul(h$6.Cap, (8));
138936
138936
  $s = -1; return ((h$6)).$get();
138937
138937
  /* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
138938
- s$1[0] = _ref.$val;
138939
- h$7 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
138938
+ s$2[0] = _ref.$val;
138939
+ h$7 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
138940
138940
  h$7.Len = $imul(h$7.Len, (4));
138941
138941
  h$7.Cap = $imul(h$7.Cap, (4));
138942
138942
  $s = -1; return ((h$7)).$get();
138943
138943
  /* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
138944
- s$2[0] = _ref.$val;
138945
- h$8 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
138944
+ s$3[0] = _ref.$val;
138945
+ h$8 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
138946
138946
  h$8.Len = $imul(h$8.Len, (8));
138947
138947
  h$8.Cap = $imul(h$8.Cap, (8));
138948
138948
  $s = -1; return ((h$8)).$get();
Binary file
@@ -138402,24 +138402,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
138402
138402
  /* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
138403
138403
  /* */ $s = 11; continue;
138404
138404
  /* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
138405
- s$8[0] = _ref.$val;
138406
- h = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
138405
+ s$5[0] = _ref.$val;
138406
+ h = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
138407
138407
  $s = -1; return ((h)).$get();
138408
138408
  /* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
138409
- s$2[0] = _ref.$val;
138410
- h$1 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
138409
+ s$6[0] = _ref.$val;
138410
+ h$1 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
138411
138411
  h$1.Len = $imul(h$1.Len, (2));
138412
138412
  h$1.Cap = $imul(h$1.Cap, (2));
138413
138413
  $s = -1; return ((h$1)).$get();
138414
138414
  /* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
138415
- s$3[0] = _ref.$val;
138416
- h$2 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
138415
+ s$1[0] = _ref.$val;
138416
+ h$2 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
138417
138417
  h$2.Len = $imul(h$2.Len, (4));
138418
138418
  h$2.Cap = $imul(h$2.Cap, (4));
138419
138419
  $s = -1; return ((h$2)).$get();
138420
138420
  /* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
138421
- s$9[0] = _ref.$val;
138422
- h$3 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
138421
+ s$7[0] = _ref.$val;
138422
+ h$3 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
138423
138423
  h$3.Len = $imul(h$3.Len, (8));
138424
138424
  h$3.Cap = $imul(h$3.Cap, (8));
138425
138425
  $s = -1; return ((h$3)).$get();
@@ -138427,32 +138427,32 @@ $packages["github.com/nuberu/webgl"] = (function() {
138427
138427
  s$10 = _ref.$val;
138428
138428
  $s = -1; return s$10;
138429
138429
  /* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
138430
- s$4[0] = _ref.$val;
138431
- h$4 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
138430
+ s$2[0] = _ref.$val;
138431
+ h$4 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
138432
138432
  h$4.Len = $imul(h$4.Len, (2));
138433
138433
  h$4.Cap = $imul(h$4.Cap, (2));
138434
138434
  $s = -1; return ((h$4)).$get();
138435
138435
  /* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
138436
- s$5[0] = _ref.$val;
138437
- h$5 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
138436
+ s$8[0] = _ref.$val;
138437
+ h$5 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
138438
138438
  h$5.Len = $imul(h$5.Len, (4));
138439
138439
  h$5.Cap = $imul(h$5.Cap, (4));
138440
138440
  $s = -1; return ((h$5)).$get();
138441
138441
  /* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
138442
- s$6[0] = _ref.$val;
138443
- h$6 = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
138442
+ s$3[0] = _ref.$val;
138443
+ h$6 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
138444
138444
  h$6.Len = $imul(h$6.Len, (8));
138445
138445
  h$6.Cap = $imul(h$6.Cap, (8));
138446
138446
  $s = -1; return ((h$6)).$get();
138447
138447
  /* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
138448
- s$7[0] = _ref.$val;
138449
- h$7 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
138448
+ s$9[0] = _ref.$val;
138449
+ h$7 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
138450
138450
  h$7.Len = $imul(h$7.Len, (4));
138451
138451
  h$7.Cap = $imul(h$7.Cap, (4));
138452
138452
  $s = -1; return ((h$7)).$get();
138453
138453
  /* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
138454
- s$1[0] = _ref.$val;
138455
- h$8 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
138454
+ s$4[0] = _ref.$val;
138455
+ h$8 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
138456
138456
  h$8.Len = $imul(h$8.Len, (8));
138457
138457
  h$8.Cap = $imul(h$8.Cap, (8));
138458
138458
  $s = -1; return ((h$8)).$get();
@@ -143494,7 +143494,12 @@ $packages["github.com/supraio/client-daemon/pkg/x264/h264decoder"] = (function()
143494
143494
  /* */ } return; } if ($f === undefined) { $f = { $blk: H264Decoder.ptr.prototype.Decode }; } $f._q = _q; $f._q$1 = _q$1; $f._q$2 = _q$2; $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f.cSize = cSize; $f.cStride = cStride; $f.height = height; $f.heightIndex = heightIndex; $f.m = m; $f.nal = nal; $f.outputBuffer = outputBuffer; $f.pHeight = pHeight; $f.pPicture = pPicture; $f.pWidth = pWidth; $f.pictureBuffer = pictureBuffer; $f.pictureBufferOffset = pictureBufferOffset; $f.pictureIndex = pictureIndex; $f.pictureLen = pictureLen; $f.status = status; $f.width = width; $f.widthIndex = widthIndex; $f.x = x; $f.x$1 = x$1; $f.ySize = ySize; $f.yStride = yStride; $f.ycbcrJSImg = ycbcrJSImg; $f.$s = $s; $f.$r = $r; return $f;
143495
143495
  };
143496
143496
  H264Decoder.prototype.Decode = function(nal, outputBuffer) { return this.$val.Decode(nal, outputBuffer); };
143497
- ptrType$1.methods = [{prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$1, general.OutputBuffer], [$error], false)}];
143497
+ H264Decoder.ptr.prototype.Release = function(outputBuffer) {
143498
+ var m, outputBuffer;
143499
+ m = this;
143500
+ };
143501
+ H264Decoder.prototype.Release = function(outputBuffer) { return this.$val.Release(outputBuffer); };
143502
+ ptrType$1.methods = [{prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$1, general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}];
143498
143503
  H264Decoder.init("github.com/supraio/client-daemon/pkg/x264/h264decoder", [{prop: "decoder", name: "decoder", embedded: false, exported: false, typ: js.Value, tag: ""}, {prop: "nalBuffer", name: "nalBuffer", embedded: false, exported: false, typ: js.Value, tag: ""}]);
143499
143504
  $init = function() {
143500
143505
  $pkg.$init = function() {};
@@ -143742,6 +143747,21 @@ $packages["github.com/supraio/client-daemon/pkg/x264/webcodecs"] = (function() {
143742
143747
  /* */ } return; } if ($f === undefined) { $f = { $blk: Decoder.ptr.prototype.Decode }; } $f._arg = _arg; $f._r = _r; $f._r$1 = _r$1; $f._r$10 = _r$10; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f._r$8 = _r$8; $f._r$9 = _r$9; $f._tuple = _tuple; $f.chunk = chunk; $f.chunkOpts = chunkOpts; $f.d = d; $f.err = err; $f.errDec = errDec; $f.errMessage = errMessage; $f.frame = frame; $f.frameData = frameData; $f.framePromise = framePromise; $f.framePromiseCb = framePromiseCb; $f.frameType = frameType; $f.nal = nal; $f.outputBuffer = outputBuffer; $f.racePromise = racePromise; $f.timeoutPromise = timeoutPromise; $f.timeoutPromiseCb = timeoutPromiseCb; $f.x = x; $f.ycbcrJSImg = ycbcrJSImg; $f.$s = $s; $f.$r = $r; return $f;
143743
143748
  };
143744
143749
  Decoder.prototype.Decode = function(nal, outputBuffer) { return this.$val.Decode(nal, outputBuffer); };
143750
+ Decoder.ptr.prototype.Release = function(outputBuffer) {
143751
+ var _r, m, outputBuffer, ycbcrJSImg, $s, $r;
143752
+ /* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; m = $f.m; outputBuffer = $f.outputBuffer; ycbcrJSImg = $f.ycbcrJSImg; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
143753
+ m = this;
143754
+ ycbcrJSImg = $assertType(outputBuffer, ptrType$1).YCbCrJS();
143755
+ /* */ if (!(ycbcrJSImg.CanvasImageSource === ptrType.nil)) { $s = 1; continue; }
143756
+ /* */ $s = 2; continue;
143757
+ /* if (!(ycbcrJSImg.CanvasImageSource === ptrType.nil)) { */ case 1:
143758
+ _r = $clone(ycbcrJSImg.CanvasImageSource, js.Value).Call("close", new sliceType$1([])); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
143759
+ _r;
143760
+ /* } */ case 2:
143761
+ $s = -1; return;
143762
+ /* */ } return; } if ($f === undefined) { $f = { $blk: Decoder.ptr.prototype.Release }; } $f._r = _r; $f.m = m; $f.outputBuffer = outputBuffer; $f.ycbcrJSImg = ycbcrJSImg; $f.$s = $s; $f.$r = $r; return $f;
143763
+ };
143764
+ Decoder.prototype.Release = function(outputBuffer) { return this.$val.Release(outputBuffer); };
143745
143765
  Decoder.ptr.prototype.jsSafeDecode = function(chunk) {
143746
143766
  var _r, chunk, d, err, $s, $deferred, $r;
143747
143767
  /* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; chunk = $f.chunk; d = $f.d; err = $f.err; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
@@ -143768,7 +143788,7 @@ $packages["github.com/supraio/client-daemon/pkg/x264/webcodecs"] = (function() {
143768
143788
  /* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return err[0]; } if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: Decoder.ptr.prototype.jsSafeDecode }; } $f._r = _r; $f.chunk = chunk; $f.d = d; $f.err = err; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
143769
143789
  };
143770
143790
  Decoder.prototype.jsSafeDecode = function(chunk) { return this.$val.jsSafeDecode(chunk); };
143771
- ptrType$2.methods = [{prop: "configure", name: "configure", pkg: "github.com/supraio/client-daemon/pkg/x264/webcodecs", typ: $funcType([], [], false)}, {prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$2, general.OutputBuffer], [$error], false)}, {prop: "jsSafeDecode", name: "jsSafeDecode", pkg: "github.com/supraio/client-daemon/pkg/x264/webcodecs", typ: $funcType([js.Value], [$error], false)}];
143791
+ ptrType$2.methods = [{prop: "configure", name: "configure", pkg: "github.com/supraio/client-daemon/pkg/x264/webcodecs", typ: $funcType([], [], false)}, {prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$2, general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}, {prop: "jsSafeDecode", name: "jsSafeDecode", pkg: "github.com/supraio/client-daemon/pkg/x264/webcodecs", typ: $funcType([js.Value], [$error], false)}];
143772
143792
  Decoder.init("github.com/supraio/client-daemon/pkg/x264/webcodecs", [{prop: "jsVideoDecoder", name: "jsVideoDecoder", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "resolves", name: "resolves", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "rejects", name: "rejects", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "wasKeyFrame", name: "wasKeyFrame", embedded: false, exported: false, typ: $Bool, tag: ""}]);
143773
143793
  $init = function() {
143774
143794
  $pkg.$init = function() {};
@@ -143834,9 +143854,18 @@ $packages["github.com/supraio/client-daemon/pkg/x264"] = (function() {
143834
143854
  /* */ } return; } if ($f === undefined) { $f = { $blk: H264Decoder.ptr.prototype.Decode }; } $f._r = _r; $f.m = m; $f.nal = nal; $f.outputBuffer = outputBuffer; $f.$s = $s; $f.$r = $r; return $f;
143835
143855
  };
143836
143856
  H264Decoder.prototype.Decode = function(nal, outputBuffer) { return this.$val.Decode(nal, outputBuffer); };
143837
- ptrType.methods = [{prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$1, general.OutputBuffer], [$error], false)}];
143857
+ H264Decoder.ptr.prototype.Release = function(outputBuffer) {
143858
+ var m, outputBuffer, $s, $r;
143859
+ /* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; m = $f.m; outputBuffer = $f.outputBuffer; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
143860
+ m = this;
143861
+ $r = m.decoder.Release(outputBuffer); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
143862
+ $s = -1; return;
143863
+ /* */ } return; } if ($f === undefined) { $f = { $blk: H264Decoder.ptr.prototype.Release }; } $f.m = m; $f.outputBuffer = outputBuffer; $f.$s = $s; $f.$r = $r; return $f;
143864
+ };
143865
+ H264Decoder.prototype.Release = function(outputBuffer) { return this.$val.Release(outputBuffer); };
143866
+ ptrType.methods = [{prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$1, general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}];
143838
143867
  H264Decoder.init("github.com/supraio/client-daemon/pkg/x264", [{prop: "decoder", name: "decoder", embedded: false, exported: false, typ: Decoder, tag: ""}]);
143839
- Decoder.init([{prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$1, general.OutputBuffer], [$error], false)}]);
143868
+ Decoder.init([{prop: "Decode", name: "Decode", pkg: "", typ: $funcType([sliceType$1, general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}]);
143840
143869
  $init = function() {
143841
143870
  $pkg.$init = function() {};
143842
143871
  /* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
@@ -144925,8 +144954,8 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
144925
144954
  };
144926
144955
  $pkg.NewX264FrameRenderer = NewX264FrameRenderer;
144927
144956
  X264FrameRenderer.ptr.prototype.Render = function(frame) {
144928
- var _arg, _arg$1, _arg$2, _r, _r$1, _r$2, _r$3, _tuple, err, err$1, frame, r, $s, $r;
144929
- /* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _arg = $f._arg; _arg$1 = $f._arg$1; _arg$2 = $f._arg$2; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _tuple = $f._tuple; err = $f.err; err$1 = $f.err$1; frame = $f.frame; r = $f.r; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
144957
+ var _arg, _arg$1, _arg$2, _r, _r$1, _r$2, _r$3, _tuple, err, err$1, frame, r, $s, $deferred, $r;
144958
+ /* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _arg = $f._arg; _arg$1 = $f._arg$1; _arg$2 = $f._arg$2; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _tuple = $f._tuple; err = $f.err; err$1 = $f.err$1; frame = $f.frame; r = $f.r; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
144930
144959
  r = this;
144931
144960
  err = $ifaceNil;
144932
144961
  /* */ if (r.dec === ptrType$12.nil) { $s = 1; continue; }
@@ -144946,6 +144975,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
144946
144975
  /* } else { */ case 2:
144947
144976
  _r$1 = r.dec.Decode(frame.buffer, r.screenBuffer); /* */ $s = 8; case 8: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
144948
144977
  err$1 = _r$1;
144978
+ $deferred.push([$methodVal(r.dec, "Release"), [r.screenBuffer]]);
144949
144979
  /* */ if (!($interfaceIsEqual(err$1, $ifaceNil))) { $s = 9; continue; }
144950
144980
  /* */ $s = 10; continue;
144951
144981
  /* if (!($interfaceIsEqual(err$1, $ifaceNil))) { */ case 9:
@@ -144961,7 +144991,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
144961
144991
  _r$3;
144962
144992
  /* } */ case 3:
144963
144993
  $s = -1; return;
144964
- /* */ } return; } if ($f === undefined) { $f = { $blk: X264FrameRenderer.ptr.prototype.Render }; } $f._arg = _arg; $f._arg$1 = _arg$1; $f._arg$2 = _arg$2; $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._tuple = _tuple; $f.err = err; $f.err$1 = err$1; $f.frame = frame; $f.r = r; $f.$s = $s; $f.$r = $r; return $f;
144994
+ /* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: X264FrameRenderer.ptr.prototype.Render }; } $f._arg = _arg; $f._arg$1 = _arg$1; $f._arg$2 = _arg$2; $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._tuple = _tuple; $f.err = err; $f.err$1 = err$1; $f.frame = frame; $f.r = r; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
144965
144995
  };
144966
144996
  X264FrameRenderer.prototype.Render = function(frame) { return this.$val.Render(frame); };
144967
144997
  ptrType$1.methods = [{prop: "GetTimestmap", name: "GetTimestmap", pkg: "", typ: $funcType([], [$Uint64], false)}];