Hi all!
I am happy to release my first lib, which converts from default camera preview format to ARGB888. The processing method has been written in C and included in the java library (which does not anything more)
The library is included in the attached zip, with a modified version of the cameraEx class example. So, Erel's camera library will be needed to run the example.
What it does:
I don't have much time, but if someone finds it useful for processing, I will add a function which makes the conversion directly onto an array instead of a bitmap.
Please let me know if you decide to use it or find any issues with it.
I am happy to release my first lib, which converts from default camera preview format to ARGB888. The processing method has been written in C and included in the java library (which does not anything more)
The library is included in the attached zip, with a modified version of the cameraEx class example. So, Erel's camera library will be needed to run the example.
What it does:
- Takes the preview byte array and converts i to ARGB888, rotating and flipping if necessary. putting the result into a mutablebitmap previously generated by the user. So, no need to create and destroy bitmaps each time. (Important: the mutableBitmap must have been created with the proper final orientation and properly scaled dimensions). Also, the mutablebitmap is supposed to be ARGB888 format. If these requirements are not met, the routine will return and do nothing.
- User can specify the subsampling (1,2,4 or 8, only these values). Depending on your needs, not always full resolution is needed and process time can be decreased this way.
- It has been compiled for arm devices. Next release I will try to add other plattforms
- much faster options may exist over there. In case anybody knows of other simple approaches, please let me know, since I am also interested in it.
I don't have much time, but if someone finds it useful for processing, I will add a function which makes the conversion directly onto an array instead of a bitmap.
Please let me know if you decide to use it or find any issues with it.