218f5aaf61a59849cef0910928d5418702bbfbea
[apps/core/preloaded/ug-camera-efl.git] / include / cam_face_detection_focus.h
1 /*\r
2  * Copyright 2012  Samsung Electronics Co., Ltd\r
3  *\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
7  *\r
8  *        http://floralicense.org/license/\r
9  *\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
15  */\r
16 \r
17 \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
22 \r
23 \r
24 #define MAX_FACE_COUNT 10\r
25 typedef struct _cam_face_info CamFaceInfo;\r
26 \r
27 struct _cam_face_info {\r
28         camera_detected_face_s faces[MAX_FACE_COUNT];\r
29         int     count;\r
30 \r
31 };\r
32 \r
33 \r
34 /**\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
38  * @return      void\r
39  */\r
40 void cam_face_detection_focus_start_stream(camera_preview_data_s *preview_frame, void *user_data);\r
41 /**\r
42  * @brief       init face deteciton pthread variables\r
43  * @return      void\r
44  */\r
45 gboolean cam_face_detection_focus_init(void);\r
46 /**\r
47  * @brief       delete face deteciton pthread variables\r
48  * @return      void\r
49  */\r
50 gboolean cam_face_detection_focus_finish(void);\r
51 /**\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
56  * @return      void\r
57  */\r
58 void cam_face_detection_focus_face_detected_cb(camera_detected_face_s *faces, int count, void *user_data);\r
59 /**\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
63  * @return      void\r
64  */\r
65 void cam_common_set_mouse_double_click_xy(Evas_Coord x, Evas_Coord y);\r
66 \r
67 void cam_face_detection_reset();\r
68 \r
69 #endif                          /* _CAM_FACE_DETECTION_FOCUS_H_ */\r
70 \r