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

Function getJavaPoint

jni/platform/jni_bridge.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111jobject getJavaPoint(JNIEnv *env, const cv::Point2f& point)
112{
113 jclass class_PointF = env->FindClass("android/graphics/PointF");
114 jmethodID method_PointF = env->GetMethodID(class_PointF, "<init>", "(FF)V");
115 assert(class_PointF != nullptr && method_PointF != nullptr);
116
117 return env->NewObject(class_PointF, method_PointF, point.x, point.y);
118}
119
120void setJavaPoint(JNIEnv *env, jobject _point, const cv::Point2f& point)
121{

Calls

no outgoing calls

Tested by

no test coverage detected