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

@@ -4890,6 +4890,17 @@ JNIEXPORT jlong JNICALL Java_com_ni_vision_NIVision__1imaqRake(JNIEnv* env, jcla
return (jlong)rv;
}
/* J: void Priv_ReadJPEGString_C(Image image, byte[] string)
* JN: void Priv_ReadJPEGString_C(long image, long string, int stringLength)
* C: int Priv_ReadJPEGString_C(Image* image, const unsigned char* string, unsigned int stringLength)
*/
JNIEXPORT void JNICALL Java_com_ni_vision_NIVision__1Priv_1ReadJPEGString_1C(JNIEnv* env, jclass , jlong image, jlong string, jint stringLength)
{
int rv = Priv_ReadJPEGString_C((Image*)image, (const unsigned char*)string, (unsigned int)stringLength);
if (rv == 0) throwJavaException(env);
}
/*
* Purpose : Include file for NI-IMAQdx library support.
*/