• Home
  • Raw
  • Download

Lines Matching refs:faces

199     camera_frame_metadata_t *faces;  in detectFaces()  local
278 ret = encodeFaceCoordinates(faceData, &faces, previewWidth, previewHeight); in detectFaces()
281 result = new CameraFDResult(faces); in detectFaces()
298 camera_face_t *faces; in encodeFaceCoordinates() local
324 faces = ( camera_face_t * ) malloc(sizeof(camera_face_t)*faceData->ulFaceCount); in encodeFaceCoordinates()
325 if ( NULL == faces ) { in encodeFaceCoordinates()
401 faces[i].rect[trans_left] = tmp; in encodeFaceCoordinates()
406 faces[i].rect[trans_top] = tmp; in encodeFaceCoordinates()
411 faces[i].rect[trans_right] = faces[i].rect[trans_left] + tmp; in encodeFaceCoordinates()
416 faces[i].rect[trans_bot] = faces[i].rect[trans_top] + tmp; in encodeFaceCoordinates()
418 faces[i].score = faceData->tFacePosition[j].nScore; in encodeFaceCoordinates()
419 faces[i].id = 0; in encodeFaceCoordinates()
420 faces[i].left_eye[0] = CameraFDResult::INVALID_DATA; in encodeFaceCoordinates()
421 faces[i].left_eye[1] = CameraFDResult::INVALID_DATA; in encodeFaceCoordinates()
422 faces[i].right_eye[0] = CameraFDResult::INVALID_DATA; in encodeFaceCoordinates()
423 faces[i].right_eye[1] = CameraFDResult::INVALID_DATA; in encodeFaceCoordinates()
424 faces[i].mouth[0] = CameraFDResult::INVALID_DATA; in encodeFaceCoordinates()
425 faces[i].mouth[1] = CameraFDResult::INVALID_DATA; in encodeFaceCoordinates()
430 faceResult->faces = faces; in encodeFaceCoordinates()
434 int centerX = (faces[i].rect[trans_left] + faces[i].rect[trans_right] ) / 2; in encodeFaceCoordinates()
435 int centerY = (faces[i].rect[trans_top] + faces[i].rect[trans_bot] ) / 2; in encodeFaceCoordinates()
437 int sizeX = (faces[i].rect[trans_right] - faces[i].rect[trans_left] ) ; in encodeFaceCoordinates()
438 int sizeY = (faces[i].rect[trans_bot] - faces[i].rect[trans_top] ) ; in encodeFaceCoordinates()
461 faces[i] = faceDetectionLastOutput[j]; in encodeFaceCoordinates()
475 faceDetectionLastOutput[i] = faces[i]; in encodeFaceCoordinates()
480 faceResult->faces = NULL; in encodeFaceCoordinates()