From patchwork Tue Jan 5 19:05:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10814 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id AA0C8C0F1A for ; Tue, 5 Jan 2021 19:05:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 256CD6278D; Tue, 5 Jan 2021 20:05:14 +0100 (CET) Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 83AD762012 for ; Tue, 5 Jan 2021 20:05:13 +0100 (CET) Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 3CCE2100002 for ; Tue, 5 Jan 2021 19:05:12 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 5 Jan 2021 20:05:10 +0100 Message-Id: <20210105190522.682324-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/12] android: Exposure times + scaler crop + android metadata X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Based on: [PATCH v5 00/10] libcamera: camera_sensor: Make validation more strict This series addresses mainly 3 things, in order to grow the Camera HAL by instrumenting the IPU3 pipeline handler to provide the required information. - Patches [1/12] -> [5/12] Register the ExposureTime control in the IPU3 pipeline handler to be able to register the EXPOSURE_TIME_RANGE static metadata in the HAL. Reports the default exposure time and collects it as EXPOSURE_TIME dynamic metadata in the Camera HAL. -Patches [5/12] -> [10/12] Register the ScalerCropMaximum property and handle the ScalerCrop property in the IPU3 pipeline handler to be able to register the MAX_DIGITAL_ZOOM static metadata and to handle the SCALER_CROP_REGION control and dynamic metadata. - Patches [11/12] and [12/12] Fixes for the android.hardware.camera2.cts.CaptureRequestTest CTS test module. The last patch specifically adds in bulk a lot of dynamic metadata which we didn't report. As reported in the commit message, handling MAX_FRAME_DURATION would fix all tests in that module (2 on 22 failing with this series applied). As a bonus, it is not possible to switch between the front and the back camera in the stock ChromeOS camera application. Thanks j Jacopo Mondi (12): libcamera: CameraSensor: Mention V4L2 in get/setControls() libcamera: camera_sensor: Make V4L2_CID_EXPOSURE mandatory libcamera: ipu3: Register Exposure control android: camera_device: Register EXPOSURE_TIME_RANGE android: camera_device: Report EXPOSURE_TIME libcamera: ipu3: Initialize ScalerCropMaximum property libcamera: ipu3: Register ScalerCrop control android: camera_device: Register MAX_DIGITAL_ZOOM libcamera: ipu3: Handle ScalerCrop android: camera_device: Handle SCALER_CROP_REGION android: camera_device: Support AWB_AUTO android: camera_device: Report the required dynamic metadata Documentation/sensor_driver_requirements.rst | 12 +- src/android/camera_device.cpp | 234 +++++++++++++++---- src/android/camera_device.h | 2 + src/android/camera_worker.h | 1 + src/libcamera/camera_sensor.cpp | 25 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 183 ++++++++++++++- 6 files changed, 388 insertions(+), 68 deletions(-) --- 2.29.2