mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
Update native_imaging
This commit is contained in:
parent
e77d5a6dca
commit
1b1dfc7c81
@ -18,8 +18,8 @@ Future<MatrixImageFile> resizeImage(MatrixImageFile file,
|
|||||||
try {
|
try {
|
||||||
final nativeImg = native.Image();
|
final nativeImg = native.Image();
|
||||||
await nativeImg.loadEncoded(file.bytes);
|
await nativeImg.loadEncoded(file.bytes);
|
||||||
file.width = nativeImg.width();
|
file.width = nativeImg.width;
|
||||||
file.height = nativeImg.height();
|
file.height = nativeImg.height;
|
||||||
args = _IsolateArgs(
|
args = _IsolateArgs(
|
||||||
width: file.width, height: file.height, bytes: file.bytes, max: max);
|
width: file.width, height: file.height, bytes: file.bytes, max: max);
|
||||||
nativeImg.free();
|
nativeImg.free();
|
||||||
@ -96,8 +96,8 @@ Future<_IsolateResponse> _isolateFunction(_IsolateArgs args) async {
|
|||||||
final ret = _IsolateResponse(
|
final ret = _IsolateResponse(
|
||||||
blurhash: blurhash,
|
blurhash: blurhash,
|
||||||
jpegBytes: jpegBytes,
|
jpegBytes: jpegBytes,
|
||||||
width: nativeImg.width(),
|
width: nativeImg.width,
|
||||||
height: nativeImg.height());
|
height: nativeImg.height);
|
||||||
|
|
||||||
nativeImg.free();
|
nativeImg.free();
|
||||||
|
|
||||||
|
@ -553,7 +553,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: master
|
ref: master
|
||||||
resolved-ref: bd24832f96537447174aa34ba78eaed7ff05bb8e
|
resolved-ref: "7fef2565e4ab0c3f6a0e0ac19a77c30ea6778e16"
|
||||||
url: "https://gitlab.com/famedly/libraries/native_imaging.git"
|
url: "https://gitlab.com/famedly/libraries/native_imaging.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user