add LightFilter NDK implementation and some utilities