I want to write an app that has to manipulate some buffer produces by the Camera (Camera2 api). The code that manipulates the buffer is written in native c (Let's say color conversion).
Basically, this means that I have a java Camera2 API, which needs a Surface to write to. How do I convert this Surface into a native buffer that the native code can manipulate? Any samples that I can look at?