Patch Detail
Show a patch.
GET /api/patches/18150/?format=api
{ "id": 18150, "url": "https://patchwork.libcamera.org/api/patches/18150/?format=api", "web_url": "https://patchwork.libcamera.org/patch/18150/", "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": "<20230119104544.9456-3-naush@raspberrypi.com>", "date": "2023-01-19T10:45:32", "name": "[libcamera-devel,v1,02/14] pipeline: ipa: raspberrypi: Remove unused streamConfig", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "4eea982aa026fc064e93ddf256e5325ef349c01c", "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/18150/mbox/", "series": [ { "id": 3715, "url": "https://patchwork.libcamera.org/api/series/3715/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3715", "date": "2023-01-19T10:45:30", "name": "Raspberry Pi: Camera Module 3 support", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3715/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/18150/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/18150/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 B20A7C3294\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 19 Jan 2023 10:45:59 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 695D3625F3;\n\tThu, 19 Jan 2023 11:45:59 +0100 (CET)", "from mail-wm1-x336.google.com (mail-wm1-x336.google.com\n\t[IPv6:2a00:1450:4864:20::336])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BEDE761EFC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Jan 2023 11:45:53 +0100 (CET)", "by mail-wm1-x336.google.com with SMTP id\n\tq10-20020a1cf30a000000b003db0edfdb74so2561437wmq.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Jan 2023 02:45:53 -0800 (PST)", "from localhost.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tbe12-20020a05600c1e8c00b003db06224953sm5332029wmb.41.2023.01.19.02.45.52\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 19 Jan 2023 02:45:52 -0800 (PST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1674125159;\n\tbh=VkG44ZZbKdX0I/UwM1bWgbMb/GHfQtEotZ7EzpVw5aI=;\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=q2wq2ISiqlhpuRvA1hU9kIOCjiemDhWvvmR6vZqAQcLEN36Zw83a0SQo6vz3BoIKW\n\tqEIqfhF+1Yc7NeI4BniZTHdQFO5t22cq9RZSKbGLD/3GBRogF4v6HyedMfCAkBDE9B\n\tYNbZ5If8RbY1TThlgNRQMNEakSNqiEdbPexvLFwwnGUtFqnU4PmwEOyCY4ODOOfMuB\n\tUCFXnkOvrvFhH6+FLpv0nXP8BoM5aFycFS3SGcd/JQoLRjUfrFccW99hTuzalDXlb/\n\tTRg+cE0e5128TsCAj17gHokjnTjeG1S54SWLG2udNBrmO4RE5ELZ5t6zzNYsQVyMgJ\n\tVlDHYnCVv7njQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\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=ln2wGHCJj71TM15zY2blAqeWIH4Mu4eKQ4MgaUd2zIQ=;\n\tb=VV0s3hGDB8sb+2zhiAULzzjdivhl6Uzxi/Cl6yEJFeFIxwUbQJH8yO8k3GF1G7/m3h\n\tgL4bUfZv0vbKXY4XvlBd/gWuwoY5Oq6K7t1fxGI9selrI3Qbm9D5aKV/vAIg8jFGItGs\n\tuX2oZdHGnVaaDTdM1iZp5Lx/r1NHa6aKwVd4W1S2/TWMLuEXYjzqlUAfh7NPPz/8ngYN\n\t+5MlRxh6aJXbq8lOEKczd1gNzAHBRyPQQ4BrKParWaTUDxONVjwYTPALvW5P1vUUXbcn\n\tkzO6LhmfDIBswHQMVcdzuMmn2V5ZMeLbywbstjXWL0uM5IH/qiaa4ovts54/v/tVIWOr\n\tVIag==" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"VV0s3hGD\"; dkim-atps=neutral", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\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=ln2wGHCJj71TM15zY2blAqeWIH4Mu4eKQ4MgaUd2zIQ=;\n\tb=dMGUv8y9Yu5lYROQswUgddJieU3nHkNIgem40GYcZyF7kPQ+QaniuoGvr1N8nTPdXb\n\twImCXnovwI+X/tn66MceyV9Ce7JAJr8zKV6n9+OYGc3pZo6YZcl96q85lHBLTqeph9Su\n\ts8RnXnZbaXfoT9EfX57yMKgsN/Iw0HqyKu+CdsI4iPOv+vhw1TgwOKGaDkiVdikZf4gw\n\t5dPOQn67selVtA/2xq+BTvmjb0A3spwbNFxuHgKoGMRh/n1VhGaXBSEZCafA6ny4mwua\n\tEWStaDoUizd1TrQKH4FPPDc+4nUhesAGF1GU0BZn5vBb8HkON1w40RoeAhai9f13z04B\n\ta3bQ==", "X-Gm-Message-State": "AFqh2kraN1uANaHGZ8CMyLQ2oc/QwYa3YRSWaR7r+XUL/RSs4BV2/dcV\n\tUJ6yP3KNmJ/PAxPD60+JjLemTnk30Z1bgQNZaVw=", "X-Google-Smtp-Source": "AMrXdXtbRAuKW2L1TUkB6S7o42JYCRg64/BJ0OgtoCcPYld/lkClIscvP1IGVqAULEt1XpjQJlz9XA==", "X-Received": "by 2002:a05:600c:4248:b0:3d9:7667:c0e4 with SMTP id\n\tr8-20020a05600c424800b003d97667c0e4mr9781838wmm.31.1674125153111; \n\tThu, 19 Jan 2023 02:45:53 -0800 (PST)", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 19 Jan 2023 10:45:32 +0000", "Message-Id": "<20230119104544.9456-3-naush@raspberrypi.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230119104544.9456-1-naush@raspberrypi.com>", "References": "<20230119104544.9456-1-naush@raspberrypi.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v1 02/14] pipeline: ipa: raspberrypi:\n\tRemove unused streamConfig", "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": "Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Naushir Patuck <naush@raspberrypi.com>", "Cc": "Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Remove the streamConfig parameter from the ipa::configure() call, it is never\nused.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\n---\n include/libcamera/ipa/raspberrypi.mojom | 2 --\n src/ipa/raspberrypi/raspberrypi.cpp | 2 --\n src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 13 +------------\n 3 files changed, 1 insertion(+), 16 deletions(-)", "diff": "diff --git a/include/libcamera/ipa/raspberrypi.mojom b/include/libcamera/ipa/raspberrypi.mojom\nindex e7dabcbe5313..0732496968ed 100644\n--- a/include/libcamera/ipa/raspberrypi.mojom\n+++ b/include/libcamera/ipa/raspberrypi.mojom\n@@ -59,7 +59,6 @@ interface IPARPiInterface {\n \t * \\fn configure()\n \t * \\brief Configure the IPA stream and sensor settings\n \t * \\param[in] sensorInfo Camera sensor information\n-\t * \\param[in] streamConfig Configuration of all active streams\n \t * \\param[in] entityControls Controls provided by the pipeline entities\n \t * \\param[in] ipaConfig Pipeline-handler-specific configuration data\n \t * \\param[out] controls Controls to apply by the pipeline entity\n@@ -75,7 +74,6 @@ interface IPARPiInterface {\n \t * pipeline handler to the IPA and back.\n \t */\n \tconfigure(libcamera.IPACameraSensorInfo sensorInfo,\n-\t\t map<uint32, libcamera.IPAStream> streamConfig,\n \t\t map<uint32, libcamera.ControlInfoMap> entityControls,\n \t\t IPAConfig ipaConfig)\n \t\t=> (int32 ret, libcamera.ControlList controls, IPAConfigResult result);\ndiff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp\nindex ec18497155ba..f748b6e2dac7 100644\n--- a/src/ipa/raspberrypi/raspberrypi.cpp\n+++ b/src/ipa/raspberrypi/raspberrypi.cpp\n@@ -120,7 +120,6 @@ public:\n \tvoid stop() override {}\n \n \tint configure(const IPACameraSensorInfo &sensorInfo,\n-\t\t const std::map<unsigned int, IPAStream> &streamConfig,\n \t\t const std::map<unsigned int, ControlInfoMap> &entityControls,\n \t\t const IPAConfig &data,\n \t\t ControlList *controls, IPAConfigResult *result) override;\n@@ -382,7 +381,6 @@ void IPARPi::setMode(const IPACameraSensorInfo &sensorInfo)\n }\n \n int IPARPi::configure(const IPACameraSensorInfo &sensorInfo,\n-\t\t [[maybe_unused]] const std::map<unsigned int, IPAStream> &streamConfig,\n \t\t const std::map<unsigned int, ControlInfoMap> &entityControls,\n \t\t const IPAConfig &ipaConfig,\n \t\t ControlList *controls, IPAConfigResult *result)\ndiff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\nindex 62417669bdc5..272767b5263b 100644\n--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n@@ -1612,20 +1612,9 @@ int RPiCameraData::loadIPA(ipa::RPi::IPAInitResult *result)\n \n int RPiCameraData::configureIPA(const CameraConfiguration *config, ipa::RPi::IPAConfigResult *result)\n {\n-\tstd::map<unsigned int, IPAStream> streamConfig;\n \tstd::map<unsigned int, ControlInfoMap> entityControls;\n \tipa::RPi::IPAConfig ipaConfig;\n \n-\t/* Inform IPA of stream configuration and sensor controls. */\n-\tunsigned int i = 0;\n-\tfor (auto const &stream : isp_) {\n-\t\tif (stream.isExternal()) {\n-\t\t\tstreamConfig[i++] = IPAStream(\n-\t\t\t\tstream.configuration().pixelFormat,\n-\t\t\t\tstream.configuration().size);\n-\t\t}\n-\t}\n-\n \tentityControls.emplace(0, sensor_->controls());\n \tentityControls.emplace(1, isp_[Isp::Input].dev()->controls());\n \n@@ -1655,7 +1644,7 @@ int RPiCameraData::configureIPA(const CameraConfiguration *config, ipa::RPi::IPA\n \n \t/* Ready the IPA - it must know about the sensor resolution. */\n \tControlList controls;\n-\tret = ipa_->configure(sensorInfo_, streamConfig, entityControls, ipaConfig,\n+\tret = ipa_->configure(sensorInfo_, entityControls, ipaConfig,\n \t\t\t &controls, result);\n \tif (ret < 0) {\n \t\tLOG(RPI, Error) << \"IPA configuration failed!\";\n", "prefixes": [ "libcamera-devel", "v1", "02/14" ] }