fix yuv problem
This commit is contained in:
parent
86c6f9446d
commit
e661671329
@ -169,9 +169,8 @@ class FfiModel with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
_decoding = true;
|
_decoding = true;
|
||||||
final pid = FFI.id;
|
final pid = FFI.id;
|
||||||
ui.decodeImageFromPixels(
|
ui.decodeImageFromPixels(rgba, _display.width, _display.height,
|
||||||
rgba, _display.width, _display.height, ui.PixelFormat.bgra8888,
|
isWeb ? ui.PixelFormat.rgba8888 : ui.PixelFormat.bgra8888, (image) {
|
||||||
(image) {
|
|
||||||
PlatformFFI.clearRgbaFrame();
|
PlatformFFI.clearRgbaFrame();
|
||||||
_decoding = false;
|
_decoding = false;
|
||||||
if (FFI.id != pid) return;
|
if (FFI.id != pid) return;
|
||||||
@ -849,7 +848,7 @@ class FFI {
|
|||||||
PlatformFFI.setMethodCallHandler(callback);
|
PlatformFFI.setMethodCallHandler(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<bool> invokeMethod(String method,[ dynamic arguments ]) async {
|
static Future<bool> invokeMethod(String method, [dynamic arguments]) async {
|
||||||
return await PlatformFFI.invokeMethod(method, arguments);
|
return await PlatformFFI.invokeMethod(method, arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
22
web/assets/index.cc17b859.js
Normal file
22
web/assets/index.cc17b859.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -33,8 +33,9 @@
|
|||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
<script src="ogvjs-1.8.6/ogv.js"></script>
|
<script src="ogvjs-1.8.6/ogv.js"></script>
|
||||||
<script src="yuv.js"></script>
|
<script src="yuv.js"></script>
|
||||||
<script type="module" crossorigin src="assets/index.d2272adc.js"></script>
|
<script type="module" crossorigin src="assets/index.cc17b859.js"></script>
|
||||||
<link rel="modulepreload" href="assets/vendor.b7bb6fa2.js">
|
<link rel="modulepreload" href="assets/vendor.b7bb6fa2.js">
|
||||||
|
<script src="yuv-canvas-1.2.6.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.loading {
|
.loading {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
1234
web/yuv-canvas-1.2.6.js
Normal file
1234
web/yuv-canvas-1.2.6.js
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user