From B,G,R,A bytes (e.g. iOS kCVPixelFormatType_32BGRA camera frames).
B,G,R,A
kCVPixelFormatType_32BGRA
From an Android NV21 buffer (full Y plane followed by interleaved V,U).
From tightly- or loosely-packed R,G,B,A bytes (e.g. Android Bitmap.Config.ARGB_8888 copied to a buffer).
R,G,B,A
Bitmap.Config.ARGB_8888
From separate YUV 4:2:0 planes, e.g. Android ImageProxy YUV_420_888 (planes[0..2]) or an iOS bi-planar NV12 buffer (pass the interleaved UV plane as both uPlane and vPlane with vOffset = 1).
ImageProxy
YUV_420_888
planes[0..2]