• Home
  • Raw
  • Download

Lines Matching refs:_env

94 (JNIEnv *_env, jclass _this)  in nativeClassInit()  argument
96 gFaceDetectorOffsets.fd = _env->GetFieldID(_this, "mFD", "J"); in nativeClassInit()
97 gFaceDetectorOffsets.sdk = _env->GetFieldID(_this, "mSDK", "J"); in nativeClassInit()
98 gFaceDetectorOffsets.dcr = _env->GetFieldID(_this, "mDCR", "J"); in nativeClassInit()
99 gFaceDetectorOffsets.width = _env->GetFieldID(_this, "mWidth", "I"); in nativeClassInit()
100 gFaceDetectorOffsets.height = _env->GetFieldID(_this, "mHeight", "I"); in nativeClassInit()
101 gFaceDetectorOffsets.maxFaces = _env->GetFieldID(_this, "mMaxFaces", "I"); in nativeClassInit()
102 gFaceDetectorOffsets.bwbuffer = _env->GetFieldID(_this, "mBWBuffer", "[B"); in nativeClassInit()
104 jclass faceClass = _env->FindClass("android/media/FaceDetector$Face"); in nativeClassInit()
105 gFaceOffsets.confidence = _env->GetFieldID(faceClass, "mConfidence", "F"); in nativeClassInit()
106 gFaceOffsets.midpointx = _env->GetFieldID(faceClass, "mMidPointX", "F"); in nativeClassInit()
107 gFaceOffsets.midpointy = _env->GetFieldID(faceClass, "mMidPointY", "F"); in nativeClassInit()
108 gFaceOffsets.eyedist = _env->GetFieldID(faceClass, "mEyesDist", "F"); in nativeClassInit()
109 gFaceOffsets.eulerx = _env->GetFieldID(faceClass, "mPoseEulerX", "F"); in nativeClassInit()
110 gFaceOffsets.eulery = _env->GetFieldID(faceClass, "mPoseEulerY", "F"); in nativeClassInit()
111 gFaceOffsets.eulerz = _env->GetFieldID(faceClass, "mPoseEulerZ", "F"); in nativeClassInit()
117 initialize(JNIEnv *_env, jobject _this, in initialize() argument
144 doThrow(_env, "java/lang/OutOfMemoryError", NULL); in initialize()
163 doThrow(_env, "java/lang/OutOfMemoryError", NULL); in initialize()
171 _env->SetLongField(_this, gFaceDetectorOffsets.fd, (jlong)fd); in initialize()
172 _env->SetLongField(_this, gFaceDetectorOffsets.sdk, (jlong)sdk); in initialize()
173 _env->SetLongField(_this, gFaceDetectorOffsets.dcr, (jlong)dcr); in initialize()
179 destroy(JNIEnv *_env, jobject _this) in destroy() argument
182 (btk_HFaceFinder)(_env->GetLongField(_this, gFaceDetectorOffsets.fd)); in destroy()
185 btk_HDCR hdcr = (btk_HDCR)(_env->GetLongField(_this, gFaceDetectorOffsets.dcr)); in destroy()
188 btk_HSDK hsdk = (btk_HSDK)(_env->GetLongField(_this, gFaceDetectorOffsets.sdk)); in destroy()
193 detect(JNIEnv *_env, jobject _this, in detect() argument
197 btk_HDCR hdcr = (btk_HDCR)(_env->GetLongField(_this, gFaceDetectorOffsets.dcr)); in detect()
199 (btk_HFaceFinder)(_env->GetLongField(_this, gFaceDetectorOffsets.fd)); in detect()
200 u32 width = _env->GetIntField(_this, gFaceDetectorOffsets.width); in detect()
201 u32 height = _env->GetIntField(_this, gFaceDetectorOffsets.height); in detect()
204 _env->GetObjectField(_this, gFaceDetectorOffsets.bwbuffer); in detect()
207 jbyte* bwbuffer = _env->GetByteArrayElements(bwbufferObject, 0); in detect()
214 AndroidBitmap_getInfo(_env, bitmap, &bitmapInfo); in detect()
215 AndroidBitmap_lockPixels(_env, bitmap, (void**) &src); in detect()
242 AndroidBitmap_unlockPixels(_env, bitmap); in detect()
243 _env->ReleaseByteArrayElements(bwbufferObject, bwbuffer, 0); in detect()
248 get_face(JNIEnv *_env, jobject _this, in get_face() argument
251 btk_HDCR hdcr = (btk_HDCR)(_env->GetLongField(_this, gFaceDetectorOffsets.dcr)); in get_face()
253 (btk_HFaceFinder)(_env->GetLongField(_this, gFaceDetectorOffsets.fd)); in get_face()
259 _env->SetFloatField(face, gFaceOffsets.confidence, faceData.confidence); in get_face()
260 _env->SetFloatField(face, gFaceOffsets.midpointx, faceData.midpointx); in get_face()
261 _env->SetFloatField(face, gFaceOffsets.midpointy, faceData.midpointy); in get_face()
262 _env->SetFloatField(face, gFaceOffsets.eyedist, faceData.eyedist); in get_face()
263 _env->SetFloatField(face, gFaceOffsets.eulerx, 0); in get_face()
264 _env->SetFloatField(face, gFaceOffsets.eulery, 0); in get_face()
265 _env->SetFloatField(face, gFaceOffsets.eulerz, 0); in get_face()
280 int register_android_media_FaceDetector(JNIEnv *_env) in register_android_media_FaceDetector() argument
282 return jniRegisterNativeMethods(_env, classPathName, methods, NELEM(methods)); in register_android_media_FaceDetector()