From patchwork Fri Aug 5 18:18:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 16990 X-Patchwork-Delegate: umang.jain@ideasonboard.com 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 5DD07BE173 for ; Fri, 5 Aug 2022 18:19:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1479B63335; Fri, 5 Aug 2022 20:19:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659723545; bh=9lE0amTknXsyC7TQgRRPyXW7aTh/R/rja9omnQvnqq8=; 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=WYA6AkAJ9w1CwN6a97B/7oiUppYEie2FpotgJp1DaFY/ghwH3+SMYucq3WE7v2Y6f ZqAONXZ1vG5nwnF2Y/M87mU5vR31LaRKKQjtCNNfsVbDNHCxF7Jinyxqr8mxjcpoTx e+RXnqRiocIGNLt2oLd3yQL8zYSYGpHAvcMoN/BVOVM571pUKj+lbkEXqd7kslYXHF H0M0PW5Ag4myCBG8Lhydx5Mm26IWnkSJYuo3VuF1pFM5c6mBHXFOerfE68Mva/z2hn PS/Ixzq97qub29qfM8AK4Y3NYQQ38kbZX8TCgaOAbOv7TkkMCRjry8Sc+6IIvNSd8q T+5u9d4R4qYRQ== 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 43618603F0 for ; Fri, 5 Aug 2022 20:19:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sKu+ARhB"; dkim-atps=neutral Received: from perceval.ideasonboard.com (unknown [IPv6:2401:4900:1f3e:69e0:a479:4ccc:ab2a:bf48]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3D537480; Fri, 5 Aug 2022 20:19:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1659723543; bh=9lE0amTknXsyC7TQgRRPyXW7aTh/R/rja9omnQvnqq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sKu+ARhBehGVC7hM7QuiZudhtlKt92A7SEI/lJRoWfFIVxynhw4sJ/SnNtuMafqcL 5v4h9XMXC19OAcR+67HUr6eRVTrLtU0nIFq1J/qXgnYAAokR4HaBTuk1Yr+81VvAkD x+ZAkBvofEA4+vhAMdd6CoEOEXoQphWFipou80oE= To: libcamera-devel@lists.libcamera.org Date: Fri, 5 Aug 2022 23:48:48 +0530 Message-Id: <20220805181850.848886-4-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220805181850.848886-1-umang.jain@ideasonboard.com> References: <20220805181850.848886-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/5] utils: ipu3-gen-imgu-input: Generate frames with different b/g 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: Umang Jain via libcamera-devel From: Umang Jain Reply-To: Umang Jain Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Differ each input generated frame by background color. This would help us to deterimine how the IMGU statistics generation delay for each frame. Signed-off-by: Umang Jain --- utils/ipu3/ipu3-gen-imgu-input.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/ipu3/ipu3-gen-imgu-input.sh b/utils/ipu3/ipu3-gen-imgu-input.sh index ea0d385d..9e233396 100755 --- a/utils/ipu3/ipu3-gen-imgu-input.sh +++ b/utils/ipu3/ipu3-gen-imgu-input.sh @@ -66,10 +66,14 @@ if [[ -z ${in_size+x} ]] ; then exit 1 fi +colors=(black red green violet yellow orange purple white brown pink gray) + echo "Generating Input file frame-$in_size.raw" for i in `seq 0 $(expr $frame_count - 1)` do - convert -background "#000000" -size $in_size -fill "#ffffff" -pointsize 120 -gravity center label:"Frame $i" frame-$i.ppm + color_index=$(expr $i % ${#colors[@]}) + convert -background "${colors[$color_index]}" -size $in_size -fill "white" \ + -pointsize 120 -gravity center label:"Frame $i" frame-$i.ppm pnm2raw frame-$i.ppm frame-$i.raw ipu3-pack frame-$i.raw - >> frame-$in_size.raw