I'm getting a byte array from a JNI call, and trying to construct a Bitmap object with it.
My problem is, the following code, returns null.
byte[] image = services.getImageBuffer(1024, 600);
Bitmap bmp = BitmapFactory.decodeByteArray(image, 0, image.length);
Any tips about it?
PS: The pixel layout is BGR, not a RGB.