2 * Copyright 2012 Samsung Electronics Co., Ltd
\r
4 * Licensed under the Flora License, Version 1.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://floralicense.org/license/
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 #ifndef _CAM_FACE_DETECTION_FOCUS_H_
\r
19 #define _CAM_FACE_DETECTION_FOCUS_H_
\r
20 #include "cam_property.h"
\r
21 #include "camera_utils.h"
\r
24 #define MAX_FACE_COUNT 10
\r
25 typedef struct _cam_face_info CamFaceInfo;
\r
27 struct _cam_face_info {
\r
28 camera_detected_face_s faces[MAX_FACE_COUNT];
\r
35 * @brief called by preview callback function
\r
36 * @param[in] preview_frame the camera preview image stream
\r
37 * @param[in] user_data user_data set for preview callback
\r
40 void cam_face_detection_focus_start_stream(camera_preview_data_s *preview_frame, void *user_data);
\r
42 * @brief init face deteciton pthread variables
\r
45 gboolean cam_face_detection_focus_init(void);
\r
47 * @brief delete face deteciton pthread variables
\r
50 gboolean cam_face_detection_focus_finish(void);
\r
52 * @brief called while face detected
\r
53 * @param[in] faces camera_detected_face_s array
\r
54 * @param[in] count face count
\r
55 * @param[in] user_data user_data set for preview callback
\r
58 void cam_face_detection_focus_face_detected_cb(camera_detected_face_s *faces, int count, void *user_data);
\r
60 * @brief in face detection mode, set mouse click coordinate for cacluate the faceid by xy
\r
61 * @param[in] x mouse x when doulbe click
\r
62 * @param[in] y mouse y when doulbe click
\r
65 void cam_common_set_mouse_double_click_xy(Evas_Coord x, Evas_Coord y);
\r
67 void cam_face_detection_reset();
\r
69 #endif /* _CAM_FACE_DETECTION_FOCUS_H_ */
\r