mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Add AxisCamera Java class
The API is basically the same as the C++ one. The JNI function for Priv_ReadJPEGString_C was manually renamed, since the python scripts don't name the C++ functions correctly, causing an UnsatisfiedLinkError at runtime. If further changes are made to the bindings, either the method will have to be manually renamed again after the code is regenerated, or the python scripts will have to be updated. The old ignored edu.wpi.first.wpilibj.camera package was removed. Change-Id: Icd37fc15c7bb41061568c3b2f580c6765cbf0300
This commit is contained in:
@@ -25004,6 +25004,16 @@ public class NIVision {
|
||||
}
|
||||
private static native long _imaqRake(long image, long roi, int direction, int process, long options);
|
||||
|
||||
public static void Priv_ReadJPEGString_C(Image image, byte[] string) {
|
||||
int stringLength = string.length;
|
||||
ByteBuffer string_buf = null;
|
||||
string_buf = ByteBuffer.allocateDirect(string.length);
|
||||
putBytes(string_buf, string, 0, string.length);
|
||||
_Priv_ReadJPEGString_C(image.getAddress(), getByteBufferAddress(string_buf), stringLength);
|
||||
|
||||
}
|
||||
private static native void _Priv_ReadJPEGString_C(long image, long string, int stringLength);
|
||||
|
||||
/**
|
||||
* Purpose : Include file for NI-IMAQdx library support.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user