Patch Detail
Show a patch.
GET /api/1.1/patches/17311/?format=api
{ "id": 17311, "url": "https://patchwork.libcamera.org/api/1.1/patches/17311/?format=api", "web_url": "https://patchwork.libcamera.org/patch/17311/", "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": "<20220908014200.28728-3-laurent.pinchart@ideasonboard.com>", "date": "2022-09-08T01:41:30", "name": "[libcamera-devel,v4,02/32] ipa: ipu3: af: Pass context reference to afIsOutOfFocus()", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "ce52d6d562bd79f449c1e46cf349722da95c7bde", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/17311/mbox/", "series": [ { "id": 3476, "url": "https://patchwork.libcamera.org/api/1.1/series/3476/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3476", "date": "2022-09-08T01:41:28", "name": "ipa: Frame context queue, IPU3 & RkISP consolidation, and RkISP1 improvements", "version": 4, "mbox": "https://patchwork.libcamera.org/series/3476/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/17311/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/17311/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 1043BC3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 8 Sep 2022 01:42:23 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B37376209B;\n\tThu, 8 Sep 2022 03:42:22 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 91A8B6208F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 8 Sep 2022 03:42:20 +0200 (CEST)", "from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 1A2736CC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 8 Sep 2022 03:42:20 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1662601342;\n\tbh=E9b69VVLHcujLlP+GqAxNm3BvaWK50WgqW9V8xE4yIg=;\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=WswsMMv0vE+wkvbit9BGOtj+fMQsT3ov8wcv/HbHPioUu826iqoqiA/kh/p2Ub4ix\n\tTU9xLJevKpv7vf8k/v7Bj1+9wO6FZsrEjmlRXQIln96d1ftEKXH7dab2f/VEbd9k2v\n\tTSaJkuO/qrrpFUFC/BXblJtoax5WQT8hRQhfWsNViruZJX39lBHxrphtcOBBC4IRu2\n\tj4eUJqkrOPEmIEC7aGIkT9ZVZaVD2dpA072WVjcgQ6w37X+9P0Uyu/CUGspdcYh36B\n\t8n23kZ7YVQk/ZFmCuUI6cbyRpSo7NWZPyAEqU90QzsYt4BiJQYMUptJK0m2c/+rPdd\n\tdC9HRij7kqXdA==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1662601340;\n\tbh=E9b69VVLHcujLlP+GqAxNm3BvaWK50WgqW9V8xE4yIg=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=mJTKMlLIH4HCu3n3zcj/lluGQTuhJv2kWkU+CO0i5mlNNpJDW5+7c8ol+UyvwcfGo\n\tfNAT+Wo1WPbrLW+Mg37Gjt8aToMeOfHZB6olf6zxB8bfIatFeyRcBKtXC2BGlBi2X6\n\tK6cQbJz4Vg7CtLbj30gFvQvJPT8pWmrXJBec9iXs=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"mJTKMlLI\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 8 Sep 2022 04:41:30 +0300", "Message-Id": "<20220908014200.28728-3-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.35.1", "In-Reply-To": "<20220908014200.28728-1-laurent.pinchart@ideasonboard.com>", "References": "<20220908014200.28728-1-laurent.pinchart@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v4 02/32] ipa: ipu3: af: Pass context\n\treference to afIsOutOfFocus()", "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": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Avoid copying the whole IPA context by passing a reference to the\nAf::afIsOutOfFocus() function.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/ipa/ipu3/algorithms/af.cpp | 2 +-\n src/ipa/ipu3/algorithms/af.h | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/src/ipa/ipu3/algorithms/af.cpp b/src/ipa/ipu3/algorithms/af.cpp\nindex 106a7614e2c7..9127c24f1287 100644\n--- a/src/ipa/ipu3/algorithms/af.cpp\n+++ b/src/ipa/ipu3/algorithms/af.cpp\n@@ -383,7 +383,7 @@ double Af::afEstimateVariance(Span<const y_table_item_t> y_items, bool isY1)\n * \\return True if the variance threshold is crossed indicating lost focus,\n * false otherwise\n */\n-bool Af::afIsOutOfFocus(IPAContext context)\n+bool Af::afIsOutOfFocus(IPAContext &context)\n {\n \tconst uint32_t diff_var = std::abs(currentVariance_ -\n \t\t\t\t\t context.activeState.af.maxVariance);\ndiff --git a/src/ipa/ipu3/algorithms/af.h b/src/ipa/ipu3/algorithms/af.h\nindex ccf015f3f8f5..9b93594898bb 100644\n--- a/src/ipa/ipu3/algorithms/af.h\n+++ b/src/ipa/ipu3/algorithms/af.h\n@@ -44,7 +44,7 @@ private:\n \tvoid afIgnoreFrameReset();\n \tdouble afEstimateVariance(Span<const y_table_item_t> y_items, bool isY1);\n \n-\tbool afIsOutOfFocus(IPAContext context);\n+\tbool afIsOutOfFocus(IPAContext &context);\n \n \t/* VCM step configuration. It is the current setting of the VCM step. */\n \tuint32_t focus_;\n", "prefixes": [ "libcamera-devel", "v4", "02/32" ] }