How pass Rect from Java code to Jni?
Hi :) I have a problem... How can I pass Rect object from Java to C ?
If I want pass Mat... I do something like this:
Java:
Mat mat = new Mat()
nativeMethod(mat.getNativeObjAddr())
C
nativeMethod(JNIEnv * jenv, jclass, jlong matFromJava){
Mat mat = *(Mat*)matFromJava;
}
but getNativeObjAddr() for Rect objects doesn't exist, so how can I do this?
funny, i can't find any example of a Rect passed in the generated java wrappers.
they all pass x,y,w,h instead.