aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrandon Philips <bphilips@suse.de>2008-04-22 13:42:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:42 -0400
commitf9bd5843658e18a7097fc7258c60fb840109eaa8 (patch)
tree63e3e90b7dc94d28f6be0f8bee3738ed28b35360 /include
parent26d507fcfef7f7d0cd2eec874a87169cc121c835 (diff)
V4L/DVB (7167): [v4l] Add camera class control definitions
Add all of the recently proposed camera class controls. These controls should appear in the next version of the v4l2spec. Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/videodev2.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 777bcb0daa1..b17f314a557 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -793,6 +793,7 @@ struct v4l2_ext_controls
793/* Values for ctrl_class field */ 793/* Values for ctrl_class field */
794#define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */ 794#define V4L2_CTRL_CLASS_USER 0x00980000 /* Old-style 'user' controls */
795#define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */ 795#define V4L2_CTRL_CLASS_MPEG 0x00990000 /* MPEG-compression controls */
796#define V4L2_CTRL_CLASS_CAMERA 0x009a0000 /* Camera class controls */
796 797
797#define V4L2_CTRL_ID_MASK (0x0fffffff) 798#define V4L2_CTRL_ID_MASK (0x0fffffff)
798#define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL) 799#define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL)
@@ -1064,6 +1065,32 @@ enum v4l2_mpeg_cx2341x_video_median_filter_type {
1064#define V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP (V4L2_CID_MPEG_CX2341X_BASE+10) 1065#define V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP (V4L2_CID_MPEG_CX2341X_BASE+10)
1065#define V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS (V4L2_CID_MPEG_CX2341X_BASE+11) 1066#define V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS (V4L2_CID_MPEG_CX2341X_BASE+11)
1066 1067
1068/* Camera class control IDs */
1069#define V4L2_CID_CAMERA_CLASS_BASE (V4L2_CTRL_CLASS_CAMERA | 0x900)
1070#define V4L2_CID_CAMERA_CLASS (V4L2_CTRL_CLASS_CAMERA | 1)
1071
1072#define V4L2_CID_EXPOSURE_AUTO (V4L2_CID_CAMERA_CLASS_BASE+1)
1073enum v4l2_exposure_auto_type {
1074 V4L2_EXPOSURE_AUTO = 0,
1075 V4L2_EXPOSURE_MANUAL = 1,
1076 V4L2_EXPOSURE_SHUTTER_PRIORITY = 2,
1077 V4L2_EXPOSURE_APERTURE_PRIORITY = 3
1078};
1079#define V4L2_CID_EXPOSURE_ABSOLUTE (V4L2_CID_CAMERA_CLASS_BASE+2)
1080#define V4L2_CID_EXPOSURE_AUTO_PRIORITY (V4L2_CID_CAMERA_CLASS_BASE+3)
1081
1082#define V4L2_CID_PAN_RELATIVE (V4L2_CID_CAMERA_CLASS_BASE+4)
1083#define V4L2_CID_TILT_RELATIVE (V4L2_CID_CAMERA_CLASS_BASE+5)
1084#define V4L2_CID_PAN_RESET (V4L2_CID_CAMERA_CLASS_BASE+6)
1085#define V4L2_CID_TILT_RESET (V4L2_CID_CAMERA_CLASS_BASE+7)
1086
1087#define V4L2_CID_PAN_ABSOLUTE (V4L2_CID_CAMERA_CLASS_BASE+8)
1088#define V4L2_CID_TILT_ABSOLUTE (V4L2_CID_CAMERA_CLASS_BASE+9)
1089
1090#define V4L2_CID_FOCUS_ABSOLUTE (V4L2_CID_CAMERA_CLASS_BASE+10)
1091#define V4L2_CID_FOCUS_RELATIVE (V4L2_CID_CAMERA_CLASS_BASE+11)
1092#define V4L2_CID_FOCUS_AUTO (V4L2_CID_CAMERA_CLASS_BASE+12)
1093
1067/* 1094/*
1068 * T U N I N G 1095 * T U N I N G
1069 */ 1096 */