utils library Null safety

Useful utils

Classes

NativeDataStruct
Image storage structure for VideoWorker.

Functions

convertBGRA8888(List planes, NativeDataStruct data) → void
Converts BGRA8888 to BGR888 format (removing the alpha channel), the result can be passed to VideoWorker.
convertBGRA8888toImageColor(dynamic image) → dynamic
Converts CameraImage in BGRA8888 format to BGR Image.
convertBGRA8888toRGB(List planes, NativeDataStruct data) → void
Converts BGRA8888 to RGB format, the result can be passed to VideoWorker.
convertCameraImageToImageColor(dynamic image) → dynamic
Converts CameraImage (format auto detection) to BGR Image.
convertRAW(List planes, NativeDataStruct data) → void
Concatenates planes into one array, which can be passed to VideoWorker.
convertYUV420toImageColor(dynamic image) → dynamic
Converts CameraImage in YUV format to BGR Image.
cutFaceFromCameraImage(dynamic image, dynamic rect) → dynamic
Cuts out the face from the CameraImage
cutFaceFromImage(dynamic img, dynamic rect) → dynamic
cutFaceFromImageBytes(dynamic imgBytes, dynamic rect) Future
Cuts out the face from encoded image imgBytes
cutFaceImageFromImageBytes(dynamic imgBytes, dynamic rect) Future
Cuts out the face from encoded image imgBytes
getBaseAngle(dynamic controller) int
getLibraryDirectory() Future<String>
getRawData(List planes) → dynamic
getRawDataPointer(List planes) Pointer<Uint8>
loadAssets() Future<String>