Lines Matching defs:rect
405 // Given a sequence of rectangles, return an array of Android Rect objects
413 jclass jcls = env->FindClass("android/graphics/Rect");
415 LOGE("Unable to find class android.graphics.Rect");
421 LOGE("Unable to find constructor Rect(int, int, int, int)");
427 LOGE("Unable to create Rect array");
433 CvRect *rect = (CvRect*)cvGetSeqElem(rects, i);
434 if (rect == 0) {
440 jobject jrect = env->NewObject(jcls, jconstruct, rect->x, rect->y,
441 rect->width, rect->height);
443 sprintf(buffer, "Unable to create Android Rect object for rectangle #%d", i);
456 // of Android Rect objects with the face coordinates. If any errors
509 sprintf(buffer, "Face rect + m_faceCropArea: (%d, %d) to (%d, %d)", face->x, face->y,
527 // Given a rectangle, return an Android Rect object or null if any
529 jobject rectToAndroidRect(JNIEnv* env, CvRect *rect) {
530 if (rect == 0) {
535 jclass jcls = env->FindClass("android/graphics/Rect");
537 LOGE("Unable to find class android.graphics.Rect");
543 Rect(int, int, int, int)");
547 return env->NewObject(jcls, jconstruct, rect->x, rect->y,
548 rect->width, rect->height);
552 // Android Rect object with the face coordinates. This method is