From patchwork Wed Jul 3 22:52:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 20573 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 B7A69BEFBE for ; Wed, 3 Jul 2024 22:53:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1C07663362; Thu, 4 Jul 2024 00:53:24 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="tum4xxlZ"; 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 7875F63340 for ; Thu, 4 Jul 2024 00:53:00 +0200 (CEST) Received: from pendragon.ideasonboard.com (117.145-247-81.adsl-dyn.isp.belgacom.be [81.247.145.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 142954CC; Thu, 4 Jul 2024 00:52:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1720047152; bh=pM2u/a/eReLNpich7zbBGhdjwcXJUqGHOfYF0VC9cEo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tum4xxlZ5PLtV/cBQcPbkYmw1k/6YwlNdV8Nbc5G8Z2hS6CAK8bL9JBAq1NsF777x x204XVR/9zxHmvfCNUHwlsLleqoweQCH0ph0aLvh6FqEM4MKnWHdnxkyuN2OslVAv1 gTraajWY8NVjCVy/oAHVXM9TwR5VilYE9H/Ekpx4= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi , Paul Elder Subject: [PATCH v1 09/11] ipa: rkisp1: params: Add companding blocks Date: Thu, 4 Jul 2024 01:52:28 +0300 Message-ID: <20240703225230.3530-10-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240703225230.3530-1-laurent.pinchart@ideasonboard.com> References: <20240703225230.3530-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 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" Extend the RkISP1 parameters helper with support for the new companding blocks. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/ipa/rkisp1/params.cpp | 3 +++ src/ipa/rkisp1/params.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/ipa/rkisp1/params.cpp b/src/ipa/rkisp1/params.cpp index ac25ade1c8c4..5fb8fbf943a7 100644 --- a/src/ipa/rkisp1/params.cpp +++ b/src/ipa/rkisp1/params.cpp @@ -66,6 +66,9 @@ const std::map kBlockTypeInfo = { RKISP1_BLOCK_TYPE_ENTRY_MEAS(Hst, HST, hst), RKISP1_BLOCK_TYPE_ENTRY_MEAS(Aec, AEC, aec), RKISP1_BLOCK_TYPE_ENTRY_MEAS(Afc, AFC, afc), + RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandBls, COMPAND_BLS, compand_bls), + RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandExpand, COMPAND_EXPAND, compand_curve), + RKISP1_BLOCK_TYPE_ENTRY_EXT(CompandCompress, COMPAND_COMPRESS, compand_curve), }; } /* namespace */ diff --git a/src/ipa/rkisp1/params.h b/src/ipa/rkisp1/params.h index ddd081de7894..13b2bbbb8182 100644 --- a/src/ipa/rkisp1/params.h +++ b/src/ipa/rkisp1/params.h @@ -37,6 +37,9 @@ enum class Block { Hst, Aec, Afc, + CompandBls, + CompandExpand, + CompandCompress, }; namespace details { @@ -68,6 +71,9 @@ RKISP1_DEFINE_BLOCK_TYPE(Awb, awb_meas) RKISP1_DEFINE_BLOCK_TYPE(Hst, hst) RKISP1_DEFINE_BLOCK_TYPE(Aec, aec) RKISP1_DEFINE_BLOCK_TYPE(Afc, afc) +RKISP1_DEFINE_BLOCK_TYPE(CompandBls, compand_bls) +RKISP1_DEFINE_BLOCK_TYPE(CompandExpand, compand_expand) +RKISP1_DEFINE_BLOCK_TYPE(CompandCompress, compand_compress) } /* namespace details */