Lines Matching refs:faces
307 camera_face_t *faces; in encodeFaceCoordinates() local
320 if ( (0 < metadataResult->number_of_faces) && (NULL != metadataResult->faces) ) { in encodeFaceCoordinates()
321 free(metadataResult->faces); in encodeFaceCoordinates()
323 metadataResult->faces = NULL; in encodeFaceCoordinates()
330 faces = ( camera_face_t * ) malloc(sizeof(camera_face_t)*faceData->ulFaceCount); in encodeFaceCoordinates()
331 if ( NULL == faces ) { in encodeFaceCoordinates()
408 faces[i].rect[trans_left] = tmp; in encodeFaceCoordinates()
413 faces[i].rect[trans_top] = tmp; in encodeFaceCoordinates()
418 faces[i].rect[trans_right] = faces[i].rect[trans_left] + tmp; in encodeFaceCoordinates()
423 faces[i].rect[trans_bot] = faces[i].rect[trans_top] + tmp; in encodeFaceCoordinates()
425 faces[i].score = faceData->tFacePosition[j].nScore; in encodeFaceCoordinates()
426 faces[i].id = 0; in encodeFaceCoordinates()
427 faces[i].left_eye[0] = CameraMetadataResult::INVALID_DATA; in encodeFaceCoordinates()
428 faces[i].left_eye[1] = CameraMetadataResult::INVALID_DATA; in encodeFaceCoordinates()
429 faces[i].right_eye[0] = CameraMetadataResult::INVALID_DATA; in encodeFaceCoordinates()
430 faces[i].right_eye[1] = CameraMetadataResult::INVALID_DATA; in encodeFaceCoordinates()
431 faces[i].mouth[0] = CameraMetadataResult::INVALID_DATA; in encodeFaceCoordinates()
432 faces[i].mouth[1] = CameraMetadataResult::INVALID_DATA; in encodeFaceCoordinates()
437 metadataResult->faces = faces; in encodeFaceCoordinates()
442 int centerX = (faces[i].rect[trans_left] + faces[i].rect[trans_right] ) / 2; in encodeFaceCoordinates()
443 int centerY = (faces[i].rect[trans_top] + faces[i].rect[trans_bot] ) / 2; in encodeFaceCoordinates()
445 int sizeX = (faces[i].rect[trans_right] - faces[i].rect[trans_left] ) ; in encodeFaceCoordinates()
446 int sizeY = (faces[i].rect[trans_bot] - faces[i].rect[trans_top] ) ; in encodeFaceCoordinates()
479 faceDetectionLastOutput[i] = faces[i]; in encodeFaceCoordinates()
483 metadataResult->faces = NULL; in encodeFaceCoordinates()