yuv, but very slow in dev

This commit is contained in:
rustdesk 2022-01-27 23:36:19 +08:00
parent 4e41a8a044
commit b24c997a20
4 changed files with 8 additions and 2 deletions

View File

@ -7,7 +7,9 @@ class PlatformFFI {
static Uint8List getRgba() {
var data = js.context.callMethod('getRgba');
if (data) return Uint8List.sublistView(data);
if (data != null) {
return Uint8List.sublistView(data);
}
return null;
}

3
web/LibYUV.js Normal file

File diff suppressed because one or more lines are too long

BIN
web/LibYUV.wasm Normal file

Binary file not shown.

View File

@ -32,7 +32,8 @@
<title>RustDesk</title>
<link rel="manifest" href="manifest.json">
<script src="ogvjs/ogv.js"></script>
<script type="module" crossorigin src="/assets/index.d55bf9f9.js"></script>
<script src="./LibYUV.js"></script>
<script type="module" crossorigin src="/assets/index.a4c96927.js"></script>
<link rel="modulepreload" href="/assets/vendor.fd8ceed9.js">
</head>
<body>