draw to buffer

inline

scale video frame when possible

account for different dimensions
This commit is contained in:
mertalev
2025-07-21 13:29:50 +03:00
parent f9687888b0
commit a67374df75
8 changed files with 176 additions and 179 deletions
+8 -2
View File
@@ -51,7 +51,7 @@ class ThumbnailApi {
final String pigeonVar_messageChannelSuffix;
Future<void> setThumbnailToBuffer(
Future<Map<String, int>> setThumbnailToBuffer(
int pointer,
String assetId, {
required int width,
@@ -77,8 +77,14 @@ class ThumbnailApi {
message: pigeonVar_replyList[1] as String?,
details: pigeonVar_replyList[2],
);
} else if (pigeonVar_replyList[0] == null) {
throw PlatformException(
code: 'null-error',
message: 'Host platform returned null value for non-null return value.',
);
} else {
return;
return (pigeonVar_replyList[0] as Map<Object?, Object?>?)!
.cast<String, int>();
}
}
}