Options to efficiently draw a stream of byte arrays to display in Android
问题 In simple words, all I need to do is display a live stream of video frames in Android (each frame is YUV420 format). I have a callback function where I receieve individual frames as a byte array. Something that looks like this : public void onFrameReceived(byte[] frame, int height, int width, int format) { // display this frame to surfaceview/textureview. } A feasible but slow option is to convert the byte array to a Bitmap and draw to canvas on SurfaceView. In the future, I would ideally