• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __UAPI_MSM_FD__
20 #define __UAPI_MSM_FD__
21 #include <linux/videodev2.h>
22 #include <linux/types.h>
23 struct msm_fd_event {
24   __u32 buf_index;
25   __u32 frame_id;
26   __u32 face_cnt;
27 };
28 enum msm_fd_pose {
29   MSM_FD_POSE_FRONT,
30   MSM_FD_POSE_RIGHT_DIAGONAL,
31   MSM_FD_POSE_RIGHT,
32   MSM_FD_POSE_LEFT_DIAGONAL,
33   MSM_FD_POSE_LEFT,
34 };
35 struct msm_fd_face_data {
36   __u32 pose;
37   __u32 angle;
38   __u32 confidence;
39   __u32 reserved;
40   struct v4l2_rect face;
41 };
42 struct msm_fd_result {
43   __u32 frame_id;
44   __u32 face_cnt;
45   struct msm_fd_face_data * face_data;
46 };
47 #define VIDIOC_MSM_FD_GET_RESULT _IOWR('V', BASE_VIDIOC_PRIVATE, struct msm_fd_result)
48 #define MSM_EVENT_FD (V4L2_EVENT_PRIVATE_START)
49 #define V4L2_CID_FD_SPEED (V4L2_CID_PRIVATE_BASE)
50 #define V4L2_CID_FD_FACE_ANGLE (V4L2_CID_PRIVATE_BASE + 1)
51 #define V4L2_CID_FD_MIN_FACE_SIZE (V4L2_CID_PRIVATE_BASE + 2)
52 #define V4L2_CID_FD_FACE_DIRECTION (V4L2_CID_PRIVATE_BASE + 3)
53 #define V4L2_CID_FD_DETECTION_THRESHOLD (V4L2_CID_PRIVATE_BASE + 4)
54 #define V4L2_CID_FD_WORK_MEMORY_SIZE (V4L2_CID_PRIVATE_BASE + 5)
55 #define V4L2_CID_FD_WORK_MEMORY_FD (V4L2_CID_PRIVATE_BASE + 6)
56 #endif
57 
58