From patchwork Tue Aug 10 07:58:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13272 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 CB0C5BD87D for ; Tue, 10 Aug 2021 07:59:03 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8D7CC68826; Tue, 10 Aug 2021 09:59:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Uk0ZPNLr"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B329D687DE for ; Tue, 10 Aug 2021 09:59:02 +0200 (CEST) Received: from perceval.ideasonboard.com (unknown [103.238.109.8]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BABDCEE; Tue, 10 Aug 2021 09:59:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1628582342; bh=QWrnUX6tNcoexa69rq/Hl7W/JhCqQ6+jUmHcEIDzUa0=; h=From:To:Cc:Subject:Date:From; b=Uk0ZPNLrmQaHkpavG20eIzeErRZqT6cwDuZQwUSLWGtyv0zCxss+IzPsF7ZPV+ElK oMgLjoU7ld71pNa9d1AtyeskOSB9HSY0S9xRSq4NNKqerKELz24mubva3CUplKtqql ueaicG2Ar9L/HYMnSTQzvrTWUFHclOU4toGwa4xY= From: Umang Jain To: libcamera-devel@lists.libcamera.org Date: Tue, 10 Aug 2021 13:28:50 +0530 Message-Id: <20210810075854.86191-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] ipu3: Change sensor size selection policy 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" The series is geared towards addressing sensor selection constraints on soraka and nautilus. 1/4 and 2/4 prepares the base to highlight the change in selection policy. 3/4 and 4/4 is the actual change. The constraints are documented in the commit messages of 3/4 and 4/4. Changes in v2: - 1/4 also sees the change in CIO2Device::sizes to CIO2Device::sizes(pixelFormat). - Use std::numeric_limits<> in 2/4. Include otherwise compilation breaks on gcc. - Few wordings restructure. Umang Jain (4): libcamera: camera_sensor: Transform CameraSensor::sizes() ipu3: cio2: Replicate CameraSensor::getFormats() to a member function ipu3: cio2: Change sensor size selection policy ipu3: cio2: Tweak sensor size selection policy include/libcamera/internal/camera_sensor.h | 2 +- src/libcamera/camera_sensor.cpp | 25 +++-- src/libcamera/pipeline/ipu3/cio2.cpp | 119 +++++++++++++++++++-- src/libcamera/pipeline/ipu3/cio2.h | 5 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +- test/camera-sensor.cpp | 2 +- 6 files changed, 138 insertions(+), 17 deletions(-)