From: Yong Zhi <yong.zhi@intel.com>
To: linux-media@vger.kernel.org, sakari.ailus@linux.intel.com
Cc: jian.xu.zheng@intel.com, tfiga@chromium.org,
rajmohan.mani@intel.com, tuukka.toivonen@intel.com,
Yong Zhi <yong.zhi@intel.com>
Subject: [PATCH v2 01/12] videodev2.h, v4l2-ioctl: add IPU3 meta buffer format
Date: Wed, 14 Jun 2017 17:19:16 -0500 [thread overview]
Message-ID: <1497478767-10270-2-git-send-email-yong.zhi@intel.com> (raw)
In-Reply-To: <1497478767-10270-1-git-send-email-yong.zhi@intel.com>
Add the IPU3 specific processing parameter format
V4L2_META_FMT_IPU3_PARAMS and metadata formats
for 3A and other statistics:
V4L2_META_FMT_IPU3_PARAMS
V4L2_META_FMT_IPU3_STAT_3A
V4L2_META_FMT_IPU3_STAT_DVS
V4L2_META_FMT_IPU3_STAT_LACE
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
---
drivers/media/v4l2-core/v4l2-ioctl.c | 4 ++++
include/uapi/linux/videodev2.h | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
index fb1387f..919aa24 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -1239,6 +1239,10 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
case V4L2_TCH_FMT_TU08: descr = "8-bit unsigned touch data"; break;
case V4L2_META_FMT_VSP1_HGO: descr = "R-Car VSP1 1-D Histogram"; break;
case V4L2_META_FMT_VSP1_HGT: descr = "R-Car VSP1 2-D Histogram"; break;
+ case V4L2_META_FMT_IPU3_PARAMS: descr = "IPU3 processing parameters"; break;
+ case V4L2_META_FMT_IPU3_STAT_3A: descr = "IPU3 3A statistics"; break;
+ case V4L2_META_FMT_IPU3_STAT_DVS: descr = "IPU3 DVS statistics"; break;
+ case V4L2_META_FMT_IPU3_STAT_LACE: descr = "IPU3 LACE statistics"; break;
default:
/* Compressed formats */
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 7bfa6ad..fab8822 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -685,6 +685,12 @@ struct v4l2_pix_format {
#define V4L2_META_FMT_VSP1_HGO v4l2_fourcc('V', 'S', 'P', 'H') /* R-Car VSP1 1-D Histogram */
#define V4L2_META_FMT_VSP1_HGT v4l2_fourcc('V', 'S', 'P', 'T') /* R-Car VSP1 2-D Histogram */
+/* Vendor specific - used for IPU3 camera sub-system */
+#define V4L2_META_FMT_IPU3_PARAMS v4l2_fourcc('i', 'p', '3', 'p') /* IPU3 params */
+#define V4L2_META_FMT_IPU3_STAT_3A v4l2_fourcc('i', 'p', '3', 's') /* IPU3 3A statistics */
+#define V4L2_META_FMT_IPU3_STAT_DVS v4l2_fourcc('i', 'p', '3', 'd') /* IPU3 DVS statistics */
+#define V4L2_META_FMT_IPU3_STAT_LACE v4l2_fourcc('i', 'p', '3', 'l') /* IPU3 LACE statistics */
+
/* priv field value to indicates that subsequent fields are valid. */
#define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe
--
2.7.4
next prev parent reply other threads:[~2017-06-14 22:19 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-14 22:19 [PATCH v2 00/12] Intel IPU3 ImgU patchset Yong Zhi
2017-06-14 22:19 ` Yong Zhi [this message]
2017-06-14 22:19 ` [PATCH v2 02/12] intel-ipu3: mmu: implement driver Yong Zhi
2017-06-14 22:19 ` [PATCH v2 03/12] intel-ipu3: Add DMA API implementation Yong Zhi
2017-06-14 22:19 ` [PATCH v2 04/12] intel-ipu3: Add user space ABI definitions Yong Zhi
2017-06-14 22:19 ` [PATCH v2 06/12] intel-ipu3: css: imgu dma buff pool Yong Zhi
2017-06-14 22:19 ` [PATCH v2 07/12] intel-ipu3: css: firmware management Yong Zhi
2017-07-12 18:33 ` [v2,07/12] " Matthias Kaehlcke
2017-07-12 18:46 ` Zhi, Yong
2017-06-14 22:19 ` [PATCH v2 08/12] intel-ipu3: params: compute and program ccs Yong Zhi
2017-06-16 22:52 ` Andy Shevchenko
2017-10-11 4:14 ` Zhi, Yong
2017-10-11 7:29 ` sakari.ailus
2017-10-11 13:31 ` Andy Shevchenko
2017-10-11 14:01 ` Tuukka Toivonen
2017-10-11 14:27 ` Andy Shevchenko
2017-10-13 23:08 ` Sakari Ailus
2017-06-14 22:19 ` [PATCH v2 09/12] intel-ipu3: css hardware setup Yong Zhi
2017-06-16 22:54 ` Andy Shevchenko
2017-06-17 18:43 ` Sakari Ailus
2017-06-17 19:06 ` Andy Shevchenko
2017-10-11 2:02 ` Zhi, Yong
2017-06-14 22:19 ` [PATCH v2 10/12] intel-ipu3: css pipeline Yong Zhi
2017-06-14 22:19 ` [PATCH v2 11/12] intel-ipu3: Add imgu v4l2 driver Yong Zhi
2017-06-16 14:50 ` Sakari Ailus
2017-06-14 22:19 ` [PATCH v2 12/12] intel-ipu3: imgu top level pci device Yong Zhi
2017-06-16 22:58 ` Andy Shevchenko
2017-06-17 0:00 ` Zhi, Yong
2017-06-17 6:32 ` Tomasz Figa
2017-06-17 8:37 ` Andy Shevchenko
2017-06-17 18:45 ` Sakari Ailus
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=1497478767-10270-2-git-send-email-yong.zhi@intel.com \
--to=yong.zhi@intel.com \
--cc=jian.xu.zheng@intel.com \
--cc=linux-media@vger.kernel.org \
--cc=rajmohan.mani@intel.com \
--cc=sakari.ailus@linux.intel.com \
--cc=tfiga@chromium.org \
--cc=tuukka.toivonen@intel.com \
/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).