Show a patch.

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

{
    "id": 17976,
    "url": "https://patchwork.libcamera.org/api/patches/17976/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17976/",
    "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": "<20221209090050.19441-13-naush@raspberrypi.com>",
    "date": "2022-12-09T09:00:50",
    "name": "[libcamera-devel,v4,12/12] pipeline: raspberrypi: Add minimal memory usage config file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d5f82bf433b245270a163b5c125e7fbf133b61b6",
    "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/17976/mbox/",
    "series": [
        {
            "id": 3663,
            "url": "https://patchwork.libcamera.org/api/series/3663/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3663",
            "date": "2022-12-09T09:00:38",
            "name": "Raspberry Pi: Platform configuration and buffer allocation improvements",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/3663/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17976/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17976/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 E9775C3284\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  9 Dec 2022 09:01:43 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A33926336A;\n\tFri,  9 Dec 2022 10:01:43 +0100 (CET)",
            "from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n\t[IPv6:2a00:1450:4864:20::32f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7431E63366\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  9 Dec 2022 10:01:38 +0100 (CET)",
            "by mail-wm1-x32f.google.com with SMTP id\n\tk22-20020a05600c1c9600b003d1ee3a6289so2917187wms.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 09 Dec 2022 01:01:38 -0800 (PST)",
            "from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tbd10-20020a05600c1f0a00b003cf774c31a0sm7773674wmb.16.2022.12.09.01.01.36\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 09 Dec 2022 01:01:37 -0800 (PST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1670576503;\n\tbh=a3YaJE7CSXCIWHjsIpjMGKKlrxVHNtGXnCOROHKsYI0=;\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=FshxAEFQFGgdp70fSI6nOzWLPM3isX1i2yr7Soet7uSVGmO8TIxbAzqMhmKEtsaxH\n\tXbSF4bxISqB8O0bYoJLjJMqofEPJangJReTKFFh6CZiEI1St14Ob9fmEZuuPyUj0J2\n\thISJGzZPCwMN3j70CTLToOHw/8+vcu7HsVJKQQDqf9z8QV5gnRr/zu3oh5+Dg9UTRk\n\tKWQSpp9cnD7YELiNudaSx0A57B7FSsoXTIcIH3KLo5pdHqdlRNaqKd1hHgos9UNDGz\n\t+O3T7PnTooNBH+j4ptGLNZc7LFCVWDoj7+CxGN8ht5cegkcT3aa/mqAMds6ni28BDY\n\tw3CWS4jd7KZ2A==",
            "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=sWILBBIXlzAhPGU6fvcIkhjxcYBCw5crq4jorvb3iUU=;\n\tb=qAQDogJAAhl3vIw4e37ZJkqAggB3BAejH8nSHA1LUjnuGafKFQRHkoRkvagO515tpE\n\tcV1wovRKE3IEtwKj6sqbtqhQhhbKJUGh1mjtEMShcHZorgim69Iehiw14LLVmcnefSVW\n\tAqAV0p/ReahVASk1QjvRxQe/QMLZ2v9Hl9HtOfXiQ/DM7sQwYFOOT5VbrUJxDK259sgl\n\tqdsxU37M0MhIkwxFtS5rBdKcUzpsEO+fNyTLzpRVGfZMu7ywJtk4NyGDIGHwLxudVzds\n\twegQccLt42RCiu3Jx6mA+E95SbLfIfCh/gPjje6mMNCcCp7xwKHqYh9TdCIbbtq9J2um\n\t5rxQ=="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"qAQDogJA\"; 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=sWILBBIXlzAhPGU6fvcIkhjxcYBCw5crq4jorvb3iUU=;\n\tb=CgNAtCa+/MWoq3/OTkBBEaoJfgEpX4eawcv7Ozol4U5PNlmh5n6Qr5vKtKycf3KJJ5\n\txdO7dfwmElSFG20oA4/Y9lsoxPERqP+TS0NQF8BjNEEX+FO8Ae+rPcNbDvVps8JAlYqJ\n\txNR1iMiv9EUvK39/03m4zLIN3i74jmEr77aFu4i0Yx3mn85o+J4pI3FoL9s7fwyOlUjU\n\t6kGQHVKgnfHbHJbIBqbH2KOKe/YNEpvfoHJu8f3LFJK4RK17SVtt6LCsPH9Tr80FMfEh\n\toejRMtdceYQW0hYNpdfmBje75DcOKZWHlhGOsmdAU+ZlJ4f7i9ZVffcZAz8wLx2fAJ1H\n\tqhRQ==",
        "X-Gm-Message-State": "ANoB5pmpS1nOQbHerHJFn+UvKa0WS6qx7rle2VgcF3Riwo+2mBVP2IZy\n\to1odbqtEfgQHwHq1nXhmwAHoFF81MiNuLOV1",
        "X-Google-Smtp-Source": "AA0mqf6AbaC6Z7lazVj2UL61RonDO31PFFR6bm/Dzuzg71gw2/00K9dgm2i+W5k1opaDFzEluUOvDw==",
        "X-Received": "by 2002:a05:600c:1685:b0:3d1:f687:1fd0 with SMTP id\n\tk5-20020a05600c168500b003d1f6871fd0mr3788132wmn.12.1670576497697; \n\tFri, 09 Dec 2022 01:01:37 -0800 (PST)",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri,  9 Dec 2022 09:00:50 +0000",
        "Message-Id": "<20221209090050.19441-13-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221209090050.19441-1-naush@raspberrypi.com>",
        "References": "<20221209090050.19441-1-naush@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v4 12/12] pipeline: raspberrypi: Add\n\tminimal memory usage 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 that allocates the least amount of frame\nbuffer memory possible. This configuration does come with the following\ncompromises:\n\n- Startup frame drops are disabled, so the first few frames will not have\nfully converged AE/AWB/ALSC applied.\n\n- Applications must provide ISP Output0 and Unicam Image (if a RAW stream is\nconfigured) buffers in requests.\n\n- Only 1 Unicam Image buffer will be allocated if a RAW stream is not\nconfigured, causing the framerate to be effectively halved.\n\nTo use the configuration on the Raspberry Pi platform, invoke the application\nwith the following prepended to the command line:\n\nLIBCAMERA_RPI_CONFIG_FILE=/usr/local/share/libcamera/pipeline/raspberrypi/minimal_mem.yaml\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 .../raspberrypi/data/minimal_mem.yaml         | 29 +++++++++++++++++++\n 2 files changed, 30 insertions(+)\n create mode 100644 src/libcamera/pipeline/raspberrypi/data/minimal_mem.yaml",
    "diff": "diff --git a/src/libcamera/pipeline/raspberrypi/data/meson.build b/src/libcamera/pipeline/raspberrypi/data/meson.build\nindex 1c70433bbcbc..6aecd8ae68c8 100644\n--- a/src/libcamera/pipeline/raspberrypi/data/meson.build\n+++ b/src/libcamera/pipeline/raspberrypi/data/meson.build\n@@ -2,6 +2,7 @@\n \n conf_files = files([\n     'example.yaml',\n+    'minimal_mem.yaml',\n ])\n \n install_data(conf_files,\ndiff --git a/src/libcamera/pipeline/raspberrypi/data/minimal_mem.yaml b/src/libcamera/pipeline/raspberrypi/data/minimal_mem.yaml\nnew file mode 100644\nindex 000000000000..5cd593025140\n--- /dev/null\n+++ b/src/libcamera/pipeline/raspberrypi/data/minimal_mem.yaml\n@@ -0,0 +1,29 @@\n+{\n+        \"version\": 1.0,\n+        \"target\": \"bcm2835\",\n+\n+        \"pipeline_handler\":\n+        {\n+                # The minimum number of internal buffers to be allocated for\n+                # Unicam. This value must be greater than 0, but less than or\n+                # equal to min_total_unicam_buffers.\n+                \"min_unicam_buffers\": 0,\n+\n+                # The minimum total (internal + external) buffer count used for\n+                # Unicam. The number of internal buffers allocated for Unicam is\n+                # given by:\n+                #\n+                # internal buffer count = max(min_unicam_buffers,\n+                #         min_total_unicam_buffers - external buffer count)\n+                \"min_total_unicam_buffers\": 1,\n+\n+                # Override any request from the IPA to drop a number of startup\n+                # frames.\n+                \"disable_startup_frame_drops\": true,\n+\n+                # Always process a pending request with the last captured sensor\n+                # frame.  Note that this might lead to avoidable frame drops\n+                # during periods of transient heavy CPU loading.\n+                \"return_newest_frames\": false\n+        }\n+}\n",
    "prefixes": [
        "libcamera-devel",
        "v4",
        "12/12"
    ]
}