Endianness of Android NDK

后端 未结 7 1055
生来不讨喜
生来不讨喜 2020-12-13 08:26

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

7条回答
  •  无人及你
    2020-12-13 08:56

    Directly from my Nexus S:

    > import java.nio.*;
    > System.out.println(ByteOrder.nativeOrder());
    LITTLE_ENDIAN
    

    There should also be some way to get the ordering in the NDK.

提交回复
热议问题