Patch Detail
Show a patch.
GET /api/1.1/patches/18393/?format=api
{ "id": 18393, "url": "https://patchwork.libcamera.org/api/1.1/patches/18393/?format=api", "web_url": "https://patchwork.libcamera.org/patch/18393/", "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": "<20230314144834.85193-3-dse@thaumatec.com>", "date": "2023-03-14T14:48:26", "name": "[libcamera-devel,v4,02/10] ipa: rkisp1: Add lens limits to the session config", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "095174af2a42430b1050d0bce07dcde7f4bd6b54", "submitter": { "id": 126, "url": "https://patchwork.libcamera.org/api/1.1/people/126/?format=api", "name": "Daniel Semkowicz", "email": "dse@thaumatec.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/18393/mbox/", "series": [ { "id": 3805, "url": "https://patchwork.libcamera.org/api/1.1/series/3805/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3805", "date": "2023-03-14T14:48:24", "name": "ipa: rkisp1: Add autofocus algorithm", "version": 4, "mbox": "https://patchwork.libcamera.org/series/3805/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/18393/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/18393/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 42393C3263\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 14 Mar 2023 14:49:56 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7821462713;\n\tTue, 14 Mar 2023 15:49:55 +0100 (CET)", "from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com\n\t[IPv6:2a00:1450:4864:20::22c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 94F29626D6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Mar 2023 15:49:52 +0100 (CET)", "by mail-lj1-x22c.google.com with SMTP id h3so16271103lja.12\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Mar 2023 07:49:52 -0700 (PDT)", "from localhost.localdomain ([91.90.166.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tq25-20020a2eb4b9000000b00295a35f30e1sm470961ljm.115.2023.03.14.07.49.51\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 14 Mar 2023 07:49:51 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1678805395;\n\tbh=ejOENZ/e1++33Ovtlo6eNchLLyXr5wDvErTCzcVI18U=;\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:Cc:\n\tFrom;\n\tb=MVUlLFcqxuNI9uSjkLGHoewrQ+i3ZFdIdqtMqreJaiKZf8D+d3DKJIr06EKG3R78+\n\tA0R6H9us9/Rws0XdlXOBd5JbZMipPYwwPh3DD/q+IYihMJsriI41kOSwx0sjpbB5JG\n\tEId7z1zijj/yTLSEASoejIms4miUiB1xARSp7rA7310IafGToKZ4JXzFnNix0/JMC1\n\t2kKJlus506d0jBud6rDmE/879SzoRgBC8N0kEEk2+zppEKrXw9HjwrTBr/FDXsD3h9\n\toZK9Fa6IdsciFD6R4QKGmJ9IB/rUB3XC6k+7P72SgJRdyVKEGTaP5pXQ11f3kKBZdh\n\tg/3MFcsLBM0fA==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=thaumatec-com.20210112.gappssmtp.com; s=20210112; t=1678805392;\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=8l6sE+OVX2uuIoyLjXNkPNCNwAZLjqHWm3i7Yg1Y6Qs=;\n\tb=GklvlonFTgBAQHZYv6XciJ2G9M/mbIedUWdDbPS/Jf8PIl2v3WRViNemKbcV5WNAIR\n\tc5LZCdjUi3L9g85OQLv7Y13WSnX6mm4T3ajeD8Y/zqeyobGS+24qsNTdykk4kyVohQKf\n\tqAwXeOAjfp4HHNt4eQRizu2knSU1EiR7yK4SZFefyLXV0grqZQRKFAT7wLa/yHHtSXK4\n\tmUZTYHF7ey+xWcpAKIDduWX5autyFUH27XiAsGstxOuOrAcrRrI02HMBsHbDy2wI+C4U\n\tNXLkquIokC1U5xmDAq6/COHIf0xtfB3RNCurLchjVlItpo7+58JvMQ2+BmIL4rBB9Utg\n\trDLA==" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected)\n\theader.d=thaumatec-com.20210112.gappssmtp.com\n\theader.i=@thaumatec-com.20210112.gappssmtp.com header.b=\"GklvlonF\"; \n\tdkim-atps=neutral", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112; t=1678805392;\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=8l6sE+OVX2uuIoyLjXNkPNCNwAZLjqHWm3i7Yg1Y6Qs=;\n\tb=QLXdQvl6a3lncfEb7oA2z9BapOSBHlkRw4TlNXGM1hsBxsyBHT1HjUK+GBe0Qrmsxg\n\tdJRg3ntCojY9bu7iI76C+zowFNtLnj0znQejHl9V+eC8ynvaZZTJO+GfDhOfOyWlLNpG\n\tm86nLRdurVlD5cYuNHn27MPPGJpvP4hIYmJU8UbKvme03y+7mXh3RvRdE7z2Ny8cd/yJ\n\t9B67E/ktKDVIi3RTppbs+GJI6PPYa/s2udl+I6BgRCKdE05VHxxOTGCFp3a2KSlXE0bk\n\tsbcBGDRhiw8XGtcKrxOIyiyzGn5JLmWWO92ICkVCGVPkJGlULiljrCvJrNuxUyZFWj+i\n\tukOw==", "X-Gm-Message-State": "AO0yUKVaTnSxAX+G/L+p9rSi9n5k+uZiXCPaNYYqpJwubZt0GMvnm3gl\n\t64nh6K5psmrtyHBsMRkVBkHzJiVYVF9X1vj5hkc=", "X-Google-Smtp-Source": "AK7set9GC8gZa4SSPe0PHbasVEPn1lA6MJuPD/+RATnROMXOfpUq14u+XGsYuwE7Vjnkk3/vWt0Hgg==", "X-Received": "by 2002:a05:651c:2cb:b0:293:5f35:d68f with SMTP id\n\tf11-20020a05651c02cb00b002935f35d68fmr13021841ljo.31.1678805391844; \n\tTue, 14 Mar 2023 07:49:51 -0700 (PDT)", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 14 Mar 2023 15:48:26 +0100", "Message-Id": "<20230314144834.85193-3-dse@thaumatec.com>", "X-Mailer": "git-send-email 2.39.2", "In-Reply-To": "<20230314144834.85193-1-dse@thaumatec.com>", "References": "<20230314144834.85193-1-dse@thaumatec.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v4 02/10] ipa: rkisp1: Add lens limits to\n\tthe session config", "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": "Daniel Semkowicz via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Daniel Semkowicz <dse@thaumatec.com>", "Cc": "jacopo.mondi@ideasonboard.com", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add information about focus lens position limits to the IPA session\nconfiguration. These information can then be used by IPA algorithms\nto know which focus positions are valid.\n\nSigned-off-by: Daniel Semkowicz <dse@thaumatec.com>\n---\n src/ipa/rkisp1/ipa_context.cpp | 12 ++++++++++++\n src/ipa/rkisp1/ipa_context.h | 5 +++++\n src/ipa/rkisp1/rkisp1.cpp | 13 ++++++++++++-\n 3 files changed, 29 insertions(+), 1 deletion(-)", "diff": "diff --git a/src/ipa/rkisp1/ipa_context.cpp b/src/ipa/rkisp1/ipa_context.cpp\nindex 9bbf3684..401c098f 100644\n--- a/src/ipa/rkisp1/ipa_context.cpp\n+++ b/src/ipa/rkisp1/ipa_context.cpp\n@@ -89,6 +89,18 @@ namespace libcamera::ipa::rkisp1 {\n * \\brief Sensor output resolution\n */\n \n+/**\n+ * \\var IPASessionConfiguration::lens\n+ * \\brief Lens-specific information\n+ *\n+ * \\var IPASessionConfiguration::lens.minFocusPosition\n+ * \\brief Minimum position supported by the camera focus lens\n+ *\n+ * \\var IPASessionConfiguration::lens.maxFocusPosition\n+ * \\brief Maximum position supported by the camera focus lens\n+ *\n+ */\n+\n /**\n * \\var IPASessionConfiguration::raw\n * \\brief Indicates if the camera is configured to capture raw frames\ndiff --git a/src/ipa/rkisp1/ipa_context.h b/src/ipa/rkisp1/ipa_context.h\nindex b9b20653..bfb6e1b7 100644\n--- a/src/ipa/rkisp1/ipa_context.h\n+++ b/src/ipa/rkisp1/ipa_context.h\n@@ -45,6 +45,11 @@ struct IPASessionConfiguration {\n \t\tSize size;\n \t} sensor;\n \n+\tstruct {\n+\t\tint32_t minFocusPosition;\n+\t\tint32_t maxFocusPosition;\n+\t} lens;\n+\n \tstruct {\n \t\trkisp1_cif_isp_version revision;\n \t} hw;\ndiff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp\nindex 248cf5e0..cd1fbae3 100644\n--- a/src/ipa/rkisp1/rkisp1.cpp\n+++ b/src/ipa/rkisp1/rkisp1.cpp\n@@ -267,9 +267,20 @@ int IPARkISP1::configure(const IPAConfigInfo &ipaConfig,\n \t\t\treturn format.colourEncoding == PixelFormatInfo::ColourEncodingRAW;\n \t\t});\n \n-\tif (!ipaConfig.lensControls.empty())\n+\tif (!ipaConfig.lensControls.empty()) {\n \t\tlensControls_ = ipaConfig.lensControls;\n \n+\t\tconst ControlInfo focusAbsolute =\n+\t\t\tlensControls_->find(V4L2_CID_FOCUS_ABSOLUTE)->second;\n+\n+\t\tLOG(IPARkISP1, Debug)\n+\t\t\t<< \"Focus lens: \" << focusAbsolute.toString();\n+\n+\t\tauto &lensConfig = context_.configuration.lens;\n+\t\tlensConfig.minFocusPosition = focusAbsolute.min().get<int32_t>();\n+\t\tlensConfig.maxFocusPosition = focusAbsolute.max().get<int32_t>();\n+\t}\n+\n \tfor (auto const &a : algorithms()) {\n \t\tAlgorithm *algo = static_cast<Algorithm *>(a.get());\n \n", "prefixes": [ "libcamera-devel", "v4", "02/10" ] }