Home | History | Annotate | Download | only in camera

Lines Matching full:roi

233 void QCameraStream_preview::notifyROIEvent(fd_roi_t roi)
235 switch (roi.type) {
242 mHalCamCtrl->mMetadata.number_of_faces = roi.d.hdr.num_face_detected;
263 int idx = roi.d.data.idx;
270 mHalCamCtrl->mFace[idx].id = roi.d.data.face.id;
271 mHalCamCtrl->mFace[idx].score = roi.d.data.face.score / 10; // keep within range 0~100
275 roi.d.data.face.face_boundary.x*2000/mHalCamCtrl->mDimension.display_width - 1000;
278 roi.d.data.face.face_boundary.y*2000/mHalCamCtrl->mDimension.display_height - 1000;
281 roi.d.data.face.face_boundary.dx*2000/mHalCamCtrl->mDimension.display_width;
284 roi.d.data.face.face_boundary.dy*2000/mHalCamCtrl->mDimension.display_height;
288 roi.d.data.face.left_eye_center[0]*2000/mHalCamCtrl->mDimension.display_width - 1000;
290 roi.d.data.face.left_eye_center[1]*2000/mHalCamCtrl->mDimension.display_height - 1000;
294 roi.d.data.face.right_eye_center[0]*2000/mHalCamCtrl->mDimension.display_width - 1000;
296 roi.d.data.face.right_eye_center[1]*2000/mHalCamCtrl->mDimension.display_height - 1000;
300 roi.d.data.face.mouth_center[0]*2000/mHalCamCtrl->mDimension.display_width - 1000;
302 roi.d.data.face.mouth_center[1]*2000/mHalCamCtrl->mDimension.display_height - 1000;
304 mHalCamCtrl->mFace[idx].smile_degree = roi.d.data.face.smile_degree;
305 mHalCamCtrl->mFace[idx].smile_score = roi.d.data.face.smile_confidence;
306 mHalCamCtrl->mFace[idx].blink_detected = roi.d.data.face.blink_detected;
307 mHalCamCtrl->mFace[idx].face_recognised = roi.d.data.face.is_face_recognised;
308 mHalCamCtrl->mFace[idx].gaze_angle = roi.d.data.face.gaze_angle;
312 mHalCamCtrl->mFace[idx].updown_dir = roi.d.data.face.updown_dir*2;
313 mHalCamCtrl->mFace[idx].leftright_dir = roi.d.data.face.leftright_dir*2;
314 mHalCamCtrl->mFace[idx].roll_dir = roi.d.data.face.roll_dir*2;
316 mHalCamCtrl->mFace[idx].leye_blink = roi.d.data.face.left_blink;
317 mHalCamCtrl->mFace[idx].reye_blink = roi.d.data.face.right_blink;
318 mHalCamCtrl->mFace[idx].left_right_gaze = roi.d.data.face.left_right_gaze;
319 mHalCamCtrl->mFace[idx].top_bottom_gaze = roi.d.data.face.top_bottom_gaze;
327 roi.d.data.face.smile_degree, roi.d.data.face.smile_confidence, roi.d.data.face.blink_detected);