Show a patch.

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

{
    "id": 19090,
    "url": "https://patchwork.libcamera.org/api/patches/19090/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/19090/",
    "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": "<20230927163422.15924-1-david.plowman@raspberrypi.com>",
    "date": "2023-09-27T16:34:22",
    "name": "[libcamera-devel] py: Add constructor for SensorConfiguration",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "8b3edcb6cdf2ccc0d7c075c7a3024bdce7b4f986",
    "submitter": {
        "id": 42,
        "url": "https://patchwork.libcamera.org/api/people/42/?format=api",
        "name": "David Plowman",
        "email": "david.plowman@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/19090/mbox/",
    "series": [
        {
            "id": 4040,
            "url": "https://patchwork.libcamera.org/api/series/4040/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4040",
            "date": "2023-09-27T16:34:22",
            "name": "[libcamera-devel] py: Add constructor for SensorConfiguration",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4040/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/19090/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/19090/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 2B5C8C326B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 27 Sep 2023 16:34:35 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8A2DD6293F;\n\tWed, 27 Sep 2023 18:34:34 +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 720A661DE5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Sep 2023 18:34:33 +0200 (CEST)",
            "by mail-wm1-x32e.google.com with SMTP id\n\t5b1f17b1804b1-405621baba7so86725045e9.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Sep 2023 09:34:33 -0700 (PDT)",
            "from pi5-davidp.pitowers.org\n\t([2a00:1098:3142:14:183e:6cc8:a436:a27c])\n\tby smtp.gmail.com with ESMTPSA id\n\tp11-20020a05600c05cb00b003fc06169ab3sm15988106wmd.20.2023.09.27.09.34.28\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 27 Sep 2023 09:34:29 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1695832474;\n\tbh=3vOD9xkor/vWvwu5oeaUxeVhRbrtPsV0rGJDGZqGlW8=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=f9B4CnSIOtfK8H2Z4L0s4QrMot+XFEe5gXoqR7+otcagfRqr/jVTTKHx3HPmvLCsk\n\tR91IiXLTypNl7aIcAExEe6HJBC1eQ8aZSAz1LPOTordQ9zRCHu70Rpa9C+JbLdY2JB\n\ts5sPFO9x63MqnVl0CD6IGDtriEniRJE0+SjSHaNnR7nejT8hMFNuJfsXZ1/32xQJUh\n\tzu3TDNnDm7q+rrj1eRVxKbcCwzDtyTbiDusQkUlZPpJaJVeLJVzRoq6ccdaBiqp/1S\n\tfzouxIdZUaI0FqPRx39ubGHKrcBlzPQb3qrpYu3sErL9aSHz+kIG5bjbO1bbGebf6Q\n\t1FekCC9wA9bjg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1695832472; x=1696437272;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=e3GFgTgqrfaTjsDvjU0UcprtdFSCz4roBbh5HSq0WSg=;\n\tb=FhPDq60FJeLx/HbLohxxhhS3Zw+XpGWNTuvZMj+urYtVpw9MNCfB501bOV/8G3Pg6L\n\tynoEO8EWUIZxgeG0rf/0MtyYlk38hfwsSBVsWG15mkhDG8JkCTQcd0y3/MIR0w6Phcij\n\t6FTexZnUC1hgYjKtzu33qgBeXGePUCxXaAcP31Wro3qSeB6y5wABZdQf6n5CCJeUwb1W\n\tqbgyCauYJ5igWZ6O7GMGtUKPfLlkPp0eOvT81mBTl/p58/IBBdNnBqSUzvYfOp1mdw+T\n\tdLLpTOXfUwfRC4mh+yTLKErCjHuyz08JFYh+7owAH4wop0cF2NIKDkecFl2mJVdd736P\n\ttOrg=="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"FhPDq60F\"; dkim-atps=neutral",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1695832472; x=1696437272;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=e3GFgTgqrfaTjsDvjU0UcprtdFSCz4roBbh5HSq0WSg=;\n\tb=UcfzDRvXZy8NN/tbdhf4O9NIibNsCFgENY9Q7omwrsoGULswNSx9kfHQB+qAQ7KIsI\n\tLXGniGFPnNTo3KwWfbnkv28idtWzfRAUOPj4t6BBVpkgn6VbCHhfA5N0gjEGaXoMav/g\n\t3j1VvnCbDMSg0azjqRKItlmRsQep+UnljhBaD1VITQY20S4IyRqEsb+DUCH/0u2kvnuT\n\txO2+cxmqMB0Qjbqy8r1EqWue1Z7VhDNqFwcr3XltT1K3aj5zBur7+3hYsmszTDaoCuq8\n\tzq5Y+wi0CcIHCinjC5bWbvAzdwmc6dwutNfuxouzfN8gz58398h8jqLMZdHns1bL3U+b\n\tFUGw==",
        "X-Gm-Message-State": "AOJu0YwxtIkcwRmAtEQg5Vn3IEI21ogjL0lPf89WrSwfAQDSBZONw9/o\n\tagg9QHwWBjB0fIypLDkQS58Lu0swBSlk/qcDC/0=",
        "X-Google-Smtp-Source": "AGHT+IF5Oc6Mrb/bOo+qYEXqzvWCCzzwc1AtvtHaL2oronxzMBJK99nH72LEM3Cz7NSf8X6f842IDA==",
        "X-Received": "by 2002:a05:600c:141:b0:402:e68f:888c with SMTP id\n\tw1-20020a05600c014100b00402e68f888cmr2573695wmm.7.1695832472218; \n\tWed, 27 Sep 2023 09:34:32 -0700 (PDT)",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 27 Sep 2023 17:34:22 +0100",
        "Message-Id": "<20230927163422.15924-1-david.plowman@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.39.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH] py: Add constructor for\n\tSensorConfiguration",
        "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": "David Plowman via libcamera-devel <libcamera-devel@lists.libcamera.org>",
        "Reply-To": "David Plowman <david.plowman@raspberrypi.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "The SensorConfiguration is optional within the CameraConfiguration, so\nPython applications need a constructor to create a SensorConfiguration\nobject that can be put there.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/py/libcamera/py_main.cpp | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/src/py/libcamera/py_main.cpp b/src/py/libcamera/py_main.cpp\nindex c36e6e6c..8df04520 100644\n--- a/src/py/libcamera/py_main.cpp\n+++ b/src/py/libcamera/py_main.cpp\n@@ -283,6 +283,7 @@ PYBIND11_MODULE(_libcamera, m)\n \t\t});\n \n \tpySensorConfiguration\n+\t\t.def(py::init<>())\n \t\t.def_readwrite(\"bit_depth\", &SensorConfiguration::bitDepth)\n \t\t.def_readwrite(\"output_size\", &SensorConfiguration::outputSize);\n \n",
    "prefixes": [
        "libcamera-devel"
    ]
}