aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/v4l2-controls.h
diff options
context:
space:
mode:
authorYunke Cao <yunkec@google.com>2025-02-03 11:55:52 +0000
committerHans Verkuil <hverkuil@xs4all.nl>2025-03-03 18:23:36 +0100
commit2dc768d71b45a3a40ea15805667ed662127eeefd (patch)
tree7dc858d859862787f819cb8684f410a8bba92855 /include/uapi/linux/v4l2-controls.h
parentmedia: uvcvideo: Add sanity check to uvc_ioctl_xu_ctrl_map (diff)
downloadwireguard-linux-2dc768d71b45a3a40ea15805667ed662127eeefd.tar.xz
wireguard-linux-2dc768d71b45a3a40ea15805667ed662127eeefd.zip
media: uvcvideo: implement UVC v1.5 ROI
Implement support for ROI as described in UVC 1.5: 4.2.2.1.20 Digital Region of Interest (ROI) Control ROI control is implemented using V4L2 control API as two UVC-specific controls: V4L2_CID_UVC_REGION_OF_INTEREST_RECT and V4L2_CID_UVC_REGION_OF_INTEREST_AUTO. Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Yunke Cao <yunkec@google.com> Reviewed-by: Yunke Cao <yunkec@google.com> Tested-by: Yunke Cao <yunkec@google.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://lore.kernel.org/r/20250203-uvc-roi-v17-16-5900a9fed613@chromium.org Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> [hverkuil: fix control names: "Of" -> "of", "Controls" -> "Ctrls"]
Diffstat (limited to 'include/uapi/linux/v4l2-controls.h')
-rw-r--r--include/uapi/linux/v4l2-controls.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
index 974fd254e573..72e32814ea83 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -215,6 +215,13 @@ enum v4l2_colorfx {
*/
#define V4L2_CID_USER_THP7312_BASE (V4L2_CID_USER_BASE + 0x11c0)
+/*
+ * The base for the uvc driver controls.
+ * See linux/uvcvideo.h for the list of controls.
+ * We reserve 64 controls for this driver.
+ */
+#define V4L2_CID_USER_UVC_BASE (V4L2_CID_USER_BASE + 0x11e0)
+
/* MPEG-class control IDs */
/* The MPEG controls are applicable to all codec controls
* and the 'MPEG' part of the define is historical */