Abdullah Musa
11/18/2023, 12:28 PMVideoFrames
.
How can I achieve this?Dominaezzz
11/18/2023, 5:17 PMAbdullah Musa
11/18/2023, 8:11 PMNativeI420Buffer
with these properties:
ByteBuffer dataY;
ByteBuffer dataU;
ByteBuffer dataV;
int strideY;
int strideU;
int strideV;
int width;
int height;
Timo Drick
12/02/2023, 12:25 PMval skiaFormat = ImageInfo(targetWidth, targetHeight, ColorType.BGRA_8888, ColorAlphaType.OPAQUE)
val bufferBitmap = Bitmap().also {
it.allocPixels(skiaFormat)
}
// Than you can put data into this bitmap:
bufferBitmap.installPixels(jArray) // this is a ByteArray with the data in correct format.