From patchwork Wed May 4 13:21:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 15773 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 A1352C3256 for ; Wed, 4 May 2022 13:22:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 757A36564F; Wed, 4 May 2022 15:22:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1651670521; bh=H75lQdCHnQ7Ja66crllWwfuDFNsiCEhGfec3dj1Xr7g=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=G+S9HsmZSG3aYLXn+lrbf55NbCkxpbzX+XWWQG5M9xKuWSVsm8NeJd3nuVPn2u1Ok vowQsGgEqCyLmmsVmECTIiDzs0+uNPYBEW/ONjYdPG3vgrTm5S4XtUFjJ1LMFOXz72 YYR3MsuZ+yC3TsNGqprYiaBW34qiKbBIw3ad7WDG++jCAKegl2T0xKmZIeK0S5f+8L 8+f2Ld1FZL7r9CWDXnR9Gakk0+0INKJl1MZLwgF8kWacQA3mesZnjr7DT/t5j5v127 b07v/0nHxYUt1LkAyhDP0Hx/eAfiiIVIeEx8K7MVk0kQQANb8uz7RG00Bu5i44KtK3 0UfQbJhSknIGQ== 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 BD1A465641 for ; Wed, 4 May 2022 15:21:59 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="si4xJ/d+"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3ED6C4A8 for ; Wed, 4 May 2022 15:21:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1651670519; bh=H75lQdCHnQ7Ja66crllWwfuDFNsiCEhGfec3dj1Xr7g=; h=From:To:Subject:Date:From; b=si4xJ/d+dJ33zpp9cgq8/HCDSWx5FYji1wax6blCJ9uk4KGO/ia9wC1iT+7lF7owd bXqOXPXLhjhT+qrsmk272VYVyM38c657D+pap/v9YxbAUfERg8AFWhJogcKzVhP4y3 15qpADAywJVqE6R+g+Zm0ueHUfhBmbfxArI4njr4= To: libcamera-devel@lists.libcamera.org Date: Wed, 4 May 2022 16:21:49 +0300 Message-Id: <20220504132154.9681-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] libcamera: pipeline: simple: Support scaling on the camea sensor 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This patch series improves the simple pipeline handler to support scaling (in the generic sense, this can be binning/skipping or real scaling) on the camera sensor in addition to the converter. This is useful on platforms that don't have a converter, but also on platforms where the SoC camera pipeline has limitations on resolution and/or bandwidth. Patches 1/5 and 2/5 are small drive-by improvements, patches 3/5 and 4/5 prepare for sensor scaling support with some code refactoring, and patch 5/5 then performs the bulk of the work, with an explanation of the heuristics used to configure scaling. Laurent Pinchart (5): libcamera: pipeline: simple: Improve debug message on config failure libcamera: pipeline: simple: Document the pipeline traversal algorithm libcamera: pipeline: simple: Factor out format test to separate function libcamera: pipeline: simple: Store sensor resolution in configuration libcamera: pipeline: simple: Support scaling on the sensor src/libcamera/pipeline/simple/simple.cpp | 262 ++++++++++++++++------- 1 file changed, 182 insertions(+), 80 deletions(-) base-commit: 8a845ab078c3fe12ac4edd16c8cbac5b7ec03b98