From patchwork Sun Jun 12 15:23:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16197 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 F2AC1BD808 for ; Sun, 12 Jun 2022 15:23:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 35E2D65638; Sun, 12 Jun 2022 17:23:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655047405; bh=Of7uU9URnLbKWImr6qqBMVprTA8QQa71+RTzDffE/mE=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=H8GbqnP/UCEyJLh6Vpgi8VauRn6jJKrwau6q86MSZE5Cvjatbk+QdNsa1SChlPb22 efkKevrHgXSc2vlbb0Or4rBvthuLtpB3isWIg+LdkiD9+uJsHVXzqftcaaIiirASfs dLAEai8zB25Bjt/hldApYT7njYg60/NVavMo4avYK05xGP+ugunRxIat0JIaqRH0rF UFuFmmXdjUI5B/AYYZy211euq3dZfYFruM8l6Q1nq5vHV/5hE4dOX4Fxmvx0WKZlZx YgbE38UGWOKI1JWXaS/GtmpQuBu5XMVLvnsNtM6Is3c7O+WteV3dVbJiS86a2U43JR coqxQmOwYI+JQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C52C8600F4 for ; Sun, 12 Jun 2022 17:23:23 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="GRmJUR8m"; 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 10DD551C; Sun, 12 Jun 2022 17:23:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655047403; bh=Of7uU9URnLbKWImr6qqBMVprTA8QQa71+RTzDffE/mE=; h=From:To:Cc:Subject:Date:From; b=GRmJUR8mDKjLMyKgFE6P7Wq8rKfJ6RmuCnwBeBG8oz5XFtD44wDrXjERk7C/b/NsI Ukjn1UNoGiMMZ1GrFZPEy5dUrdsH7b6sFlsL0InSqIm5X5bn01g0ZDQF2/lOQSdEpz LAnm9BfCD16hFwD60hqP4xNZfKxCvwnbkTYcQTvU= To: libcamera-devel@lists.libcamera.org Date: Sun, 12 Jun 2022 18:23:06 +0300 Message-Id: <20220612152311.8408-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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 Cc: Dorota Czaplejewicz , Benjamin Schaaf 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 | 270 ++++++++++++++++------- 1 file changed, 190 insertions(+), 80 deletions(-) base-commit: b4d4b78c82a23de3c6dd1676bf43bba1d6043652 Tested-by: Dorota Czaplejewicz Reviewed-by: Dorota Czaplejewicz