@supraio/client-daemon-js 0.0.1-mzjsframezerocopy.440 → 0.0.1-mzjsframezerocopy.442
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/daemon.html +1 -1
- package/daemon.js +2 -2
- package/package.json +1 -1
- package/screen.html +1 -1
- package/screen.js +2 -2
- package/sdk.js +4 -4
- package/supra-client-daemon.js +4 -2
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +122 -20
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.wasm
CHANGED
|
Binary file
|
package/supra-client-screen.js
CHANGED
|
@@ -5619,7 +5619,7 @@ $packages["internal/race"] = (function() {
|
|
|
5619
5619
|
return $pkg;
|
|
5620
5620
|
})();
|
|
5621
5621
|
$packages["sync/atomic"] = (function() {
|
|
5622
|
-
var $pkg = {}, $init, js, Value, ptrType$5, CompareAndSwapInt32, CompareAndSwapUint32, CompareAndSwapUint64, CompareAndSwapPointer, AddInt32, LoadInt32, LoadUint32, LoadUint64, LoadPointer, StoreInt32, StoreUint32, StoreUint64, StorePointer, sameType;
|
|
5622
|
+
var $pkg = {}, $init, js, Value, Bool, noCopy, ptrType, ptrType$5, ptrType$6, ptrType$12, b32, SwapUint32, CompareAndSwapInt32, CompareAndSwapUint32, CompareAndSwapUint64, CompareAndSwapPointer, AddInt32, LoadInt32, LoadUint32, LoadUint64, LoadPointer, StoreInt32, StoreUint32, StoreUint64, StorePointer, sameType;
|
|
5623
5623
|
js = $packages["github.com/gopherjs/gopherjs/js"];
|
|
5624
5624
|
Value = $pkg.Value = $newType(0, $kindStruct, "atomic.Value", true, "sync/atomic", true, function(v_) {
|
|
5625
5625
|
this.$val = this;
|
|
@@ -5629,7 +5629,74 @@ $packages["sync/atomic"] = (function() {
|
|
|
5629
5629
|
}
|
|
5630
5630
|
this.v = v_;
|
|
5631
5631
|
});
|
|
5632
|
+
Bool = $pkg.Bool = $newType(0, $kindStruct, "atomic.Bool", true, "sync/atomic", true, function(_$0_, v_) {
|
|
5633
|
+
this.$val = this;
|
|
5634
|
+
if (arguments.length === 0) {
|
|
5635
|
+
this._$0 = new noCopy.ptr();
|
|
5636
|
+
this.v = 0;
|
|
5637
|
+
return;
|
|
5638
|
+
}
|
|
5639
|
+
this._$0 = _$0_;
|
|
5640
|
+
this.v = v_;
|
|
5641
|
+
});
|
|
5642
|
+
noCopy = $pkg.noCopy = $newType(0, $kindStruct, "atomic.noCopy", true, "sync/atomic", false, function() {
|
|
5643
|
+
this.$val = this;
|
|
5644
|
+
if (arguments.length === 0) {
|
|
5645
|
+
return;
|
|
5646
|
+
}
|
|
5647
|
+
});
|
|
5648
|
+
ptrType = $ptrType($Uint32);
|
|
5632
5649
|
ptrType$5 = $ptrType(Value);
|
|
5650
|
+
ptrType$6 = $ptrType(Bool);
|
|
5651
|
+
ptrType$12 = $ptrType(noCopy);
|
|
5652
|
+
Bool.ptr.prototype.Load = function() {
|
|
5653
|
+
var x;
|
|
5654
|
+
x = this;
|
|
5655
|
+
return !((LoadUint32((x.$ptr_v || (x.$ptr_v = new ptrType(function() { return this.$target.v; }, function($v) { this.$target.v = $v; }, x)))) === 0));
|
|
5656
|
+
};
|
|
5657
|
+
Bool.prototype.Load = function() { return this.$val.Load(); };
|
|
5658
|
+
Bool.ptr.prototype.Store = function(val) {
|
|
5659
|
+
var val, x;
|
|
5660
|
+
x = this;
|
|
5661
|
+
StoreUint32((x.$ptr_v || (x.$ptr_v = new ptrType(function() { return this.$target.v; }, function($v) { this.$target.v = $v; }, x))), b32(val));
|
|
5662
|
+
};
|
|
5663
|
+
Bool.prototype.Store = function(val) { return this.$val.Store(val); };
|
|
5664
|
+
Bool.ptr.prototype.Swap = function(new$1) {
|
|
5665
|
+
var new$1, old, x;
|
|
5666
|
+
old = false;
|
|
5667
|
+
x = this;
|
|
5668
|
+
old = !((SwapUint32((x.$ptr_v || (x.$ptr_v = new ptrType(function() { return this.$target.v; }, function($v) { this.$target.v = $v; }, x))), b32(new$1)) === 0));
|
|
5669
|
+
return old;
|
|
5670
|
+
};
|
|
5671
|
+
Bool.prototype.Swap = function(new$1) { return this.$val.Swap(new$1); };
|
|
5672
|
+
Bool.ptr.prototype.CompareAndSwap = function(old, new$1) {
|
|
5673
|
+
var new$1, old, swapped, x;
|
|
5674
|
+
swapped = false;
|
|
5675
|
+
x = this;
|
|
5676
|
+
swapped = CompareAndSwapUint32((x.$ptr_v || (x.$ptr_v = new ptrType(function() { return this.$target.v; }, function($v) { this.$target.v = $v; }, x))), b32(old), b32(new$1));
|
|
5677
|
+
return swapped;
|
|
5678
|
+
};
|
|
5679
|
+
Bool.prototype.CompareAndSwap = function(old, new$1) { return this.$val.CompareAndSwap(old, new$1); };
|
|
5680
|
+
b32 = function(b) {
|
|
5681
|
+
var b;
|
|
5682
|
+
if (b) {
|
|
5683
|
+
return 1;
|
|
5684
|
+
}
|
|
5685
|
+
return 0;
|
|
5686
|
+
};
|
|
5687
|
+
noCopy.ptr.prototype.Lock = function() {
|
|
5688
|
+
};
|
|
5689
|
+
noCopy.prototype.Lock = function() { return this.$val.Lock(); };
|
|
5690
|
+
noCopy.ptr.prototype.Unlock = function() {
|
|
5691
|
+
};
|
|
5692
|
+
noCopy.prototype.Unlock = function() { return this.$val.Unlock(); };
|
|
5693
|
+
SwapUint32 = function(addr, new$1) {
|
|
5694
|
+
var addr, new$1, old;
|
|
5695
|
+
old = addr.$get();
|
|
5696
|
+
addr.$set(new$1);
|
|
5697
|
+
return old;
|
|
5698
|
+
};
|
|
5699
|
+
$pkg.SwapUint32 = SwapUint32;
|
|
5633
5700
|
CompareAndSwapInt32 = function(addr, old, new$1) {
|
|
5634
5701
|
var addr, new$1, old;
|
|
5635
5702
|
if (addr.$get() === old) {
|
|
@@ -5774,7 +5841,11 @@ $packages["sync/atomic"] = (function() {
|
|
|
5774
5841
|
return x.constructor === y.constructor;
|
|
5775
5842
|
};
|
|
5776
5843
|
ptrType$5.methods = [{prop: "Load", name: "Load", pkg: "", typ: $funcType([], [$emptyInterface], false)}, {prop: "Store", name: "Store", pkg: "", typ: $funcType([$emptyInterface], [], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$emptyInterface], [$emptyInterface], false)}, {prop: "CompareAndSwap", name: "CompareAndSwap", pkg: "", typ: $funcType([$emptyInterface, $emptyInterface], [$Bool], false)}, {prop: "checkNew", name: "checkNew", pkg: "sync/atomic", typ: $funcType([$String, $emptyInterface], [], false)}];
|
|
5844
|
+
ptrType$6.methods = [{prop: "Load", name: "Load", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "Store", name: "Store", pkg: "", typ: $funcType([$Bool], [], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Bool], [$Bool], false)}, {prop: "CompareAndSwap", name: "CompareAndSwap", pkg: "", typ: $funcType([$Bool, $Bool], [$Bool], false)}];
|
|
5845
|
+
ptrType$12.methods = [{prop: "Lock", name: "Lock", pkg: "", typ: $funcType([], [], false)}, {prop: "Unlock", name: "Unlock", pkg: "", typ: $funcType([], [], false)}];
|
|
5777
5846
|
Value.init("sync/atomic", [{prop: "v", name: "v", embedded: false, exported: false, typ: $emptyInterface, tag: ""}]);
|
|
5847
|
+
Bool.init("sync/atomic", [{prop: "_$0", name: "_", embedded: false, exported: false, typ: noCopy, tag: ""}, {prop: "v", name: "v", embedded: false, exported: false, typ: $Uint32, tag: ""}]);
|
|
5848
|
+
noCopy.init("", []);
|
|
5778
5849
|
$init = function() {
|
|
5779
5850
|
$pkg.$init = function() {};
|
|
5780
5851
|
/* */ 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:
|
|
@@ -185163,7 +185234,7 @@ $packages["github.com/supraio/client-daemon/pkg/render/netframe/nacltcp"] = (fun
|
|
|
185163
185234
|
return $pkg;
|
|
185164
185235
|
})();
|
|
185165
185236
|
$packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (function() {
|
|
185166
|
-
var $pkg = {}, $init, general, jsdecoder, nacldriver, errs, jshelper, frame, nacltcp, sync, js, NaClDecoder, sliceType, ptrType, ptrType$1, ptrType$2, ptrType$3, sliceType$1, ptrType$4, ptrType$5, IsAvailable, NewDecoder;
|
|
185237
|
+
var $pkg = {}, $init, general, jsdecoder, nacldriver, errs, jshelper, frame, nacltcp, sync, atomic, js, NaClDecoder, sliceType, ptrType, ptrType$1, ptrType$2, ptrType$3, sliceType$1, ptrType$4, ptrType$5, IsAvailable, NewDecoder;
|
|
185167
185238
|
general = $packages["github.com/supraio/client-daemon/pkg/decoder/general"];
|
|
185168
185239
|
jsdecoder = $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder/jsdecoder"];
|
|
185169
185240
|
nacldriver = $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder/nacldriver"];
|
|
@@ -185172,12 +185243,13 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185172
185243
|
frame = $packages["github.com/supraio/client-daemon/pkg/render/frame"];
|
|
185173
185244
|
nacltcp = $packages["github.com/supraio/client-daemon/pkg/render/netframe/nacltcp"];
|
|
185174
185245
|
sync = $packages["sync"];
|
|
185246
|
+
atomic = $packages["sync/atomic"];
|
|
185175
185247
|
js = $packages["syscall/js"];
|
|
185176
185248
|
NaClDecoder = $pkg.NaClDecoder = $newType(0, $kindStruct, "nacldecoder.NaClDecoder", true, "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", true, function(initialized_, renderedDirect_, mutexDecode_, mutexGetPicture_) {
|
|
185177
185249
|
this.$val = this;
|
|
185178
185250
|
if (arguments.length === 0) {
|
|
185179
185251
|
this.initialized = false;
|
|
185180
|
-
this.renderedDirect =
|
|
185252
|
+
this.renderedDirect = new atomic.Bool.ptr(new atomic.noCopy.ptr(), 0);
|
|
185181
185253
|
this.mutexDecode = new sync.Mutex.ptr(0, 0);
|
|
185182
185254
|
this.mutexGetPicture = new sync.Mutex.ptr(0, 0);
|
|
185183
185255
|
return;
|
|
@@ -185201,7 +185273,7 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185201
185273
|
$pkg.IsAvailable = IsAvailable;
|
|
185202
185274
|
NewDecoder = function(header) {
|
|
185203
185275
|
var header;
|
|
185204
|
-
return [new NaClDecoder.ptr(false,
|
|
185276
|
+
return [new NaClDecoder.ptr(false, new atomic.Bool.ptr(new atomic.noCopy.ptr(), 0), $clone(new sync.Mutex.ptr(0, 0), sync.Mutex), $clone(new sync.Mutex.ptr(0, 0), sync.Mutex)), $ifaceNil];
|
|
185205
185277
|
};
|
|
185206
185278
|
$pkg.NewDecoder = NewDecoder;
|
|
185207
185279
|
NaClDecoder.ptr.prototype.initialize = function(param) {
|
|
@@ -185336,6 +185408,7 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185336
185408
|
/* */ $s = 17; continue;
|
|
185337
185409
|
/* if ($assertType(_ref, ptrType$1, true)[1]) { */ case 14:
|
|
185338
185410
|
currentFrame = _ref.$val;
|
|
185411
|
+
m.renderedDirect.Store(false);
|
|
185339
185412
|
nal = currentFrame.Buffer();
|
|
185340
185413
|
/* */ if (!m.initialized) { $s = 18; continue; }
|
|
185341
185414
|
/* */ $s = 19; continue;
|
|
@@ -185357,6 +185430,7 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185357
185430
|
$s = 24; case 24: return $24r;
|
|
185358
185431
|
/* } else if ($assertType(_ref, ptrType$2, true)[1]) { */ case 15:
|
|
185359
185432
|
currentFrame$1 = _ref.$val;
|
|
185433
|
+
m.renderedDirect.Store(true);
|
|
185360
185434
|
/* */ if (!m.initialized) { $s = 25; continue; }
|
|
185361
185435
|
/* */ $s = 26; continue;
|
|
185362
185436
|
/* if (!m.initialized) { */ case 25:
|
|
@@ -185367,11 +185441,12 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185367
185441
|
}
|
|
185368
185442
|
m.initialized = true;
|
|
185369
185443
|
/* } */ case 26:
|
|
185370
|
-
_r$8 = m.
|
|
185444
|
+
_r$8 = m.decodeAndRenderBuffer(jsNaClDecoder, $clone(currentFrame$1.JSBuffer(), js.Value)); /* */ $s = 28; case 28: if($c) { $c = false; _r$8 = _r$8.$blk(); } if (_r$8 && _r$8.$blk !== undefined) { break s; }
|
|
185371
185445
|
$24r$1 = _r$8;
|
|
185372
185446
|
$s = 29; case 29: return $24r$1;
|
|
185373
185447
|
/* } else if ($assertType(_ref, ptrType$3, true)[1]) { */ case 16:
|
|
185374
185448
|
currentFrame$2 = _ref.$val;
|
|
185449
|
+
m.renderedDirect.Store(true);
|
|
185375
185450
|
/* */ if (!m.initialized) { $s = 30; continue; }
|
|
185376
185451
|
/* */ $s = 31; continue;
|
|
185377
185452
|
/* if (!m.initialized) { */ case 30:
|
|
@@ -185407,7 +185482,6 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185407
185482
|
$24r$3 = _r$15;
|
|
185408
185483
|
$s = 46; case 46: return $24r$3;
|
|
185409
185484
|
/* } */ case 44:
|
|
185410
|
-
m.renderedDirect = true;
|
|
185411
185485
|
/* } */ case 17:
|
|
185412
185486
|
$s = -1; return $ifaceNil;
|
|
185413
185487
|
/* */ } return; } var $f = {$blk: NaClDecoder.ptr.prototype.Write, $c: true, $r, $24r, $24r$1, $24r$2, $24r$3, _arg, _r, _r$1, _r$10, _r$11, _r$12, _r$13, _r$14, _r$15, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _r$8, _r$9, _ref, _tuple, currentFrame, currentFrame$1, currentFrame$2, decodePromise, decodeResult, err, err$1, err$2, err$3, err$4, jsNaClDecoder, m, nal, pictureBuffer, pictureUint8Array, someFrame, $s};return $f;
|
|
@@ -185446,16 +185520,48 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185446
185520
|
$24r$1 = _r$6;
|
|
185447
185521
|
$s = 15; case 15: return $24r$1;
|
|
185448
185522
|
/* } */ case 13:
|
|
185449
|
-
m.renderedDirect = false;
|
|
185450
185523
|
$s = -1; return $ifaceNil;
|
|
185451
185524
|
/* */ } return; } var $f = {$blk: NaClDecoder.ptr.prototype.decodeBuffer, $c: true, $r, $24r, $24r$1, _arg, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _tuple, decodeArgs, decodePromise, decodeResult, err, jsNaClDecoder, m, pictureBuffer, $s};return $f;
|
|
185452
185525
|
};
|
|
185453
185526
|
NaClDecoder.prototype.decodeBuffer = function(jsNaClDecoder, pictureBuffer) { return this.$val.decodeBuffer(jsNaClDecoder, pictureBuffer); };
|
|
185527
|
+
NaClDecoder.ptr.prototype.decodeAndRenderBuffer = function(jsNaClDecoder, pictureBuffer) {
|
|
185528
|
+
var {$24r, $24r$1, _arg, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _tuple, decodePromise, decodeResult, err, jsNaClDecoder, m, pictureBuffer, $s, $r, $c} = $restore(this, {jsNaClDecoder, pictureBuffer});
|
|
185529
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
185530
|
+
m = this;
|
|
185531
|
+
$r = m.mutexDecode.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185532
|
+
_r = $clone(jsNaClDecoder, js.Value).Call("decodeAndRender", new sliceType([new pictureBuffer.constructor.elem(pictureBuffer)])); /* */ $s = 2; case 2: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
185533
|
+
decodePromise = $clone(_r, js.Value);
|
|
185534
|
+
_r$1 = jshelper.Await($clone(decodePromise, js.Value)); /* */ $s = 3; case 3: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
185535
|
+
_tuple = _r$1;
|
|
185536
|
+
decodeResult = _tuple[0];
|
|
185537
|
+
err = _tuple[1];
|
|
185538
|
+
$r = m.mutexDecode.Unlock(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185539
|
+
/* */ if (!(err === ptrType.nil)) { $s = 5; continue; }
|
|
185540
|
+
/* */ $s = 6; continue;
|
|
185541
|
+
/* if (!(err === ptrType.nil)) { */ case 5:
|
|
185542
|
+
_r$2 = jshelper.GetError(err); /* */ $s = 7; case 7: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
185543
|
+
_r$3 = _r$2.Error(); /* */ $s = 8; case 8: if($c) { $c = false; _r$3 = _r$3.$blk(); } if (_r$3 && _r$3.$blk !== undefined) { break s; }
|
|
185544
|
+
_arg = new $String(_r$3);
|
|
185545
|
+
_r$4 = errs.Errorf("Failed to decode and render frame: %s", new sliceType([_arg])); /* */ $s = 9; case 9: if($c) { $c = false; _r$4 = _r$4.$blk(); } if (_r$4 && _r$4.$blk !== undefined) { break s; }
|
|
185546
|
+
$24r = _r$4;
|
|
185547
|
+
$s = 10; case 10: return $24r;
|
|
185548
|
+
/* } */ case 6:
|
|
185549
|
+
/* */ if (!(($clone(decodeResult, js.Value).Float() === 0))) { $s = 11; continue; }
|
|
185550
|
+
/* */ $s = 12; continue;
|
|
185551
|
+
/* if (!(($clone(decodeResult, js.Value).Float() === 0))) { */ case 11:
|
|
185552
|
+
_r$5 = errs.Errorf("Failed to decode and render frame with code: %f", new sliceType([new $Float64($clone(decodeResult, js.Value).Float())])); /* */ $s = 13; case 13: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
185553
|
+
$24r$1 = _r$5;
|
|
185554
|
+
$s = 14; case 14: return $24r$1;
|
|
185555
|
+
/* } */ case 12:
|
|
185556
|
+
$s = -1; return $ifaceNil;
|
|
185557
|
+
/* */ } return; } var $f = {$blk: NaClDecoder.ptr.prototype.decodeAndRenderBuffer, $c: true, $r, $24r, $24r$1, _arg, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _tuple, decodePromise, decodeResult, err, jsNaClDecoder, m, pictureBuffer, $s};return $f;
|
|
185558
|
+
};
|
|
185559
|
+
NaClDecoder.prototype.decodeAndRenderBuffer = function(jsNaClDecoder, pictureBuffer) { return this.$val.decodeAndRenderBuffer(jsNaClDecoder, pictureBuffer); };
|
|
185454
185560
|
NaClDecoder.ptr.prototype.NextOutput = function(outputBuffer) {
|
|
185455
185561
|
var {$24r, $24r$1, $24r$2, _arg, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _tuple, err, jsNaClDecoder, m, outputBuffer, picture, picturePromise, $s, $r, $c} = $restore(this, {outputBuffer});
|
|
185456
185562
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
185457
185563
|
m = this;
|
|
185458
|
-
if (m.renderedDirect) {
|
|
185564
|
+
if (m.renderedDirect.Load()) {
|
|
185459
185565
|
$assertType(outputBuffer, ptrType$4).Picture = ptrType.nil;
|
|
185460
185566
|
$s = -1; return $ifaceNil;
|
|
185461
185567
|
}
|
|
@@ -185502,28 +185608,23 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185502
185608
|
var {_r, jsNaClDecoder, m, outputBuffer, picture, x, $s, $r, $c} = $restore(this, {outputBuffer});
|
|
185503
185609
|
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
185504
185610
|
m = this;
|
|
185505
|
-
|
|
185506
|
-
|
|
185611
|
+
picture = $assertType(outputBuffer, ptrType$4).Picture;
|
|
185612
|
+
if (picture === ptrType.nil) {
|
|
185507
185613
|
$s = -1; return;
|
|
185508
185614
|
}
|
|
185509
185615
|
jsNaClDecoder = jsdecoder.GetJsNaClDecoder();
|
|
185510
185616
|
/* */ if (!(jsNaClDecoder === ptrType.nil)) { $s = 1; continue; }
|
|
185511
185617
|
/* */ $s = 2; continue;
|
|
185512
185618
|
/* if (!(jsNaClDecoder === ptrType.nil)) { */ case 1:
|
|
185513
|
-
|
|
185514
|
-
|
|
185515
|
-
/* */ $s = 4; continue;
|
|
185516
|
-
/* if (!(picture === ptrType.nil)) { */ case 3:
|
|
185517
|
-
_r = $clone(jsNaClDecoder, js.Value).Call("recyclePicture", new sliceType([(x = picture, new x.constructor.elem(x))])); /* */ $s = 5; case 5: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
185518
|
-
_r;
|
|
185519
|
-
/* } */ case 4:
|
|
185619
|
+
_r = $clone(jsNaClDecoder, js.Value).Call("recyclePicture", new sliceType([(x = picture, new x.constructor.elem(x))])); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
185620
|
+
_r;
|
|
185520
185621
|
/* } */ case 2:
|
|
185521
185622
|
$s = -1; return;
|
|
185522
185623
|
/* */ } return; } var $f = {$blk: NaClDecoder.ptr.prototype.Release, $c: true, $r, _r, jsNaClDecoder, m, outputBuffer, picture, x, $s};return $f;
|
|
185523
185624
|
};
|
|
185524
185625
|
NaClDecoder.prototype.Release = function(outputBuffer) { return this.$val.Release(outputBuffer); };
|
|
185525
|
-
ptrType$5.methods = [{prop: "initialize", name: "initialize", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([sliceType$1], [$error], false)}, {prop: "reset", name: "reset", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([], [$error], false)}, {prop: "destroy", name: "destroy", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([], [$error], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([frame.FrameInterface], [$error], false)}, {prop: "decodeBuffer", name: "decodeBuffer", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([ptrType, js.Value], [$error], false)}, {prop: "NextOutput", name: "NextOutput", pkg: "", typ: $funcType([general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}];
|
|
185526
|
-
NaClDecoder.init("github.com/supraio/client-daemon/pkg/decoder/nacldecoder", [{prop: "initialized", name: "initialized", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "renderedDirect", name: "renderedDirect", embedded: false, exported: false, typ:
|
|
185626
|
+
ptrType$5.methods = [{prop: "initialize", name: "initialize", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([sliceType$1], [$error], false)}, {prop: "reset", name: "reset", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([], [$error], false)}, {prop: "destroy", name: "destroy", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([], [$error], false)}, {prop: "Write", name: "Write", pkg: "", typ: $funcType([frame.FrameInterface], [$error], false)}, {prop: "decodeBuffer", name: "decodeBuffer", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([ptrType, js.Value], [$error], false)}, {prop: "decodeAndRenderBuffer", name: "decodeAndRenderBuffer", pkg: "github.com/supraio/client-daemon/pkg/decoder/nacldecoder", typ: $funcType([ptrType, js.Value], [$error], false)}, {prop: "NextOutput", name: "NextOutput", pkg: "", typ: $funcType([general.OutputBuffer], [$error], false)}, {prop: "Release", name: "Release", pkg: "", typ: $funcType([general.OutputBuffer], [], false)}];
|
|
185627
|
+
NaClDecoder.init("github.com/supraio/client-daemon/pkg/decoder/nacldecoder", [{prop: "initialized", name: "initialized", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "renderedDirect", name: "renderedDirect", embedded: false, exported: false, typ: atomic.Bool, tag: ""}, {prop: "mutexDecode", name: "mutexDecode", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "mutexGetPicture", name: "mutexGetPicture", embedded: false, exported: false, typ: sync.Mutex, tag: ""}]);
|
|
185527
185628
|
$init = function() {
|
|
185528
185629
|
$pkg.$init = function() {};
|
|
185529
185630
|
/* */ 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:
|
|
@@ -185535,7 +185636,8 @@ $packages["github.com/supraio/client-daemon/pkg/decoder/nacldecoder"] = (functio
|
|
|
185535
185636
|
$r = frame.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185536
185637
|
$r = nacltcp.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185537
185638
|
$r = sync.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185538
|
-
$r =
|
|
185639
|
+
$r = atomic.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185640
|
+
$r = js.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
185539
185641
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
185540
185642
|
};
|
|
185541
185643
|
$pkg.$init = $init;
|