getBitmap

open fun getBitmap(nv21Data: Array<Byte>, frameMetadata: FrameMetadata): Bitmap

Converts NV21 format byte to bitmap.


open fun getBitmap(data: ByteBuffer, width: Int, height: Int, rotationDegrees: Int): Bitmap

Converts NV21 format byte buffer to bitmap.


Converts a YUV_420_888 image from CameraX API to a bitmap.