From: Sergey Senozhatsky <senozhatsky@chromium.org>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Ricardo Ribalda <ribalda@chromium.org>
Cc: Tomasz Figa <tfiga@chromium.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
Sergey Senozhatsky <senozhatsky@chromium.org>
Subject: [PATCHv5 1/5] media: v4l UAPI: add ROI selection targets
Date: Sat, 1 May 2021 17:19:57 +0900 [thread overview]
Message-ID: <20210501082001.100533-2-senozhatsky@chromium.org> (raw)
In-Reply-To: <20210501082001.100533-1-senozhatsky@chromium.org>
UVC 1.5 requires Region Of Interest control to implement
GET_CUR, GET_DEF, GET_MIN and GET_MAX requests. This patch
adds new V4L2 selection API targets that will implement
those ROI requests.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
include/uapi/linux/v4l2-common.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/uapi/linux/v4l2-common.h b/include/uapi/linux/v4l2-common.h
index 7d21c1634b4d..3651ebb8cb23 100644
--- a/include/uapi/linux/v4l2-common.h
+++ b/include/uapi/linux/v4l2-common.h
@@ -78,6 +78,14 @@
#define V4L2_SEL_TGT_COMPOSE_BOUNDS 0x0102
/* Current composing area plus all padding pixels */
#define V4L2_SEL_TGT_COMPOSE_PADDED 0x0103
+/* Current Region of Interest area */
+#define V4L2_SEL_TGT_ROI 0x0200
+/* Default Region of Interest area */
+#define V4L2_SEL_TGT_ROI_DEFAULT 0x0201
+/* Region of Interest minimum values */
+#define V4L2_SEL_TGT_ROI_BOUNDS_MIN 0x0202
+/* Region of Interest maximum values */
+#define V4L2_SEL_TGT_ROI_BOUNDS_MAX 0x0203
/* Selection flags */
#define V4L2_SEL_FLAG_GE (1 << 0)
--
2.31.1.527.g47e6f16901-goog
next prev parent reply other threads:[~2021-05-01 8:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-01 8:19 [PATCHv5 0/5] media: uvcvideo: implement UVC 1.5 ROI Sergey Senozhatsky
2021-05-01 8:19 ` Sergey Senozhatsky [this message]
2021-05-01 8:19 ` [PATCHv5 2/5] media: v4l UAPI: document ROI selection targets Sergey Senozhatsky
2021-05-01 8:19 ` [PATCHv5 3/5] media: uvcvideo: add ROI auto controls Sergey Senozhatsky
2021-05-01 8:20 ` [PATCHv5 4/5] media: v4l UAPI: document ROI auto_controls Sergey Senozhatsky
2021-05-01 8:20 ` [PATCHv5 5/5] media: uvcvideo: add UVC 1.5 ROI control Sergey Senozhatsky
2021-05-26 10:38 ` [PATCHv5 0/5] media: uvcvideo: implement UVC 1.5 ROI Hans Verkuil
2021-06-01 8:46 ` Sergey Senozhatsky
2021-06-01 8:52 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210501082001.100533-2-senozhatsky@chromium.org \
--to=senozhatsky@chromium.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ribalda@chromium.org \
--cc=tfiga@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).