Patch Detail
Show a patch.
GET /api/patches/11604/?format=api
{ "id": 11604, "url": "https://patchwork.libcamera.org/api/patches/11604/?format=api", "web_url": "https://patchwork.libcamera.org/patch/11604/", "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": "<20210317100211.1067585-2-naush@raspberrypi.com>", "date": "2021-03-17T10:02:05", "name": "[libcamera-devel,1/7] ipa: Add sensor model string to IPASettings", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "c3f54bfcc71bf61e17cb481dda276433e6388b99", "submitter": { "id": 34, "url": "https://patchwork.libcamera.org/api/people/34/?format=api", "name": "Naushir Patuck", "email": "naush@raspberrypi.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/11604/mbox/", "series": [ { "id": 1799, "url": "https://patchwork.libcamera.org/api/series/1799/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1799", "date": "2021-03-17T10:02:06", "name": "Raspberry Pi: ipa::init() restructuring", "version": 1, "mbox": "https://patchwork.libcamera.org/series/1799/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/11604/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/11604/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 6CFA7BD80C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 17 Mar 2021 10:02:28 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0DAD468D6F;\n\tWed, 17 Mar 2021 11:02:28 +0100 (CET)", "from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com\n\t[IPv6:2a00:1450:4864:20::52d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 198CF68D6F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 17 Mar 2021 11:02:23 +0100 (CET)", "by mail-ed1-x52d.google.com with SMTP id e7so1460832edu.10\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 17 Mar 2021 03:02:23 -0700 (PDT)", "from naush-laptop.patuck.local ([88.97.76.4])\n\tby smtp.gmail.com with ESMTPSA id\n\tp24sm12061179edt.5.2021.03.17.03.02.17\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 17 Mar 2021 03:02:17 -0700 (PDT)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"k30veogi\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=FiNZ1SciFIOdshBjGE/x40KQu+usIIXzXc0GHR1wiiE=;\n\tb=k30veogiGCVBG5vA/r18W6lD+HLr9XHXiRInKhlmgz6kv5lRyQJk7N4L/R8Jy0xPvU\n\tApZt+2tqYSEmxLH13iYYvmajtfQpD1WQsDZsYxbDFjmiO/E6W53B9dRNupKKBa47b2xW\n\tvrN4Sy8pVsZAzsbGHtSC/MLfqMQhXj8csyUk1LUwqzK7HAF4SN476I8dO6GpviV15b2C\n\t1SpQzx5kksRN1d8FCLn7WeiIWXb64uCDyr93QkDhT+s0iwGiQVujkv4fZUrBZBlwE0Qq\n\tMJ9skP/sMZBPQG//hsuJbXO3GIatI6CSwMGiJAS5gkTNRNCnEcFjsn1DGIALWn67uUgy\n\tSWQg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=FiNZ1SciFIOdshBjGE/x40KQu+usIIXzXc0GHR1wiiE=;\n\tb=l9DdlG0ClzZkoXSdVcemwMmmWN72TOzx8QZdf8V5IE3aCqEnBVhQq3xpWz+dpP58Er\n\tJN8b5/ybDR7ku25gEIgZaCUwWbkcG9LnHPN8nUcQvkbIrzSMvbAVX/9A6mEJVqwYnXhj\n\tCYfBDi4hQrXFwms4eMIAaS0HPUGJ6BWtjEsr61Ax7Pp+wRqyeJTegzssNQYWmnGze9SF\n\tgbp/BP0ohGKaCjyWCIoPMS9xvTX8f5B9d1pOR0bs8DBEhy4hNz3GL2pSvfXUSqKCkEbL\n\tsKC/P656tt5ir0YaFqUEZH/rh12FE+cGpPm/jiYunvGretUoLNTKM+sRk+Iiga+n4xYT\n\tEhkg==", "X-Gm-Message-State": "AOAM532fwpIH24CbodRq6dzMH24H69FKgwjFxtoftce/tYASsZhcPMz8\n\tuqpRhMSAyfLhhc8pK9tWtbu/fqu5crlpHQ==", "X-Google-Smtp-Source": "ABdhPJyNrQ/VwhH+yPcuvU7gKJFh8CUZpg3BPs967QVYsaYHoeOcG3kBzUFV10wWt3OWNHUR6o8Yrg==", "X-Received": "by 2002:aa7:c74a:: with SMTP id\n\tc10mr40481270eds.332.1615975338033; \n\tWed, 17 Mar 2021 03:02:18 -0700 (PDT)", "From": "Naushir Patuck <naush@raspberrypi.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Wed, 17 Mar 2021 10:02:05 +0000", "Message-Id": "<20210317100211.1067585-2-naush@raspberrypi.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210317100211.1067585-1-naush@raspberrypi.com>", "References": "<20210317100211.1067585-1-naush@raspberrypi.com>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH 1/7] ipa: Add sensor model string to\n\tIPASettings", "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": "Pass the sensor model string to the IPA init() method through the\nIPASettings structure.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n include/libcamera/ipa/core.mojom | 8 ++++++++\n src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 3 ++-\n src/libcamera/pipeline/vimc/vimc.cpp | 2 +-\n test/ipa/ipa_interface_test.cpp | 2 +-\n 4 files changed, 12 insertions(+), 3 deletions(-)", "diff": "diff --git a/include/libcamera/ipa/core.mojom b/include/libcamera/ipa/core.mojom\nindex 5236a672461c..5363f1c5b48b 100644\n--- a/include/libcamera/ipa/core.mojom\n+++ b/include/libcamera/ipa/core.mojom\n@@ -145,8 +145,16 @@ struct IPABuffer {\n * This field may be an empty string if the IPA doesn't require a configuration\n * file.\n */\n+\n+ /**\n+ * \\var IPASettings::sensorModel\n+ * \\brief The sensor model name\n+ *\n+ * Provides the sensor model name to the IPA.\n+ */\n struct IPASettings {\n \tstring configurationFile;\n+\tstring sensorModel;\n };\n \n /**\ndiff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\nindex 00fa62c972ed..2c8ae31a28ad 100644\n--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n@@ -1227,7 +1227,8 @@ int RPiCameraData::loadIPA()\n \tipa_->setIspControls.connect(this, &RPiCameraData::setIspControls);\n \tipa_->setDelayedControls.connect(this, &RPiCameraData::setDelayedControls);\n \n-\tIPASettings settings(ipa_->configurationFile(sensor_->model() + \".json\"));\n+\tIPASettings settings(ipa_->configurationFile(sensor_->model() + \".json\"),\n+\t\t\t sensor_->model());\n \n \treturn ipa_->init(settings);\n }\ndiff --git a/src/libcamera/pipeline/vimc/vimc.cpp b/src/libcamera/pipeline/vimc/vimc.cpp\nindex 57c65b021c46..2dfb63ecf2ef 100644\n--- a/src/libcamera/pipeline/vimc/vimc.cpp\n+++ b/src/libcamera/pipeline/vimc/vimc.cpp\n@@ -425,7 +425,7 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)\n \tdata->ipa_ = IPAManager::createIPA<ipa::vimc::IPAProxyVimc>(this, 0, 0);\n \tif (data->ipa_ != nullptr) {\n \t\tstd::string conf = data->ipa_->configurationFile(\"vimc.conf\");\n-\t\tdata->ipa_->init(IPASettings{ conf });\n+\t\tdata->ipa_->init(IPASettings{ conf, data->sensor_->model() });\n \t} else {\n \t\tLOG(VIMC, Warning) << \"no matching IPA found\";\n \t}\ndiff --git a/test/ipa/ipa_interface_test.cpp b/test/ipa/ipa_interface_test.cpp\nindex 4b88806f8f67..d6ca6f5137b0 100644\n--- a/test/ipa/ipa_interface_test.cpp\n+++ b/test/ipa/ipa_interface_test.cpp\n@@ -104,7 +104,7 @@ protected:\n \n \t\t/* Test initialization of IPA module. */\n \t\tstd::string conf = ipa_->configurationFile(\"vimc.conf\");\n-\t\tint ret = ipa_->init(IPASettings{ conf });\n+\t\tint ret = ipa_->init(IPASettings{ conf, \"vimc\" });\n \t\tif (ret < 0) {\n \t\t\tcerr << \"IPA interface init() failed\" << endl;\n \t\t\treturn TestFail;\n", "prefixes": [ "libcamera-devel", "1/7" ] }