Decode image from raw byte array to RGBA pixel array.
- run 'ndk-build' into 'jni' directory.
- build project on the Eclipse.
- import this project in your workspace.
- set referenced project as library via project preference.
- get raw image data byte array. (ex. PreviewCallback#onPreviewFrame passed
- decode byte array 'decodeNV21' or 'decodeYUY2'.
- set decoded RGBA pixel data into 'Bitmap' object (use Bitmap.setPixels method).
- NV21 : default image format (see also: ImageFormat)
- YUY2 : alternative format. known as YUYV.