Home
last modified time | relevance | path

Searched refs:faces (Results 1 – 12 of 12) sorted by relevance

/hardware/ti/omap4xxx/camera/OMXCameraAdapter/
DOMXFD.cpp199 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()
[all …]
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXFD.cpp307 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()
[all …]
DOMXMetadata.cpp84 …struct camera_metadata_face *faces = reinterpret_cast<struct camera_metadata_face *> (static_cast<… in getMetaData() local
92 faces[idx].left = faceData->tFacePosition[j].nLeft; in getMetaData()
93 faces[idx].top = faceData->tFacePosition[j].nTop; in getMetaData()
94 faces[idx].bottom = faceData->tFacePosition[j].nWidth; in getMetaData()
95 faces[idx].right = faceData->tFacePosition[j].nHeight; in getMetaData()
/hardware/qcom/camera/QCamera2/HAL/
DQCamera2HWI.cpp8224 camera_face_t *faces = (camera_face_t *) ( faceData + sizeof(camera_frame_metadata_t) ); in processFaceDetectionResult() local
8227 roiData->faces = faces; in processFaceDetectionResult()
8230 faces[i].id = detect_data->faces[i].face_id; in processFaceDetectionResult()
8231 faces[i].score = detect_data->faces[i].score; in processFaceDetectionResult()
8234 faces[i].rect[0] = MAP_TO_DRIVER_COORDINATE( in processFaceDetectionResult()
8235 detect_data->faces[i].face_boundary.left, in processFaceDetectionResult()
8239 faces[i].rect[1] = MAP_TO_DRIVER_COORDINATE( in processFaceDetectionResult()
8240 detect_data->faces[i].face_boundary.top, in processFaceDetectionResult()
8244 faces[i].rect[2] = faces[i].rect[0] + in processFaceDetectionResult()
8246 detect_data->faces[i].face_boundary.width, in processFaceDetectionResult()
[all …]
/hardware/ti/omap4xxx/camera/inc/
DCameraHal.h200 CameraFDResult(camera_frame_metadata_t *faces) : mFaceData(faces) {}; in CameraFDResult() argument
203 if ( ( NULL != mFaceData ) && ( NULL != mFaceData->faces ) ) { in ~CameraFDResult()
204 free(mFaceData->faces); in ~CameraFDResult()
DBaseCameraAdapter.h151 status_t notifyFaceSubscribers(sp<CameraFDResult> &faces);
/hardware/ti/omap4-aah/camera/inc/
DCameraHal.h257 mMetadata.faces = NULL; in CameraMetadataResult()
267 mMetadata.faces = NULL; in CameraMetadataResult()
280 if ( NULL != mMetadata.faces ) { in ~CameraMetadataResult()
281 free(mMetadata.faces); in ~CameraMetadataResult()
/hardware/ti/omap4xxx/test/CameraHal/
Dcamera_test_menu.cpp645 metadata->faces[idx].rect[0], in my_face_callback()
646 metadata->faces[idx].rect[1], in my_face_callback()
647 metadata->faces[idx].rect[2], in my_face_callback()
648 metadata->faces[idx].rect[3]); in my_face_callback()
/hardware/ti/omap4xxx/camera/
DBaseCameraAdapter.cpp1105 status_t BaseCameraAdapter::notifyFaceSubscribers(sp<CameraFDResult> &faces) in notifyFaceSubscribers() argument
1124 faceEvent.mEventData->faceEvent = faces; in notifyFaceSubscribers()
/hardware/ti/omap4-aah/test/CameraHal/
Dcamera_test_menu.cpp762 metadata->faces[idx].rect[0], in my_face_callback()
763 metadata->faces[idx].rect[1], in my_face_callback()
764 metadata->faces[idx].rect[2], in my_face_callback()
765 metadata->faces[idx].rect[3]); in my_face_callback()
/hardware/qcom/camera/QCamera2/stack/common/
Dcam_types.h1212 cam_face_detection_info_t faces[MAX_ROI]; /* detailed information of faces detected */ member
/hardware/qcom/camera/QCamera2/HAL3/
DQCamera3HWI.cpp4773 faceScores[i] = (uint8_t)faceDetectionInfo->faces[i].score; in translateFromHalMetadata()
4776 cam_rect_t& rect = faceDetectionInfo->faces[i].face_boundary; in translateFromHalMetadata()
4780 convertToRegions(faceDetectionInfo->faces[i].face_boundary, in translateFromHalMetadata()