Patch Detail
Show a patch.
GET /api/patches/16187/?format=api
{ "id": 16187, "url": "https://patchwork.libcamera.org/api/patches/16187/?format=api", "web_url": "https://patchwork.libcamera.org/patch/16187/", "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": "<20220609060306.57953-5-jeanmichel.hautbois@ideasonboard.com>", "date": "2022-06-09T06:03:06", "name": "[libcamera-devel,RFC,4/4] libcamera: lens: Add the hyperfocale property support", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b67e16faeacd2491b0d34d7a4764c746ebf5d077", "submitter": { "id": 75, "url": "https://patchwork.libcamera.org/api/people/75/?format=api", "name": "Jean-Michel Hautbois", "email": "jeanmichel.hautbois@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/16187/mbox/", "series": [ { "id": 3166, "url": "https://patchwork.libcamera.org/api/series/3166/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3166", "date": "2022-06-09T06:03:02", "name": "Introduce camera lens properties", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3166/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/16187/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/16187/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 4E291C3275\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 9 Jun 2022 06:03:22 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 888AC65642;\n\tThu, 9 Jun 2022 08:03:17 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C570D65636\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 9 Jun 2022 08:03:13 +0200 (CEST)", "from tatooine.ideasonboard.com (unknown\n\t[IPv6:2a01:e0a:169:7140:ae94:9dc3:50ea:aee6])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 859566CF;\n\tThu, 9 Jun 2022 08:03:13 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1654754597;\n\tbh=P/Bcl69wUsnsnNBY8yMyCSIbSTSZgX/mA31kq/ZiSGk=;\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=JfubH64gX4gFGnqFWbd5Rmp9zfWkwe+rfFKopBKTnbh5yDuYT3DapZeuA3ZYvhb14\n\tKcath3Pk4IXXf41UDvwXShcnAnpj/hVsMF7a/q5tvhw4HV48FylK+yee0TlK0F79vU\n\tiYj8r9t8vos5PZMYsY3uJK+hNLO+ZHeKonvQsl3Wh/E5pDYEkyfEJEVItijXjDW4Mc\n\t6/BcOgRNZFnnOh9GleXzqoG14yj7e7xKUApPwSN3I//JTFftWYW8NBC/d9z4s35Hs5\n\tk1M8HThh0T8fao9uDM/iraKxJK2HJ+MhRDc1/ZXIBu+OW5NIAxri6Y1CD5eoxboXqv\n\ta6uePfF6wcPUA==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1654754593;\n\tbh=P/Bcl69wUsnsnNBY8yMyCSIbSTSZgX/mA31kq/ZiSGk=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=etD7DTjDqNoMPIz2kMpTXbQpiw+0d1S9xwXavvaUMl5PWp6sYW1GzUCyKaUZvfou1\n\tfVFvP6bJf6qfhqkwlqOvPif2aygy8Ynb54ddSj7QQr5irEbzfMv6EFHhR30gBCxOhT\n\t1swepI/lPFtgS1aPiHmbyo0qXe3WJhhSUoe7KAG0=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"etD7DTjD\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 9 Jun 2022 08:03:06 +0200", "Message-Id": "<20220609060306.57953-5-jeanmichel.hautbois@ideasonboard.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220609060306.57953-1-jeanmichel.hautbois@ideasonboard.com>", "References": "<20220609060306.57953-1-jeanmichel.hautbois@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [RFC PATCH 4/4] libcamera: lens: Add the\n\thyperfocale property support", "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": "Jean-Michel Hautbois via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "A tuned lens may have measured its hyperfocale, which can then be used\nby the controls::LensPosition control. Add support for it in the camera\nlens properties database.\n\nSigned-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>\n---\n include/libcamera/internal/camera_lens_properties.h | 1 +\n src/libcamera/camera_lens_properties.cpp | 4 ++++\n 2 files changed, 5 insertions(+)", "diff": "diff --git a/include/libcamera/internal/camera_lens_properties.h b/include/libcamera/internal/camera_lens_properties.h\nindex 7424b375..13fa025c 100644\n--- a/include/libcamera/internal/camera_lens_properties.h\n+++ b/include/libcamera/internal/camera_lens_properties.h\n@@ -19,6 +19,7 @@ struct CameraLensProperties {\n \tstatic const CameraLensProperties *get(const std::string &lens);\n \n \tSize lensFocusRange;\n+\tfloat hyperfocal;\n };\n \n } /* namespace libcamera */\ndiff --git a/src/libcamera/camera_lens_properties.cpp b/src/libcamera/camera_lens_properties.cpp\nindex 225546ae..7cab2704 100644\n--- a/src/libcamera/camera_lens_properties.cpp\n+++ b/src/libcamera/camera_lens_properties.cpp\n@@ -35,6 +35,9 @@ LOG_DEFINE_CATEGORY(CameraLensProperties)\n *\n * \\var CameraLensProperties::lensFocusRange\n * \\brief The limits for the sensor position, stored as a min and a max.\n+ *\n+ * \\var CameraLensProperties::hyperfocal\n+ * \\brief The hyperfocal distance measured, expressed in millimeters\n */\n \n /**\n@@ -48,6 +51,7 @@ const CameraLensProperties *CameraLensProperties::get(const std::string &lens)\n \tstatic const std::map<std::string, const CameraLensProperties> lensProps = {\n \t\t{ \"dw9714\", {\n \t\t\t\t.lensFocusRange = { 150, 800 },\n+\t\t\t\t.hyperfocal = 500,\n \t\t} },\n \t};\n \n", "prefixes": [ "libcamera-devel", "RFC", "4/4" ] }