Package org.jetbrains.kotlinx.dl.impl.preprocessing.camerax

Functions

imageToByteBuffer
Link copied to clipboard
fun imageToByteBuffer(image: ImageProxy, outputBuffer: ByteArray, pixelCount: Int)

Decoding of YUV_420_888 image to NV21 byte representation.

toBitmap
Link copied to clipboard
fun ImageProxy.toBitmap(applyRotation: Boolean = false): Bitmap

Converts an ImageProxy to a Bitmap. Currently only supports ImageFormat.YUV_420_888 and PixelFormat.RGBA_8888.