Show a patch.

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

{
    "id": 17917,
    "url": "https://patchwork.libcamera.org/api/patches/17917/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17917/",
    "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": "<20221129134534.2933-11-naush@raspberrypi.com>",
    "date": "2022-11-29T13:45:34",
    "name": "[libcamera-devel,v2,10/10] pipeline: raspberrypi: Add libcamera-apps and picamera2 config file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "a1975b7ce939f1309a759d4412c7692d5b570b76",
    "submitter": {
        "id": 34,
        "url": "https://patchwork.libcamera.org/api/people/34/?format=api",
        "name": "Naushir Patuck",
        "email": "naush@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/17917/mbox/",
    "series": [
        {
            "id": 3647,
            "url": "https://patchwork.libcamera.org/api/series/3647/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3647",
            "date": "2022-11-29T13:45:24",
            "name": "Raspberry Pi: Platform configuration and buffer allocation improvements",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/3647/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17917/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17917/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 94D68C3288\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 29 Nov 2022 13:45:52 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4542363349;\n\tTue, 29 Nov 2022 14:45:52 +0100 (CET)",
            "from mail-wm1-x332.google.com (mail-wm1-x332.google.com\n\t[IPv6:2a00:1450:4864:20::332])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 73F6363348\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 29 Nov 2022 14:45:45 +0100 (CET)",
            "by mail-wm1-x332.google.com with SMTP id\n\to7-20020a05600c510700b003cffc0b3374so10874057wms.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 29 Nov 2022 05:45:45 -0800 (PST)",
            "from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tn8-20020a05600c3b8800b003cfbbd54178sm3565636wms.2.2022.11.29.05.45.44\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 29 Nov 2022 05:45:44 -0800 (PST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1669729552;\n\tbh=JACO+VqVW5R1p34Q/L3lAMjy/FFZ5dEY4VZvDx+rD3o=;\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=KmFNAhxt39GYnciueVYK+9nNfGJS2ihO3vYr8/kyv9Fmvaq60HXD4MRKuOvTnRCRf\n\tsCAfyMrrVASja9voL3OIT+8ziiRLM45Zf4hw6OUeplb5AfB7Hs7PKCXR8GYrYSC4Yl\n\t9XI5zns7vTFZPq9ACpl0oqtBH+9VVeXy4Y1G/Vn4l/romwPJjq4NcgVlEBaI7tslSj\n\too0VfXsaClWtSeu/Th7MMrq+gmCahFhubTgh+sOnKmOqOxrINcr8oFDJcCYNO70Mdw\n\tqVi5aiOMypmELd5j+zGgSdBWOL3uWBwqeKYMerCMVcusd0TRbw7cC3gb2naTQFHpbr\n\thQUTeqX6hQnyQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\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=/HHy1+rB6cbeRgieQWT6F2/fu92XrxwPeIORdSkWXT4=;\n\tb=sVWx2OOJwtXWTcn/f7AOF80uelt1nvWJRDFStlUCiq0J0YqzdIKSBLdiZ/dT9zjJ4T\n\tI7SOQ55NpD1JhyHO0kEZ3khSOdAGUEkdF3yea6aH10Phga32gfje3Q9GJlxcYgICySNq\n\t44H9v3URutNIZzBwFdgJSTog47MoVmtomfhfXvpfPEEKMXdHnJlRQrxyR+kwLlFzHH67\n\tdPpyJuq29i3rwGlJE0mz9YTWgw9dS7GEzs7XvMi3M0Dq2v/ljKr9q9hvpXOWBrlzV7a8\n\t+NL1KWKpavj3MrgCxQfzC6+g82UJosAAVbPiPbrYdiLM/Qqi/0bNWktCmFvaHuEez++3\n\tbK4g=="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"sVWx2OOJ\"; dkim-atps=neutral",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\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=/HHy1+rB6cbeRgieQWT6F2/fu92XrxwPeIORdSkWXT4=;\n\tb=meUwpchpMpsP2eQHltx5GtkrPyLA7YNhue7IqXNxL3dogNT6FJjXoDp5EHjOJK1rwd\n\tNLsgYCTeOykKMwhJfSpwCfe15jKlfOb1AQj2bb1E0sIwYMt3uTRRNc0UVRLm3tSdwc+K\n\tJ+zwfg0a0jJwZa1KbTF7gWP/6ciIG5Wg/iTjmesURjoxfRGj92qrhQ66aTvRbF8t7fZ+\n\tcVEEZORVHFvWrEQzH5NR06WZ3OblysaWhwTWmBmepstZw3vgpnC+Tf+qbhPwTiFjLUf2\n\tWaszd9zilQjzDkaywsAKejYsygkRaU8722YDfzeKhkNQTWKm7dc0Zg01hZwRf3giX2Jk\n\tkFXw==",
        "X-Gm-Message-State": "ANoB5pkcKY6P5rnfyqf+LOGg19IxMGlyJf3RP68YCfBMHVB2lxg8gObP\n\tDD/rd1KKef9huZ66j9OxCK3nZDUu4okkmg==",
        "X-Google-Smtp-Source": "AA0mqf587ERPJny49ftglo3xnPnvYz4XbyjTPEQUNALDLKqKwdJ3LHiZgw5SpqjmppKdrYwMLZ2hOw==",
        "X-Received": "by 2002:a7b:c456:0:b0:3a5:f600:502e with SMTP id\n\tl22-20020a7bc456000000b003a5f600502emr32725081wmi.39.1669729544939; \n\tTue, 29 Nov 2022 05:45:44 -0800 (PST)",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 29 Nov 2022 13:45:34 +0000",
        "Message-Id": "<20221129134534.2933-11-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221129134534.2933-1-naush@raspberrypi.com>",
        "References": "<20221129134534.2933-1-naush@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 10/10] pipeline: raspberrypi: Add\n\tlibcamera-apps and picamera2 config 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": "Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Naushir Patuck <naush@raspberrypi.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add a platform configuration file optimised for use with the Raspberry Pi\nsuite of libcamera-apps and the picamera2 framework.\n\nThis configuration minimises the number of internal buffers allocated, with\nthe expectation that applications will always provide buffers in request for\nany configured stream.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\n---\n .../pipeline/raspberrypi/data/meson.build     |  1 +\n .../pipeline/raspberrypi/data/rpi_apps.json   | 28 +++++++++++++++++++\n 2 files changed, 29 insertions(+)\n create mode 100644 src/libcamera/pipeline/raspberrypi/data/rpi_apps.json",
    "diff": "diff --git a/src/libcamera/pipeline/raspberrypi/data/meson.build b/src/libcamera/pipeline/raspberrypi/data/meson.build\nindex 0592fc53877d..aabde57f25c6 100644\n--- a/src/libcamera/pipeline/raspberrypi/data/meson.build\n+++ b/src/libcamera/pipeline/raspberrypi/data/meson.build\n@@ -3,6 +3,7 @@\n conf_files = files([\n     'default.json',\n     'minimal_mem.json',\n+    'rpi_apps.json',\n ])\n \n install_data(conf_files,\ndiff --git a/src/libcamera/pipeline/raspberrypi/data/rpi_apps.json b/src/libcamera/pipeline/raspberrypi/data/rpi_apps.json\nnew file mode 100644\nindex 000000000000..e25301744499\n--- /dev/null\n+++ b/src/libcamera/pipeline/raspberrypi/data/rpi_apps.json\n@@ -0,0 +1,28 @@\n+{\n+        \"version\": 1.0,\n+        \"target\": \"bcm2835\",\n+\n+        \"pipeline_handler\":\n+        {\n+                # The minimum number of internal buffers to be allocated for Unicam.\n+                # This value must less than or equal to min_total_unicam_buffers.\n+                \"min_unicam_buffers\": 0,\n+\n+                # The minimum total (internal + external) buffer count used for Unicam.\n+                # The number of internal buffers allocated for Unicam is given by:\n+                # internal buffer count = max(min_unicam_buffers,\n+                #                             min_total_unicam_buffers - external buffer count)\n+                \"min_total_unicam_buffers\": 4,\n+\n+                # The number of internal buffers used for ISP Output0.\n+                \"num_output0_buffers\": 0,\n+\n+                # Override any request from the IPA to drop a number of startup frames.\n+                \"disable_startup_frame_drops\": false,\n+\n+                # Always process a pending request with the last captured sensor frame.\n+                # Note that this might lead to avoidable frame drops during periods\n+                # of transient heavy CPU loading.\n+                \"return_newest_frames\": false\n+        }\n+}\n\\ No newline at end of file\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "10/10"
    ]
}