I'm working with my new app which processed captured image from cellphone camera. My phone is Nexus S, 2.3.4.
I create a ARGB_8888 Bitmap with captured data. I know the ndk image lib, but it's only support 2.2 and above. So I pass the int[] of Bitmap to NDK and found the color byte order is little-endian.
I searched the wiki and found arm architecture is bi-endian. http://en.wikipedia.org/wiki/Endianness#Bi-endian_hardware
My question is if arm is bi-endian, how to judge the byte order in specific device? Should I test the byte order every time before access the data?