Patch Detail
Show a patch.
GET /api/patches/16989/?format=api
{ "id": 16989, "url": "https://patchwork.libcamera.org/api/patches/16989/?format=api", "web_url": "https://patchwork.libcamera.org/patch/16989/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20220805181850.848886-3-umang.jain@ideasonboard.com>", "date": "2022-08-05T18:18:47", "name": "[libcamera-devel,2/5] utils: ipu3: Helper to generate IMGU input streaming file", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "aa3e44766b5ac1f31a5522ee67b05bcdac412555", "submitter": { "id": 86, "url": "https://patchwork.libcamera.org/api/people/86/?format=api", "name": "Umang Jain", "email": "umang.jain@ideasonboard.com" }, "delegate": { "id": 12, "url": "https://patchwork.libcamera.org/api/users/12/?format=api", "username": "uajain", "first_name": "Umang", "last_name": "Jain", "email": "umang.jain@ideasonboard.com" }, "mbox": "https://patchwork.libcamera.org/patch/16989/mbox/", "series": [ { "id": 3378, "url": "https://patchwork.libcamera.org/api/series/3378/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3378", "date": "2022-08-05T18:18:45", "name": "IMGU standalone streaming", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3378/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/16989/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/16989/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 29FE7C3275\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 5 Aug 2022 18:19:03 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 91F37603E4;\n\tFri, 5 Aug 2022 20:19:02 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 4FF0F603E4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 5 Aug 2022 20:19:01 +0200 (CEST)", "from perceval.ideasonboard.com (unknown\n\t[IPv6:2401:4900:1f3e:69e0:a479:4ccc:ab2a:bf48])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 4A9A26E0;\n\tFri, 5 Aug 2022 20:19:00 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1659723542;\n\tbh=ZhNavlpmdRSddSQo8QA2pmbNcVOml11Ur7hNgZEMLEM=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=dSGeDmItjgYg7xtj4zq9CGrQ1qT4+lT7zTEjlhxXoftPVukRRzWXDirO1oEUGXSxp\n\tqPglM+zCsN+cyafgyEKvqaNDAcrkYW+SWdD5pkYT8wqBDadCmYD9RfPF/ZJbpAmtHw\n\tD9EFRRBaluEX+Bel9+9GH5V/LmxonE/jkz1QO38yPp826G5X8ynNfn19aPaQKGdIVb\n\tFPDxY/+fpe7sffm+VaFYfnDr7QjDw+hICF94ov+T0arVP7GUJEHLG9JbEhkrVcjbY5\n\tMnKFprrpTwI4xxhQLZBs2Sa+kONqc4zUc+6gzyI07xc8XO/vCfA8PLt7rFm1evTYa+\n\tuVCmvqKmCVVoQ==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1659723541;\n\tbh=ZhNavlpmdRSddSQo8QA2pmbNcVOml11Ur7hNgZEMLEM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=o4I/5B88+Zvp1Q9knRNCgP6daIRHr0TJMN+aw38WSAuiP3kYVRnVUL+Rh8LNLHA7+\n\tdgbM4kPIzWG7Im50vSt9wU+iT56Mqym1WGwPzBC6xDTFGZTIfqZAy3c3N0+46XL4kx\n\t0lIIRsgfvZPTd1Ahkmaus4STHbJtpcmxWgzZgrY8=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"o4I/5B88\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 5 Aug 2022 23:48:47 +0530", "Message-Id": "<20220805181850.848886-3-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", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH 2/5] utils: ipu3: Helper to generate IMGU\n\tinput streaming file", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "From": "Umang Jain via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Umang Jain <umang.jain@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Usage: ipu3-gen-imgu-input.sh --count <count> --size <size>\n\nThe input file is generated in 10-bit bayer which can be directly\nstreamed to IMGU. Each frame (starting from 0) has a black background\nwith a visible \"Frame <count>\" label in the center.\n\nSigned-off-by: Umang Jain <umang.jain@ideasonboard.com>\n---\n utils/ipu3/ipu3-gen-imgu-input.sh | 78 +++++++++++++++++++++++++++++++\n 1 file changed, 78 insertions(+)\n create mode 100755 utils/ipu3/ipu3-gen-imgu-input.sh", "diff": "diff --git a/utils/ipu3/ipu3-gen-imgu-input.sh b/utils/ipu3/ipu3-gen-imgu-input.sh\nnew file mode 100755\nindex 00000000..ea0d385d\n--- /dev/null\n+++ b/utils/ipu3/ipu3-gen-imgu-input.sh\n@@ -0,0 +1,78 @@\n+#!/bin/bash\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+# Copyright (C) 2022, Google Inc.\n+#\n+# Author: Umang Jain <umang.jain@ideasonboard.com>\n+#\n+# ipu3-gen-imgu-input.sh - Generate input file for IMGU streaming\n+#\n+# The scripts makes use of the following tools, which are expected to be\n+# found in $PATH:\n+#\n+# - raw2pnm (from nvt https://github.com/intel/nvt.git)\n+# - pnm2raw (from nvt https://github.com/intel/nvt.git)\n+# - ipu-pack (from https://git.libcamera.org/libcamera/libcamera.git/)\n+# - convert (from https://github.com/ImageMagick/ImageMagick/tree/main/utilities)\n+\n+#default frame count\n+frame_count=10\n+\n+validate_size() {\n+\tlocal size=$1\n+\tlocal width=$(echo $size | awk -F 'x' '{print $1}')\n+\tlocal height=$(echo $size | awk -F 'x' '{print $2}')\n+\n+\t[[ \"x${size}\" == \"x${width}x${height}\" ]]\n+}\n+\n+# Print usage message\n+usage() {\n+\techo \"Usage: $(basename $1) --count <count> --size <size>\"\n+\techo \"Supported options:\"\n+\techo \"--count count Generate input file containing <count> frames, default=10\"\n+\techo \"--size size Frame size ('width' x 'height')\"\n+\techo \"\"\n+}\n+\n+# Parse command line arguments\n+while (( \"$#\" )) ; do\n+\tcase $1 in\n+\t--count)\n+\t\tframe_count=$2\n+\t\tshift 2\n+\t\t;;\n+\t--size)\n+\t\tin_size=$2\n+\t\tif ! validate_size $in_size ; then\n+\t\t\techo \"Invalid size '$in_size'\"\n+\t\t\tusage $0\n+\t\t\texit 1\n+\t\tfi\n+\t\tshift 2\n+\t\t;;\n+\t-*)\n+\t\techo \"Unsupported option $1\" >&2\n+\t\tusage $0\n+\t\texit 1\n+\t\t;;\n+\t*)\n+\t\tbreak\n+\t\t;;\n+\tesac\n+done\n+\n+if [[ -z ${in_size+x} ]] ; then\n+\tusage $0\n+\texit 1\n+fi\n+\n+echo \"Generating Input file frame-$in_size.raw\"\n+for i in `seq 0 $(expr $frame_count - 1)`\n+do\n+\tconvert -background \"#000000\" -size $in_size -fill \"#ffffff\" -pointsize 120 -gravity center label:\"Frame $i\" frame-$i.ppm\n+\tpnm2raw frame-$i.ppm frame-$i.raw\n+\tipu3-pack frame-$i.raw - >> frame-$in_size.raw\n+\n+\trm frame-$i.ppm\n+\trm frame-$i.raw\n+done\n", "prefixes": [ "libcamera-devel", "2/5" ] }