Home | History | Annotate | Download | only in OMXCameraAdapter

Lines Matching defs:faceData

197     OMX_FACEDETECTIONTYPE *faceData;
257 faceData = ( OMX_FACEDETECTIONTYPE * ) extraData->data;
258 if ( NULL != faceData ) {
259 if ( sizeof(OMX_FACEDETECTIONTYPE) == faceData->nSize ) {
261 faceData->ulFaceCount,
262 faceData->nSize,
264 faceData->eCameraView,
265 faceData->nPortIndex,
266 faceData->nVersion);
270 ( unsigned int ) faceData->nSize);
278 ret = encodeFaceCoordinates(faceData, &faces, previewWidth, previewHeight);
292 status_t OMXCameraAdapter::encodeFaceCoordinates(const OMX_FACEDETECTIONTYPE *faceData,
305 if ( NULL == faceData ) {
320 if ( 0 < faceData->ulFaceCount ) {
324 faces = ( camera_face_t * ) malloc(sizeof(camera_face_t)*faceData->ulFaceCount);
377 for ( ; j < faceData->ulFaceCount ; j++)
386 if(faceData->tFacePosition[j].nScore <= FACE_DETECTION_THRESHOLD)
391 nLeft = faceData->tFacePosition[j].nLeft + faceData->tFacePosition[j].nWidth;
392 nTop = faceData->tFacePosition[j].nTop + faceData->tFacePosition[j].nHeight;
394 nLeft = faceData->tFacePosition[j].nLeft;
395 nTop = faceData->tFacePosition[j].nTop;
408 tmp = ( double ) faceData->tFacePosition[j].nWidth / ( double ) previewWidth;
413 tmp = ( double ) faceData->tFacePosition[j].nHeight / ( double ) previewHeight;
418 faces[i].score = faceData->tFacePosition[j].nScore;