What is the fastest way to encode a bytebuffer image in jpg format?
I use CameraX to capture an image from the camera using ImageAnalysis. The image is received as 3 ByteBuffers (respectively for the Y, U and V planes). I only keep the Y plane ByteBuffer. The other 2 are discarded.
I would like to reduce the size of this ByteBuffer, for example by encoding it in the jpg format.
Is...