Hello I have Picture data in byte rgb_565 array, and I want convert it in a productive way into argb array. Right now I have found only one (little slow) way to do this:
Bitmap mPhotoPicture = BitmapFactory.decodeByteArray(imageData, 0 , imageData.length);
where imageData
is my byte[]
array in rgb_565, and then:
int pixels[] = new int[CameraView.PICTURE_HEIGHT*CameraView.PICTURE_WIDTH];
mPhotoPicture.getPixels(pixels, 0,PICTURE_WIDTH, 0, 0, PICTURE_WIDTH, PICTURE_HEIGHT);
The point is I believe creating a Bitmap
object is exacting and not necessary in this case. Is there any other faster way to convert rgb_565 array into argb array?
I need this because making image processing on rgb_565 array seems to be a little annoying. Or maybe it is not so hard?