Sunday, February 12, 2012 12:46 AM
Hi I have a requirement in which i need to send the byte received in android.hardware.camera preview callback to native code (a .cpp file) through JNI, without making a copy of the array. Can you please suggest me the suitable methods to do that. After some browsing in the web i found NewDirectByteBuffer and GetDirectBufferAddress are the calls i have to use. But i am not sure how to use them. A help is highly appreciated.