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:
Thomas Clark
2014-12-30 02:17:03 -05:00
parent d165f57e6e
commit 8ccf3d9c14
9 changed files with 582 additions and 525 deletions

View File

@@ -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.
*/