Show a patch.

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

{
    "id": 16050,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/16050/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16050/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20220526082737.1081262-2-chenghaoyang@google.com>",
    "date": "2022-05-26T08:27:29",
    "name": "[libcamera-devel,v2,1/9] Add StreamRole in StreamConfiguration",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "77274a45be57fe9a38fa6f5d91bf767c83814527",
    "submitter": {
        "id": 117,
        "url": "https://patchwork.libcamera.org/api/1.1/people/117/?format=api",
        "name": "Cheng-Hao Yang",
        "email": "chenghaoyang@chromium.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16050/mbox/",
    "series": [
        {
            "id": 3141,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3141/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3141",
            "date": "2022-05-26T08:27:28",
            "name": "Use two imgus in ipu3 pipeline handler",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/3141/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16050/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16050/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 3837ABD161\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 26 May 2022 08:27:52 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C76696566B;\n\tThu, 26 May 2022 10:27:51 +0200 (CEST)",
            "from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com\n\t[IPv6:2607:f8b0:4864:20::102a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5963B65661\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 May 2022 10:27:48 +0200 (CEST)",
            "by mail-pj1-x102a.google.com with SMTP id\n\to10-20020a17090a4e8a00b001df2fcdc165so3829890pjh.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 May 2022 01:27:48 -0700 (PDT)",
            "from chenghaoyang-low.c.googlers.com.com\n\t(21.160.199.104.bc.googleusercontent.com. [104.199.160.21])\n\tby smtp.gmail.com with ESMTPSA id\n\tm2-20020a170902bb8200b0016191b843e2sm834429pls.235.2022.05.26.01.27.44\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 26 May 2022 01:27:45 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1653553671;\n\tbh=1K4XxfbF/A4NXjuuloZdN9XN+KSBjmVfu7DKtWqF/G0=;\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:Cc:\n\tFrom;\n\tb=bG1f9t3/Qbkr7MahYuiZn4zALPOZnkcD/VPhFKeU3Dt4YoaYDmN7Ryj95gCXMdw0r\n\ta49axmKl7ICvHIg/QfuGPm3yIeiJ8fmNkZ0IoNRmBwODA4VvQD9hA99EQKWcx3WJps\n\t7xovV8r+kYRSkaLH89pX8itPBpvaFMfixhzW5wm0t1Vs2STwIQML9drU5mPLdE64kj\n\tieYTVDO2EhisYJ+3wHNykRT21UnGSHlvsVwd3GyumLgRswsbf4lh2Ec7lfGIUgNqa7\n\tnmamRQomszP6XStP7cmto/puGCL+jDKvQotkdo3Rbz610jyK1Ce+cB5sVJmGC1fDiD\n\tuekALcIitxzjA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=M+Ps0wwMRSHDTK6TtrIDjEssnLfjyE4zU0Op6qAgYBo=;\n\tb=Y6B435tFN9OVyZAKyLA9ro4z6wbgVfv7UfP/z9tC5OLT5ybtJ03nx1Zt8YPizORd/9\n\t9HduTWD6my/rTJL6kkdLnYVv4uEmSuwPpMoBqGDOLTMO8CrHCg8ypoTmkmRd/wtnH+8I\n\tj2vETHXTRpiwsjGMLiapyulJIpqmsvENR7QmE="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=chromium.org\n\theader.i=@chromium.org header.b=\"Y6B435tF\"; \n\tdkim-atps=neutral",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=M+Ps0wwMRSHDTK6TtrIDjEssnLfjyE4zU0Op6qAgYBo=;\n\tb=4zw5o12R/Yrb3AchXycXsQxeeKrgKTB0kQAmrGwbsWPdJMEttoOgB03shAImC5Lyc4\n\tpikBCfvKIZFjLMe1P52q5gXAQsVUGpzvJ+xHhmCK+ogN80auU3/NDLFk7AJ7kQwD5Dlp\n\tfdeu531nVUCwbm703XzS18cYTOfLicS5pHaSFE59m2MOnuz5MCAb/faN/vHcr0sFdEAm\n\tMk/J3DdB4K2y88a5ssUX7lRZZgH7j6OY2yJlov2gre1jFBfVzXFCOdjl9/X0PT1z3ClU\n\tFf63r9pii6tsNqSn/AMAG9G1alGK2+VtiAqr4xErHwAUhzq0im+wf9IDUHIm+qe7xzyb\n\tPURg==",
        "X-Gm-Message-State": "AOAM5331Ybv50Q7GUNcYL9E2m67mmk6xMAO7fFAT4AG/k51dFSjg02hl\n\tRbIiEEO/2ILGXYwcMsXAPgpiE5J3eD9ui8cf",
        "X-Google-Smtp-Source": "ABdhPJxoTv9g57ECCBk8LzfOXYHIdfK1ppu6fyKzhWcLzofACNujzJrgukSHwBU8prptcMk9HVcQrg==",
        "X-Received": "by 2002:a17:903:22d1:b0:162:166:6a96 with SMTP id\n\ty17-20020a17090322d100b0016201666a96mr27330203plg.127.1653553666329; \n\tThu, 26 May 2022 01:27:46 -0700 (PDT)",
        "X-Google-Original-From": "Harvey Yang <chenghaoyang@google.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 26 May 2022 08:27:29 +0000",
        "Message-Id": "<20220526082737.1081262-2-chenghaoyang@google.com>",
        "X-Mailer": "git-send-email 2.36.1.124.g0e6072fb45-goog",
        "In-Reply-To": "<20220526082737.1081262-1-chenghaoyang@google.com>",
        "References": "<20220526082737.1081262-1-chenghaoyang@google.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 1/9] Add StreamRole in\n\tStreamConfiguration",
        "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": "Harvey Yang via libcamera-devel <libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Harvey Yang <chenghaoyang@chromium.org>",
        "Cc": "Harvey Yang <chenghaoyang@chromium.org>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "From: Harvey Yang <chenghaoyang@chromium.org>\n\nTo let ipu3 pipeline handler understand the usage of streams, this patch\nadds StreamRole member variable in StreamConfiguration, which should be\nset by the (Android) adapter.\n\nSigned-off-by: Harvey Yang <chenghaoyang@chromium.org>\n---\n include/libcamera/stream.h | 20 +++++++++++---------\n 1 file changed, 11 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\nindex f0ae7e62..c9e79226 100644\n--- a/include/libcamera/stream.h\n+++ b/include/libcamera/stream.h\n@@ -22,6 +22,15 @@ namespace libcamera {\n class Camera;\n class Stream;\n \n+enum StreamRole {\n+\tRaw,\n+\tStillCapture,\n+\tVideoRecording,\n+\tViewfinder,\n+};\n+\n+using StreamRoles = std::vector<StreamRole>;\n+\n class StreamFormats\n {\n public:\n@@ -50,6 +59,8 @@ struct StreamConfiguration {\n \n \tstd::optional<ColorSpace> colorSpace;\n \n+\tStreamRole streamRole;\n+\n \tStream *stream() const { return stream_; }\n \tvoid setStream(Stream *stream) { stream_ = stream; }\n \tconst StreamFormats &formats() const { return formats_; }\n@@ -61,15 +72,6 @@ private:\n \tStreamFormats formats_;\n };\n \n-enum StreamRole {\n-\tRaw,\n-\tStillCapture,\n-\tVideoRecording,\n-\tViewfinder,\n-};\n-\n-using StreamRoles = std::vector<StreamRole>;\n-\n class Stream\n {\n public:\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "1/9"
    ]
}