From patchwork Tue Aug 27 09:50:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 1856 Return-Path: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2287E60BF6 for ; Tue, 27 Aug 2019 11:48:44 +0200 (CEST) Received: from uno.homenet.telecomitalia.it (unknown [87.18.63.98]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 7162510000D; Tue, 27 Aug 2019 09:48:43 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 27 Aug 2019 11:50:00 +0200 Message-Id: <20190827095008.11405-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/7] 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: Tue, 27 Aug 2019 09:48:44 -0000 Hello, v2 of the support for retrieving the camera sensor properties. The series depends on: https://patchwork.kernel.org/project/linux-media/list/?series=165797 As the previous version, this series collects informations on the camera location, rotation, pixel array size and active area size. v1 -> v2: - update to the new version of the associated kernel changes - Add support for camera sensor rotation - Separate controls ID from properties ID (still in the same file though) - Expose the get/set selection operations of V4L2Subdevice - Enforce correct values for the pixel array size and active pixel area size Finally, an example patch to the de-compiled Soraka DSDT table to add the rotation and location properties to the Soraka image sensor is provided. A similar change to the coreboot tables is included in the kernel patch series: https://patchwork.kernel.org/project/linux-media/list/?series=165803 On top of this series, the camera sensor properties should be expose and added to the Camera properties constructed by the pipeline handlers. Thanks j Jacopo Mondi (7): [TEMP] include: linux: Update v4l2-controls.h libcamera: controls: Document control_ids.h libcamera: controls: Add camera properties IDs libcamera: v4l2_controls: Construct from a list of ids libcamera: camera_sensor: Collect camera properties libcamera: v4l2_subdevice: Add selection support libcamera: camera_sensor: Retrieve sensor sizes include/libcamera/control_ids.h | 11 ++ include/libcamera/geometry.h | 1 + include/linux/v4l2-controls.h | 7 ++ src/libcamera/camera_sensor.cpp | 90 ++++++++++++++ src/libcamera/controls.cpp | 155 +++++++++++++++++-------- src/libcamera/geometry.cpp | 24 ++++ src/libcamera/include/camera_sensor.h | 8 ++ src/libcamera/include/v4l2_controls.h | 3 + src/libcamera/include/v4l2_subdevice.h | 9 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 4 +- src/libcamera/v4l2_controls.cpp | 17 +++ src/libcamera/v4l2_subdevice.cpp | 113 +++++++++++------- 12 files changed, 347 insertions(+), 95 deletions(-) --- 2.23.0