mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user