Writing a basic image filter in Android using NDK
I needed to implement some image filters on bitmaps for my Android project. I first attempted the filters in pure Java but it turns out to be too slow and consume too much memory. Bitmap handling in Android has always been a pain point and there is too much memory overhead. To get access to the underlying pixel data from a Bitmap in Java you use Bitmap.getPixels() which returns an integer array...