From patchwork Fri May 24 16:21:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 1285 Return-Path: Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D0FF660003 for ; Fri, 24 May 2019 18:20:38 +0200 (CEST) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 4D43424000A; Fri, 24 May 2019 16:20:37 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Fri, 24 May 2019 18:21:33 +0200 Message-Id: <20190524162139.4446-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/6] META_OUTPUT support + IPU3 parameters tuning X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2019 16:20:39 -0000 Hello, in order to prepare integration with external components performing image processing tuning, this series paves the road using the IPU3 pipeline handler, and extends the v4l2 device support implementation to support META formats, used to exchange statistics and parameter with the ISP. The first 3 patches are considered to be meant for inclusion. 4/6 and 5/6 are optional but required to test 6/6, which is a proof of concept not intended for merging, that shows how it is possible to access statistics and parameters on IPU3, in order to make sure external 3A components will actually be able to access those. Parameter tuning is limited to crippling the color space conversion matrix by halving the default values and making sure the captured images reflect the change. Statistics analysys is as well limited to inspect a few AWB statistics and make sure they change according to the lighting conditions applied on the image sensor. Please focus on 1/6 2/6 ands 3/6 for review, and consider the rest optional. Thanks j Jacopo Mondi (6): include: linux: Update Linux headers to v5.1 libcamera: v4l2_device: Add support for META_OUTPUT libcamera: v4l2_device: Add META support in g/s_fmt include: linux: Add intel-ipu3 kernel header include: linux: intel-ipu3: Force alignement to 32 bytes POC: Don't merge: Access params and stat on IPU3 include/linux/intel-ipu3.h | 2779 ++++++++++++++++++++++++++ include/linux/media.h | 8 + include/linux/v4l2-common.h | 26 +- include/linux/v4l2-controls.h | 4 + include/linux/videodev2.h | 88 +- src/libcamera/include/v4l2_device.h | 17 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 208 +- src/libcamera/v4l2_device.cpp | 119 +- 8 files changed, 3189 insertions(+), 60 deletions(-) create mode 100644 include/linux/intel-ipu3.h --- 2.21.0