From patchwork Thu Nov 24 11:38:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 17882 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 B7F03BE08B for ; Thu, 24 Nov 2022 11:39:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 753CF63322; Thu, 24 Nov 2022 12:39:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669289947; bh=FEgg053LJqNPqDZEsgYZ3eXrCiGeZWODHlpvDbrVetU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=x2xIbwZ2ftUysGfoRHDGuseGM4ob3Jr9BGJsRQZZQXFMTaabCWFb3IY/m908rV/Ut Ii6pyY5zK3Y7y4xTg5zhCdHo87kCvL7akwwEMA7Pe9sBZrgZWB33PS0EInQKnYkzpY S8Scd84/pk4ECBEkOinmKTMeZ6LbxmBq+uKzkg1H4GayssuqQlJwqTLXJYPylFT7gp mKcpUAZqWJ0L/w26ncd18xYnCfiF0gYu1N4ZU8iZCyCEW3UMGUjT8KRN5XDQ+3aXa4 iHq/Ofg4gEDFV00GsJtntnMqhD8B3/ZfF0Da0QtVcFobyCrYcropdWZDIgGFyiVyAh s51oF7ijsDIeQ== 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 5F64F63322 for ; Thu, 24 Nov 2022 12:39:05 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="tP/KUgLG"; dkim-atps=neutral Received: from pyrite.tail37cf.ts.net (h175-177-042-159.catv02.itscom.jp [175.177.42.159]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 31792978; Thu, 24 Nov 2022 12:39:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669289945; bh=FEgg053LJqNPqDZEsgYZ3eXrCiGeZWODHlpvDbrVetU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tP/KUgLGh0KgdJlXEwy1HEGNbjxiGxn2Csk8zgK1320Oo46FpsFfyJfIvEZyEAswF W42c6ZsYDO5/yei6iK+8UpdXNf8rdj1S9F/Tv9T34tubP3WRKvM0dofzY5KY+83qUs /ftSrKY5AEimmqDakGMXcaZhZoI9bRzJt+u8HJqs= To: libcamera-devel@lists.libcamera.org Date: Thu, 24 Nov 2022 20:38:46 +0900 Message-Id: <20221124113849.2193579-4-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221124113849.2193579-1-paul.elder@ideasonboard.com> References: <20221124113849.2193579-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/6] utils: libtuning: lsc: raspberry: Add per-image debug plotting 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: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add debug plotting the LSC table for each image to the Raspberry Pi ALSC module. Signed-off-by: Paul Elder Reviewed-by: Daniel Scally --- utils/tuning/libtuning/modules/lsc/raspberrypi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/tuning/libtuning/modules/lsc/raspberrypi.py b/utils/tuning/libtuning/modules/lsc/raspberrypi.py index 58f5000d..a0298348 100644 --- a/utils/tuning/libtuning/modules/lsc/raspberrypi.py +++ b/utils/tuning/libtuning/modules/lsc/raspberrypi.py @@ -74,7 +74,8 @@ class ALSCRaspberryPi(LSC): cr, _ = self._lsc_single_channel(image.channels[lt.Color.R], image, g) cb, _ = self._lsc_single_channel(image.channels[lt.Color.B], image, g) - # \todo implement debug + if self.debug: + self._plot_single_lsc(image, cr, cb, cg) return image.color, cr.flatten(), cb.flatten(), cg.flatten()