Show a patch.

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

{
    "id": 9870,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/9870/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/9870/",
    "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": "<20200930073207.24035-1-email@uajain.com>",
    "date": "2020-09-30T07:32:07",
    "name": "[libcamera-devel] Documentation: guides: pipeline-handler: Update clamp() namespace",
    "commit_ref": "b83ee94fe21d09f444454cc82e5586e7b196cf05",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "ceffc5cc4fd28d5674a50af59ed50462c4a5a072",
    "submitter": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/people/1/?format=api",
        "name": "Umang Jain",
        "email": "email@uajain.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/9870/mbox/",
    "series": [
        {
            "id": 1338,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1338/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1338",
            "date": "2020-09-30T07:32:07",
            "name": "[libcamera-devel] Documentation: guides: pipeline-handler: Update clamp() namespace",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1338/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/9870/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/9870/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 1CDB4C3B5B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 30 Sep 2020 07:32:15 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id ADF3462209;\n\tWed, 30 Sep 2020 09:32:14 +0200 (CEST)",
            "from mail.uajain.com (static.126.159.217.95.clients.your-server.de\n\t[95.217.159.126])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EEC4860A0F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 30 Sep 2020 09:32:13 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=uajain.com header.i=@uajain.com\n\theader.b=\"lLarPE4g\"; dkim-atps=neutral",
        "From": "Umang Jain <email@uajain.com>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail;\n\tt=1601451133; bh=/dKqQK8tdyBG16HOEe/IP0872NTwjrrQEY6cDVMiVMg=;\n\th=From:To:Cc:Subject;\n\tb=lLarPE4gw0+SaT9KQZq2Am0wxLrgf7o4vFPNQnu6qg2HbNYW8Dzto68P4UnPDsKs/\n\tFidRVF2VoIJLrRGAR1ks9eK32OL1Bfmi9NliMCXkoqT/w2CexsieBeofYAgfxft4L9\n\tal0LXhijfodYMLsdRoLeg6+teriyOaD2j84VmT4t3AMiYRHv/f/T+ithvFFUz4foq5\n\tcgcr66CniXoAA1F+yjSnTlKBmGUz1sHmlkjJek+v4ESSRwNu9CqRE05GoRTiBf+uEn\n\tGFygTO7Or877A/OAcl7V0NltzPTpwYFNJTXGcqTcHBjoxnW+Z1HH97gffwF1gh/ipM\n\tuWa5slqIHhs/A==",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 30 Sep 2020 13:02:07 +0530",
        "Message-Id": "<20200930073207.24035-1-email@uajain.com>",
        "Mime-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH] Documentation: guides: pipeline-handler:\n\tUpdate clamp() namespace",
        "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>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Update the sample code using utils::clamp() to std::clamp().\n\nFixes: f2734ff3ab09 (\"libcamera: Replace utils::clamp() with std::clamp()\")\nSigned-off-by: Umang Jain <email@uajain.com>\n---\n Documentation/guides/pipeline-handler.rst | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/Documentation/guides/pipeline-handler.rst b/Documentation/guides/pipeline-handler.rst\nindex 746e206..71ef205 100644\n--- a/Documentation/guides/pipeline-handler.rst\n+++ b/Documentation/guides/pipeline-handler.rst\n@@ -1289,7 +1289,7 @@ range definitions and their corresponding values on the device before being set.\n                  }\n \n                  int32_t value = lroundf(it.second.get<float>() * 128 + offset);\n-                 controls.set(cid, utils::clamp(value, 0, 255));\n+                 controls.set(cid, std::clamp(value, 0, 255));\n           }\n \n           for (const auto &ctrl : controls)\n",
    "prefixes": [
        "libcamera-devel"
    ]
}