Show a patch.

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

{
    "id": 2442,
    "url": "https://patchwork.libcamera.org/api/patches/2442/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/2442/",
    "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": "<20191218145001.22283-8-jacopo@jmondi.org>",
    "date": "2019-12-18T14:50:01",
    "name": "[libcamera-devel,RFC,7/7] libcamera: sensor: ov5670: Add lens properties",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "4b6d9a58f8bff105e9cdd80bca61a4e8f4de7e72",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": {
        "id": 15,
        "url": "https://patchwork.libcamera.org/api/users/15/?format=api",
        "username": "jmondi",
        "first_name": "Jacopo",
        "last_name": "Mondi",
        "email": "jacopo@jmondi.org"
    },
    "mbox": "https://patchwork.libcamera.org/patch/2442/mbox/",
    "series": [
        {
            "id": 591,
            "url": "https://patchwork.libcamera.org/api/series/591/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=591",
            "date": "2019-12-18T14:49:54",
            "name": "Define and register 'sensor' and 'lens' properties",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/591/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/2442/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/2442/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net\n\t[217.70.183.195])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5EE82605DB\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 18 Dec 2019 15:47:56 +0100 (CET)",
            "from uno.lan (93-34-114-233.ip49.fastwebnet.it [93.34.114.233])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay3-d.mail.gandi.net (Postfix) with ESMTPSA id D79D960011;\n\tWed, 18 Dec 2019 14:47:55 +0000 (UTC)"
        ],
        "X-Originating-IP": "93.34.114.233",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 18 Dec 2019 15:50:01 +0100",
        "Message-Id": "<20191218145001.22283-8-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.24.0",
        "In-Reply-To": "<20191218145001.22283-1-jacopo@jmondi.org>",
        "References": "<20191218145001.22283-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [RFC 7/7] libcamera: sensor: ov5670: Add lens\n\tproperties",
        "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>",
        "X-List-Received-Date": "Wed, 18 Dec 2019 14:47:56 -0000"
    },
    "content": "Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/sensor/ov5670.cpp | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/src/libcamera/sensor/ov5670.cpp b/src/libcamera/sensor/ov5670.cpp\nindex c2d996785717..a25bfd246f8b 100644\n--- a/src/libcamera/sensor/ov5670.cpp\n+++ b/src/libcamera/sensor/ov5670.cpp\n@@ -30,6 +30,12 @@ int OV5670CameraSensor::initProperties(const ControlInfoMap &controlMap)\n \tproperties_.set(properties::BayerFilterArrangement, bayerFilter);\n \tproperties_.set(properties::ISOSensitivityRange, { 50, 800 });\n \n+\t/* Lens Properties. */\n+\tproperties_.set(properties::LensApertures, 0.0f);\n+\tproperties_.set(properties::LensFocalDistance, 3.69f);\n+\tproperties_.set(properties::LensHyperfocalDistance, 0.0f);\n+\tproperties_.set(properties::LensMinimumFocalDistance, 3.69f);\n+\n \treturn CameraSensor::initProperties(controlMap);\n }\n \n",
    "prefixes": [
        "libcamera-devel",
        "RFC",
        "7/7"
    ]
}