caprica / picam

Unofficial Java API library for the Raspberry Pi camera.
GNU General Public License v3.0
49 stars 11 forks source link

Improve/Optimise the JNI implementation #15

Open caprica opened 5 years ago

caprica commented 5 years ago

For the initial switch from a JNA implementation to a JNI implementation, it was essentially a straight port. I was more concerned with getting something working as quickly as possible than I was with coming up with the most optimal solution. It is likely that the JNI implementation could be further improved, at the very least there may be a buffer copy that could be removed.

Any suggestions would be welcome.

The JNI project is at picam-native.

caprica commented 2 years ago

Nowadays it should probably use upcoming Java FFI.