This Android project shows how to import an image from gallery and do all the image processing (decode, resize, rotate, filter, encode) in NDK