Show a patch.

GET /api/patches/16682/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 16682,
    "url": "https://patchwork.libcamera.org/api/patches/16682/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16682/",
    "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": "<20220719075818.895728-3-umang.jain@ideasonboard.com>",
    "date": "2022-07-19T07:58:18",
    "name": "[libcamera-devel,v1,2/2] utils: ipu3: Helper to generate IMGU input streaming file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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/16682/mbox/",
    "series": [
        {
            "id": 3297,
            "url": "https://patchwork.libcamera.org/api/series/3297/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3297",
            "date": "2022-07-19T07:58:16",
            "name": "Standalone IMGU streaming",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3297/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16682/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16682/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 ED769BD1F1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 19 Jul 2022 07:58:32 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A50BF63318;\n\tTue, 19 Jul 2022 09:58:32 +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 3889A6330E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 19 Jul 2022 09:58:30 +0200 (CEST)",
            "from perceval.ideasonboard.com (unknown\n\t[IPv6:2401:4900:1f3f:73ce:9a9d:bd79:3fd0:39f1])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 3249F6EE;\n\tTue, 19 Jul 2022 09:58:29 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658217512;\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=udZ8Yv+pQ2cUAEo2irXi9fNfGMZVEyHXrjc8e6Encv74kaqYsAB1nB8CZ4eNkGLDB\n\t4+CV0BCvtaxBPxpXpTFcpZt/OGzuAcV3IwuTXBnOzEEj8GCvm/L/O+H/ymDitfSmt/\n\tcCRuAD10QlkFXEjWwopfbOeAKOvVCo/316f75E9OcQCBQNj24+0NMpgDO93SQtbiT5\n\t0qNK1DgGHsIgIyVS5PKLl90wfAPdyNDhTrtanIJwCUxCDdnccQKFg50dx9Cfi4fYT8\n\tMnRoASZbKh7kXNnfWdCgk8EYTRKfSg6/iMIzOXJy9hMv5qj/Ol3fUks81bX40bJnik\n\tzD0kMt1nw+uwg==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1658217510;\n\tbh=ZhNavlpmdRSddSQo8QA2pmbNcVOml11Ur7hNgZEMLEM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=Cy5AMvPacqjB1xI8jFdaatu2Qh2tzldWHr51OysoeFT40p8KV30Luu6TXnVJyIgny\n\tjYG7ZCgGTKN6xZf8/w4/19AX4sCqg83lDbLR7zrkzNR3t+1d5iv7oCHvaHVTT1hM5S\n\tmXQ8PnO5/WG1PW93+PKGas6ajanlnVK1Us0ploek="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"Cy5AMvPa\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 19 Jul 2022 13:28:18 +0530",
        "Message-Id": "<20220719075818.895728-3-umang.jain@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20220719075818.895728-1-umang.jain@ideasonboard.com>",
        "References": "<20220719075818.895728-1-umang.jain@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v1 2/2] utils: ipu3: Helper to generate\n\tIMGU input 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",
        "v1",
        "2/2"
    ]
}