1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
| #ifndef __FACE_DETECTION_API_H___
| #define __FACE_DETECTION_API_H___
|
| #include <utils/StrongPointer.h>
|
| namespace android {
|
| typedef int (*face_notify_cb)(int cmd, void * data, void *user);
|
| enum FACE_NOTITY_CMD{
| FACE_NOTITY_CMD_REQUEST_FRAME,
| FACE_NOTITY_CMD_RESULT,
| FACE_NOTITY_CMD_POSITION,
| FACE_NOTITY_CMD_REQUEST_ORIENTION,
| };
|
| class CFaceDetection;
|
| enum FACE_OPS_CMD
| {
| FACE_OPS_CMD_START,
| FACE_OPS_CMD_STOP,
| FACE_OPS_CMD_REGISTE_USER,
| };
|
| struct FocusArea_t
| {
| int x;
| int y;
| int x1;
| int y1;
| };
|
| struct FaceDetectionDev
| {
| void * user;
| sp<CFaceDetection> priv;
| void (*setCallback)(FaceDetectionDev * dev, face_notify_cb cb);
| int (*ioctrl)(FaceDetectionDev * dev, int cmd, int para0, int para1);
| };
|
| extern int CreateFaceDetectionDev(FaceDetectionDev ** dev);
| extern void DestroyFaceDetectionDev(FaceDetectionDev * dev);
|
| }
|
| #endif // __FACE_DETECTION_API_H__
|
|