MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / getNativeMat

Function getNativeMat

jni/platform/jni_bridge.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16cv::Mat* getNativeMat(JNIEnv *env, jobject _mat)
17{
18 jclass class_Mat = env->FindClass("org/opencv/core/Mat");
19 jmethodID method_getNativeObjAddr = env->GetMethodID(class_Mat, "getNativeObjAddr", "()J");
20 assert(class_Mat != nullptr && method_getNativeObjAddr != nullptr);
21 jlong pointer = env->CallLongMethod(_mat, method_getNativeObjAddr);
22
23 return reinterpret_cast<cv::Mat*>(pointer);
24}
25
26// This is the Point that reside in android.graphic.Point, not org.opencv.core.Point
27cv::Point2f getNativePoint(JNIEnv *env, jobject _point)

Calls

no outgoing calls

Tested by

no test coverage detected