From patchwork Sun Oct 22 22:41:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 19174 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 DD074C32B7 for ; Sun, 22 Oct 2023 22:42:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B6CF56298F; Mon, 23 Oct 2023 00:42:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1698014522; bh=uzytg9XPiIIZvWsxEtW22xjQfMJLrMSeMWhrIHuTI9s=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=wsIakGU5GxCRJjMNOEsrHkpEkjwk15HAqS+q23cJZ+Vv9+JWPYRBO7p6RpDHkQUW5 N5kciVoXR2h0z1LTgkFgz6QJXxr4MJkktkfxKxK7VeKngqxv+LP12bFDA2hdtgsd/0 kjJCGQGeuxqvW1Ekv77EFCauewGofdZi9sxMNEyf1B8duC52WBkrMLKqqJw29upnhM tesy+VGTsTLyrR40bxKf1Who0iZLsE/TnCnG0s57mmbn7fic2d4zh8xBy7n6z3y7i0 kkVhGwpoyX2TODWFJSr+iJlFPRXFQmyiTQZuQIgVKsdoCcHyMIdGMKti8+2uBczRZf mm7JpFECpQZxQ== 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 76E2161DD0 for ; Mon, 23 Oct 2023 00:41:58 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="e3PGVhO7"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 21584749; Mon, 23 Oct 2023 00:41:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698014508; bh=uzytg9XPiIIZvWsxEtW22xjQfMJLrMSeMWhrIHuTI9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3PGVhO7N+QM2OhoFwQ1gBXJjd5cB+T260YFuZjjtM6eQ5U1T7Pk/o08NVEtxFclI r1qtYUzQBLsSs5L8irK/k9QI2N15bEmAHZURR0Uquz3pEdpMF5nSbyvd4ZbwcTskUS Zg40i5+3cWr7xoc7baF4prtjfq3/PRpBlm0ZbVPA= To: libcamera-devel@lists.libcamera.org Date: Mon, 23 Oct 2023 01:41:56 +0300 Message-ID: <20231022224159.30298-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231019140133.32090-1-jacopo.mondi@ideasonboard.com> References: <20231019140133.32090-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 18/12] fixup! libcamera: Use CameraConfiguration::orientation 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: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" - Use division operator in rpi pipeline handler Signed-off-by: Laurent Pinchart --- src/libcamera/pipeline/rpi/common/pipeline_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp index da52d7fafcee..ee222d060e4a 100644 --- a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp +++ b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp @@ -1234,8 +1234,8 @@ int CameraData::configureIPA(const CameraConfiguration *config, ipa::RPi::Config } /* Always send the user transform to the IPA. */ - params.transform = - static_cast(transformFromOrientation(config->orientation)); + Transform transform = config->orientation / Orientation::Rotate0; + params.transform = static_cast(transform); /* Ready the IPA - it must know about the sensor resolution. */ ret = ipa_->configure(sensorInfo_, params, result);