Patch Detail
Show a patch.
GET /api/1.1/patches/25329/?format=api
{ "id": 25329, "url": "https://patchwork.libcamera.org/api/1.1/patches/25329/?format=api", "web_url": "https://patchwork.libcamera.org/patch/25329/", "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": "<20251202134544.662446-21-bryan.odonoghue@linaro.org>", "date": "2025-12-02T13:45:40", "name": "[v6,20/24] ipa: libipa: module: Add createSelfEnumeratingAlgorithm", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "5728910e8ee2b83ddf96bf04874ce89f3b04c664", "submitter": { "id": 175, "url": "https://patchwork.libcamera.org/api/1.1/people/175/?format=api", "name": "Bryan O'Donoghue", "email": "bryan.odonoghue@linaro.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/25329/mbox/", "series": [ { "id": 5631, "url": "https://patchwork.libcamera.org/api/1.1/series/5631/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5631", "date": "2025-12-02T13:45:20", "name": "Add GLES 2.0 GPUISP to libcamera", "version": 6, "mbox": "https://patchwork.libcamera.org/series/5631/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/25329/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/25329/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 BC789C3257\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 2 Dec 2025 13:46:29 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 39A8660D35;\n\tTue, 2 Dec 2025 14:46:29 +0100 (CET)", "from mail-wm1-x333.google.com (mail-wm1-x333.google.com\n\t[IPv6:2a00:1450:4864:20::333])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0A8C560F30\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 2 Dec 2025 14:46:22 +0100 (CET)", "by mail-wm1-x333.google.com with SMTP id\n\t5b1f17b1804b1-47775fb6cb4so40127675e9.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 02 Dec 2025 05:46:22 -0800 (PST)", "from inspiron14p-linux.ht.home (188-141-3-146.dynamic.upc.ie.\n\t[188.141.3.146]) by smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-47926f0ec69sm19383375e9.1.2025.12.02.05.46.20\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 02 Dec 2025 05:46:20 -0800 (PST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"yW2xyyeH\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1764683181; x=1765287981;\n\tdarn=lists.libcamera.org; \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=TQsZfDaoGFUl4eFxvv+cU20DJlcn/08chTcEqRf6U74=;\n\tb=yW2xyyeHgjo6U/99gkWfm1I/pAfyd0ENZ71QcwNiRm2CooApXyCwZdDfFC4qye5cYP\n\t873gKLFiBZnZcfDd1bndSe804h1NZ/pHD9lVmEWMf9rWht7Buxq6D4pPmkrC9qmZvo9B\n\tAO7T5cK6xNDWrCCLz8rZjJ2piaR0CSKSVLNaldD9z4KFWEmzyNNYxlcuzQteUn8lPbB8\n\tL1quhpc3Tu35dS/+F0VtKezemSlRN1ss0ftR0Eskw/Bj5XfSfXn/ZkAUGhj3vNYIGKES\n\tXaP23UntQf8DGFc+zveYnDEF0rACjyVyqgmKnziex7VuZm2v0f1AzfSwAlt4KTEPJcC/\n\t1ntw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1764683181; x=1765287981;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n\t:to:cc:subject:date:message-id:reply-to;\n\tbh=TQsZfDaoGFUl4eFxvv+cU20DJlcn/08chTcEqRf6U74=;\n\tb=tyz2kk/90eY31qU15BFzE/4JWDfLc8+XeyKfa0fQ/K0TW4dCWWgtUuAFNoqUjDeyo7\n\t85GAdrwnPuSEEY7RrdWXNuajfMrHGMC8PIJdgaQ3GhrjPMS6+vsAl/fbkT/rSFD4Ldvj\n\tfIGPdQcMVPURPgytst2mXU8I9w5r3d62CGHr4BCg5pOhNoZFrvZIXSv4ZsRmkh+z+gR1\n\tuTZ8GHjTgyqA3cHdkm/m/nWsQ3okjSz3tyWIpfBZQCkUd1Ev+/MnX+/PuQu/cGaI5/oL\n\tfBYBJ5WOHvyQdo/R1mgiP045tRZqO/Wx8ZL0lsGGurjAghM8WW/x3bhlkE1RA7s21gML\n\tTHcQ==", "X-Gm-Message-State": "AOJu0Yw39+OuF5A4IX5Js2GVob70axt+P0n030epjhwsNSk5wQ2oRMMa\n\tRkuqQ7fsj5H1+V9gdYXsG56FbrfvuCLs6YF2XAVd0CYYHT6SUObYONrGxxveMYTfWDZpyBi1y3h\n\tI8mCr", "X-Gm-Gg": "ASbGncuBJOHMiSUTGv6Fzm2aGFJgQX5AqS7YHFzCgkRlffMr3QrTvxNGrUFGvujVKOM\n\t23kR5RDLrEtgmCCCCV6VyDbg+hwrEeQYmkaDQD/fnjwxM40H9ZrHZOsSoNVin2x89uOEfi0w2ik\n\traM2HxeJcY9Oy5Ri09MKU+mmvXteN7UYdFaUncCO4s16QKI/2VRCD1m+KqkZGDghzmGgbHoaBEK\n\tKmEn0gGKugDw5cvNXb18XydBe7Fuhf1DecJc8pxaqtEcwaXsqC98srg3WMznjSsI4FUrP9u0rkM\n\txhpq4kj0E27R8QEeXmtFWtI++OjL0B+96syriGTvWQ5dqeTUXwVNxZJQz7jiQ/p/G2vX365o8HN\n\tNK+DcFeOhp9UWJWjzS/iMSE8IPRVspBOg7FtTmqHreX8uw++Twb4s+X5SXXgaSeWu4x4YpNS1wx\n\tH3J7PKhJyNLEF2U2hceiMvjWe0zUwzmGPrJPxZa8NDMclCPxTXnDNc2y4u+3iVDY+klDI=", "X-Google-Smtp-Source": "AGHT+IH0EDLtxCyLLH1V0ghyKKxzG1pxyNUqLIoOrmKfbr0ADTcj5enXfmu2oeKwZ8dShPKXZyhpLg==", "X-Received": "by 2002:a05:600c:4591:b0:477:7925:f7f3 with SMTP id\n\t5b1f17b1804b1-477c10e1cacmr414142025e9.14.1764683181314; \n\tTue, 02 Dec 2025 05:46:21 -0800 (PST)", "From": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "pavel@ucw.cz,\n\tBryan O'Donoghue <bryan.odonoghue@linaro.org>", "Subject": "[PATCH v6 20/24] ipa: libipa: module: Add\n\tcreateSelfEnumeratingAlgorithm", "Date": "Tue, 2 Dec 2025 13:45:40 +0000", "Message-ID": "<20251202134544.662446-21-bryan.odonoghue@linaro.org>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<20251202134544.662446-1-bryan.odonoghue@linaro.org>", "References": "<20251202134544.662446-1-bryan.odonoghue@linaro.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n src/ipa/libipa/module.h | 41 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 41 insertions(+)", "diff": "diff --git a/src/ipa/libipa/module.h b/src/ipa/libipa/module.h\nindex c27af7718..f320291e6 100644\n--- a/src/ipa/libipa/module.h\n+++ b/src/ipa/libipa/module.h\n@@ -70,6 +70,47 @@ public:\n \t\tfactories().push_back(factory);\n \t}\n \n+\t/**\n+\t * \\fn int Module::createSelfEnumeratingAlgorithm(Context &context, const std::string &name)\n+\t * \\brief Create and initialise a self-enumerating algorithm by name\n+\t * \n+\t * This function creates an algorithm instance from the registered algorithm\n+\t * factories using only the algorithm name, without requiring YAML configuration\n+\t * data.\n+\t * \n+\t * This is useful for algorithms that don't require external configuration\n+\t * parameters and can self-configure or use default values.\n+\t * \n+\t * \\param[in] context The IPA context to pass to the algorithm's init function\n+\t * \\param[in] name The name of the algorithm to instantiate\n+\t * \n+\t * \\return 0 on success, negative errno value on failure:\n+\t * -EINVAL if the algorithm is not found in the factory registry\n+\t * Other negative values if algorithm initialisation fails\n+\t */\n+\tint createSelfEnumeratingAlgorithm(Context &context, const std::string &name)\n+\t{\n+\t\tstd::unique_ptr<Algorithm<Module>> algo = createAlgorithm(name);\n+\t\tif (!algo) {\n+\t\t\tLOG(IPAModuleAlgo, Error)\n+\t\t\t\t<< \"Algorithm '\" << name << \"' not found\";\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\n+\t\tint ret = algo->init(context);\n+\t\tif (ret) {\n+\t\t\tLOG(IPAModuleAlgo, Error)\n+\t\t\t\t<< \"Algorithm '\" << name << \"' failed to initialize\";\n+\t\t\treturn ret;\n+\t\t}\n+\n+\t\tLOG(IPAModuleAlgo, Debug)\n+\t\t\t<< \"Instantiated algorithm '\" << name << \"'\";\n+\n+\t\talgorithms_.push_back(std::move(algo));\n+\t\treturn 0;\n+\t}\n+\n private:\n \tint createAlgorithm(Context &context, const YamlObject &data)\n \t{\n", "prefixes": [ "v6", "20/24" ] }