I have a raw rgb file with me , where each frame data is (240 * 200 * 2) (width * height * each pixel has 2 byte ).
I am reading this much data each time and passing to BitmapFactory.decodeByteArray
I am using the following function in BitmapFactory static class to decode the buffer into bitmap
usage is as follows
but what the function returns is a null image
can anyone guide me where I'm facing the problem