From patchwork Sat Aug 17 10:59:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 1812 Return-Path: Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D1986600F9 for ; Sat, 17 Aug 2019 12:58:15 +0200 (CEST) X-Originating-IP: 87.5.130.64 Received: from uno.homenet.telecomitalia.it (host64-130-dynamic.5-87-r.retail.telecomitalia.it [87.5.130.64]) (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 414111C0002; Sat, 17 Aug 2019 10:58:15 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Sat, 17 Aug 2019 12:59:32 +0200 Message-Id: <20190817105937.29353-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] libcamera: camera_sensor: Collect camera location and sizes 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: Sat, 17 Aug 2019 10:58:16 -0000 Hello, this small series add to the CameraSensor class informations on the camera sensor location, the pixel array size and the active area sizes. The information are required to populate the Android static metadata: android.sensor.info.activeArraySize android.sensor.info.pixelArraySize and the 'struct camera_info.facing' flag. Now that information are collected in the CameraSensor class, a way to expose them through the Camera class is required. In example, adding the CameraSensor that a Camera uses to the Camera class and collects all its Property in a single properties vector might be the simplest way forward. The series depends on the following kernel patch series: https://patchwork.kernel.org/project/linux-media/list/?series=161169 https://patchwork.kernel.org/project/linux-media/list/?series=160901 Tested on IPU3 Soraka. Jacopo Mondi (5): [TEMP] include: linux: Update v4l2-controls.h libcamera: controls: Add camera location control libcamera: camera_sensor: Store the camera location libcamera: v4l2_subdevice: Add G_SELECTION ioctl support libcamera: camera_sensor: Retrieve sensor sizes include/libcamera/control_ids.h | 7 ++++ include/linux/v4l2-controls.h | 5 +++ src/libcamera/camera_sensor.cpp | 39 +++++++++++++++++++++ src/libcamera/include/camera_sensor.h | 5 +++ src/libcamera/include/v4l2_subdevice.h | 4 +++ src/libcamera/v4l2_subdevice.cpp | 48 ++++++++++++++++++++++++++ 6 files changed, 108 insertions(+) --- 2.22.0