Bitmap Utils
Functions
Link copied to clipboard
Converts a YUV_420_888 image from CameraX API to a bitmap.
Converts NV21 format byte to bitmap.
Converts NV21 format byte buffer to bitmap.
Link copied to clipboard
Link copied to clipboard
fun yuv420ThreePlanesToNV21(yuv420888planes: Array<Image.Plane>, width: Int, height: Int): ByteArray
Converts YUV_420_888 to NV21 bytes.