I’m trying to load phone cam stream as a texture for a Quad geometry.
Right now , I have to save the android.image to a jpeg file then use assetManager to load it.
or set the Image format as Pixel.rgba888 then I have no difficulty to copy data buffer to a JME texture2D.
Problem for me is, only jpeg format is guaranteed for all android phones.
Is there a way to just transfer the Android.Image jpeg buffer data into a rgba format data ?
Regarding your query, converting Android.Image jpeg buffer data into RGBA format might require some custom processing. You could explore libraries or APIs that specialize in image manipulation to facilitate this conversion seamlessly. It might involve decoding the JPEG data and then re-encoding it into the desired RGBA format.