convertBGRA8888 function

Image convertBGRA8888(
  1. CameraImage image
)

Implementation

imglib.Image convertBGRA8888(CameraImage image) {
  return imglib.Image.fromBytes(
    image.width,
    image.height,
    image.planes[0].bytes,
    format: imglib.Format.bgra,
  );
}