From 147808f20de9bee3b123a79fcff6ea4432d533a5 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 20 Feb 2009 09:28:59 +0100 Subject: v4l2-spec: document V4L2_CID_COLORFX. From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l2-spec/controls.sgml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'v4l2-spec') diff --git a/v4l2-spec/controls.sgml b/v4l2-spec/controls.sgml index 0df57dcf7..7fbe82401 100644 --- a/v4l2-spec/controls.sgml +++ b/v4l2-spec/controls.sgml @@ -271,11 +271,20 @@ minimum value disables backlight compensation. boolean Enable the color killer (&ie; force a black & white image in case of a weak video signal). + + V4L2_CID_COLORFX + enum + Selects a color effect. Possible values for +enum v4l2_colorfx are: +V4L2_COLORFX_NONE (0), +V4L2_COLORFX_BW (1) and +V4L2_COLORFX_SEPIA (2). + V4L2_CID_LASTP1 End of the predefined control IDs (currently -V4L2_CID_COLOR_KILLER + 1). +V4L2_CID_COLORFX + 1). V4L2_CID_PRIVATE_BASE -- cgit v1.2.3 From b2e7077468076b3bfb3f6ad572808dab4a8795ae Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 20 Feb 2009 09:50:52 +0100 Subject: v4l2: add colorfx support to v4l2-common.c, and add to 'Changes' in spec. From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l2-spec/compat.sgml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'v4l2-spec') diff --git a/v4l2-spec/compat.sgml b/v4l2-spec/compat.sgml index 8c3177b22..1ee7c4a82 100644 --- a/v4l2-spec/compat.sgml +++ b/v4l2-spec/compat.sgml @@ -2281,6 +2281,14 @@ was renamed to v4l2_chip_ident_oldV4L2_CID_ZOOM_CONTINUOUS and V4L2_CID_PRIVACY. + + +
+ V4L2 in Linux 2.6.30 + + + New control V4L2_CID_COLORFX was added. +
-- cgit v1.2.3 From d9920c08abb43a90d2d28c424ed1bafddd00cefe Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 20 Feb 2009 09:55:39 +0100 Subject: v4l2: add V4L2_CTRL_FLAG_WRITE_ONLY flag. From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l2-spec/compat.sgml | 3 +++ v4l2-spec/vidioc-queryctrl.sgml | 15 +++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'v4l2-spec') diff --git a/v4l2-spec/compat.sgml b/v4l2-spec/compat.sgml index 1ee7c4a82..94713023d 100644 --- a/v4l2-spec/compat.sgml +++ b/v4l2-spec/compat.sgml @@ -2286,6 +2286,9 @@ was renamed to v4l2_chip_ident_old V4L2 in Linux 2.6.30 + + New control flag V4L2_CTRL_FLAG_WRITE_ONLY was added. + New control V4L2_CID_COLORFX was added. diff --git a/v4l2-spec/vidioc-queryctrl.sgml b/v4l2-spec/vidioc-queryctrl.sgml index 20c4147eb..9908a964d 100644 --- a/v4l2-spec/vidioc-queryctrl.sgml +++ b/v4l2-spec/vidioc-queryctrl.sgml @@ -361,6 +361,15 @@ control. A hint that this control is best represented as a slider-like element in a user interface.
+ + V4L2_CTRL_FLAG_WRITE_ONLY + 0x0040 + This control is permanently writable only. Any +attempt to read the control will result in an &EACCES; error code. This +flag is typically present for relative controls or action controls where +writing a value will cause the device to carry out a given action +(⪚ motor control) but no meaningful value can be returned. + @@ -378,6 +387,12 @@ is invalid. The &v4l2-querymenu; id or index is invalid. + + EACCES + + An attempt was made to read a write-only control. + + -- cgit v1.2.3 From 28258187ce09827121e04b2de19e454032427d96 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 20 Feb 2009 10:30:12 +0100 Subject: v4l2-common/v4l2-spec: support/document write-only and button controls From: Hans Verkuil The controls V4L2_CID_PAN_RESET and V4L2_CID_TILT_RESET changed their type to button controls (these are unused at the moment, so this is a safe change). The controls V4L2_CID_PAN_RELATIVE, V4L2_CID_TILT_RELATIVE, V4L2_CID_FOCUS_RELATIVE and V4L2_CID_ZOOM_RELATIVE are marked as write-only controls. Priority: normal Signed-off-by: Hans Verkuil CC: Laurent Pinchart --- v4l2-spec/controls.sgml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'v4l2-spec') diff --git a/v4l2-spec/controls.sgml b/v4l2-spec/controls.sgml index 7fbe82401..477a97077 100644 --- a/v4l2-spec/controls.sgml +++ b/v4l2-spec/controls.sgml @@ -1688,7 +1688,7 @@ remain constant. camera horizontally by the specified amount. The unit is undefined. A positive value moves the camera to the right (clockwise when viewed from above), a negative value to the left. A value of zero does not -cause motion. +cause motion. This is a write-only control. @@ -1698,25 +1698,23 @@ cause motion. This control turns the camera vertically by the specified amount. The unit is undefined. A positive value moves the camera up, a negative value down. A value of -zero does not cause motion. +zero does not cause motion. This is a write-only control. V4L2_CID_PAN_RESET  - boolean - When this control is set -to TRUE (1), the camera moves horizontally to the -default position. + button + When this control is set, +the camera moves horizontally to the default position. V4L2_CID_TILT_RESET  - boolean - When this control is set -to TRUE (1), the camera moves vertically to the -default position. + button + When this control is set, +the camera moves vertically to the default position. @@ -1759,7 +1757,7 @@ negative values towards infinity. This control moves the focal point of the camera by the specified amount. The unit is undefined. Positive values move the focus closer to the camera, -negative values towards infinity. +negative values towards infinity. This is a write-only control. @@ -1787,7 +1785,7 @@ value should be a positive integer. Specify the objective lens focal length relatively to the current value. Positive values move the zoom lens group towards the telephoto direction, negative values towards the -wide-angle direction. The zoom unit is driver-specific. +wide-angle direction. The zoom unit is driver-specific. This is a write-only control. -- cgit v1.2.3