Open GoogleCodeExporter opened 8 years ago
The problem is with byte[]: It can't be pinned down across native function
calls. There's a way to optimize that within a single JNI call by using
GetPrimitiveArrayCritical() but I'm not sure how we could take advantage of
that at a higher level... That would be a request for JavaCPP though:
http://code.google.com/p/javacpp/issues/
This difficult of Java array to be used on the native side efficiently is what
prompted Sun to create direct NIO buffers in the first place, so we should ask
Google to add support for NIO buffers there :)
BTW, there appears to be a better hack to capture from the camera on Android,
as mentioned at issue #422.
Original comment by samuel.a...@gmail.com
on 11 Feb 2014 at 1:52
Original issue reported on code.google.com by
eug...@parsable.com
on 10 Feb 2014 at 9:52