getPixelBuffer
Gets the pixels of this GPUFrame: width * height * 3 values of dataType (1 byte for DataType.INT8 and DataType.UINT8, 2 for DataType.FLOAT16, 4 for DataType.FLOAT32, in the platform's native byte order, little-endian on every supported device), arranged as pixelLayout describes.
Unlike VisionCamera's ArrayBuffer, the returned ByteArray is a copy of the GPU buffer, so it stays valid after this GPUFrame is disposed. To read the GPU buffer without copying (valid until this GPUFrame is disposed), use getPixelByteBuffer() on Android or getPixelData() on iOS.
Throws
If this GPUFrame has already been disposed.