JNI for android.graphics.BitmapFactory