PreviewImageUtil

Util methods to process camera preview images

Functions

Link copied to clipboard
fun convertNV21ToBitmap(nv21Image: ByteArray, imageWidth: Int, imageHeight: Int, imageOrientation: Int = 0): Bitmap

Converts the image byte array in NV21 format to Bitmap

Link copied to clipboard
fun convertYUV420toNV21(image: <Error class: unknown class>): ByteArray

Converts the image in YUV_420_888 to NV21 format

Link copied to clipboard
fun convertYUV420toNV21Fast(image: <Error class: unknown class>): ByteArray

Converts the image in YUV_420_888 to NV21 format with shortcut to improve performance