Show a patch.

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

{
    "id": 23512,
    "url": "https://patchwork.libcamera.org/api/patches/23512/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/23512/",
    "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": "<20250611013245.133785-7-bryan.odonoghue@linaro.org>",
    "date": "2025-06-11T01:32:16",
    "name": "[06/35] libcamera: MappedFrameBuffer: Latch a pointer to the framebuffer",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "9904ba827aec196d77b2f2cdf37db6fc176f9309",
    "submitter": {
        "id": 175,
        "url": "https://patchwork.libcamera.org/api/people/175/?format=api",
        "name": "Bryan O'Donoghue",
        "email": "bryan.odonoghue@linaro.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/23512/mbox/",
    "series": [
        {
            "id": 5212,
            "url": "https://patchwork.libcamera.org/api/series/5212/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5212",
            "date": "2025-06-11T01:32:10",
            "name": "Add GLES 2.0 GPUISP to libcamera",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5212/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/23512/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/23512/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 EB316C3325\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 11 Jun 2025 01:33:21 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5265668DC9;\n\tWed, 11 Jun 2025 03:33:21 +0200 (CEST)",
            "from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n\t[IPv6:2a00:1450:4864:20::32e])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CCFCA68DC7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Jun 2025 03:33:19 +0200 (CEST)",
            "by mail-wm1-x32e.google.com with SMTP id\n\t5b1f17b1804b1-450d668c2a1so2743055e9.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 10 Jun 2025 18:33:19 -0700 (PDT)",
            "from inspiron14p-linux.ht.home (188-141-3-146.dynamic.upc.ie.\n\t[188.141.3.146]) by smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-4532514138asm5680625e9.3.2025.06.10.18.33.16\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 10 Jun 2025 18:33:18 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"iyifTSOI\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1749605599; x=1750210399;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=W0pfBXv31rt/MAhEDKy2JxEhp6GyXlamvo6kDQ0eDWo=;\n\tb=iyifTSOIHSRCO3sXfQzzXLufoKJ7Sv2L3NE+h1K0WU7RsBiJ/xWvaEu9xL7rg8EZ+Z\n\tFy+w7hxnamjU6BGF9JT4Se8v0NV2hi+JuZC9YTaRAegL+TUZQDKFqFtYge5C/trYx7oV\n\t1lwttI1B9RC8Ve/jLBJqVitnNIF0VCR423CLDL5YoyIkvuJRPtTTLsZRuh8aEwR1Gz5c\n\tMD6DYyKlGaRcmFzalHj8A1nDB5jJYpIdHyurzBhYmjO40MbYjcac8Z+DyjFBtpodlo87\n\te0itbsLQHRE97yUfquq9Jed0nrX+hx3IzhKNL3iXtkmtEN6sJZkEWV5vA7MGAvLOfT4a\n\tR/GA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1749605599; x=1750210399;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=W0pfBXv31rt/MAhEDKy2JxEhp6GyXlamvo6kDQ0eDWo=;\n\tb=rPGjDe8f3lPQw+nQlLfevn7e+TgoygJFyoubUOkHZvD8kMW2B2VlqNUTcG1ud+BKug\n\tTnUZnnCe82Rbbw7QDRULybN3oR7uTa3LfGXW1tG99E0HCOVBueqMI+o8DfWfd/z28Y4u\n\t6ujRzsSBJ9YZ9YRNbMs/frS5OB23G+qdEC7K72rlTZnYNgoeE+QgC3VTfIe8jR7CNSGy\n\tkVA/kaxo5b2rVjkU8patgCslzAo1GPbGJqu8wLCDp9gcmwuHZQ/rlWdbG9VKXcSIsmAT\n\t3w2r8PXW7EffMAKBD2uSK79xS/RAX2Y7nix1F1WVq0HdrPIFCM8hUFDijK7MZ04u5mQh\n\t520A==",
        "X-Gm-Message-State": "AOJu0YxgweNgwmaEHUjAzQZ9lorUD08OnLsqA8QXHGlfA6S3IInMPOSX\n\t0unLaq0KmDFmvgD8yntNFZ2f6cbEUvhaIk8nbMVUAdpkA0ZwVnyuSsadkZKGTv1Z92mK+Ng+8xa\n\tgOtHHXJ0=",
        "X-Gm-Gg": "ASbGncvqfxhAXI8Ix6qcQ9tCuvURPaC1Ibib5bTRI0pZn1peTq9xSQtlhVwCB24eot6\n\tazn4RIG3jb7Xr5gvmXPKbP6TQhgZwXugsInOhgwHoFzLmGQoG+LwUnH2TSCfz7nqWA4HJSTRHEg\n\tcWQ5ZNJeFUuG9Wc2pbo/RUlRqZQ7VbhRElMjZ0OE1szidTGFhGnChVcofGZ4audT/rwPLgdQHK6\n\t79whfW5eN79kU8W92uKQDgFCk6CIU6+2g56PXzn06hVl7+nafpyVfF8aZPzzvJfjWnk9+VRVkPR\n\trsR8ZW9PO9tp+8vlmqZAZG6lRXotxpHcSucU9BGCkxORGOfw1tb2vyqWm6i+b8/wmClu19YlKHR\n\t8/sDEQSXMehhdcmp4eNVJvtwSKfM8zEaKVmF9cUKmdQ==",
        "X-Google-Smtp-Source": "AGHT+IEDqTkXfLg+rPexjiflqWfA8Y2jX9lsRejIopkA1TlHfjD0BjquWrXqazQktLCvdbSG+OJd9w==",
        "X-Received": "by 2002:a05:600c:c4a4:b0:442:f4a3:a2c0 with SMTP id\n\t5b1f17b1804b1-453241fb4camr14524605e9.13.1749605599203; \n\tTue, 10 Jun 2025 18:33:19 -0700 (PDT)",
        "From": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>",
        "Subject": "[PATCH 06/35] libcamera: MappedFrameBuffer: Latch a pointer to the\n\tframebuffer",
        "Date": "Wed, 11 Jun 2025 02:32:16 +0100",
        "Message-ID": "<20250611013245.133785-7-bryan.odonoghue@linaro.org>",
        "X-Mailer": "git-send-email 2.49.0",
        "In-Reply-To": "<20250611013245.133785-1-bryan.odonoghue@linaro.org>",
        "References": "<20250611013245.133785-1-bryan.odonoghue@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Take a pointer to the given framebuffer as a private member for further use\nin later patches.\n\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n include/libcamera/internal/mapped_framebuffer.h | 3 +++\n src/libcamera/mapped_framebuffer.cpp            | 2 ++\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/include/libcamera/internal/mapped_framebuffer.h b/include/libcamera/internal/mapped_framebuffer.h\nindex 6aaabf50..75ac2c8f 100644\n--- a/include/libcamera/internal/mapped_framebuffer.h\n+++ b/include/libcamera/internal/mapped_framebuffer.h\n@@ -55,6 +55,9 @@ public:\n \tusing MapFlags = Flags<MapFlag>;\n \n \tMappedFrameBuffer(const FrameBuffer *buffer, MapFlags flags);\n+\n+private:\n+\tconst FrameBuffer *buffer_;\n };\n \n LIBCAMERA_FLAGS_ENABLE_OPERATORS(MappedFrameBuffer::MapFlag)\ndiff --git a/src/libcamera/mapped_framebuffer.cpp b/src/libcamera/mapped_framebuffer.cpp\nindex f54bbf21..f5ee770c 100644\n--- a/src/libcamera/mapped_framebuffer.cpp\n+++ b/src/libcamera/mapped_framebuffer.cpp\n@@ -238,6 +238,8 @@ MappedFrameBuffer::MappedFrameBuffer(const FrameBuffer *buffer, MapFlags flags)\n \n \t\tplanes_.emplace_back(info.address + plane.offset, plane.length);\n \t}\n+\n+\tbuffer_ = buffer;\n }\n \n } /* namespace libcamera */\n",
    "prefixes": [
        "06/35"
    ]
}