{"id":25530,"url":"https://patchwork.libcamera.org/api/1.1/patches/25530/?format=json","web_url":"https://patchwork.libcamera.org/patch/25530/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20251212002937.3118-16-bryan.odonoghue@linaro.org>","date":"2025-12-12T00:29:26","name":"[v8,15/26] libcamera: software_isp: debayer_cpu: Make getInputConfig and getOutputConfig static","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"4332d9c2287e66c06675e1d2dd88742998b215e1","submitter":{"id":175,"url":"https://patchwork.libcamera.org/api/1.1/people/175/?format=json","name":"Bryan O'Donoghue","email":"bryan.odonoghue@linaro.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/25530/mbox/","series":[{"id":5657,"url":"https://patchwork.libcamera.org/api/1.1/series/5657/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5657","date":"2025-12-12T00:29:11","name":"Add GLES 2.0 GPUISP to libcamera","version":8,"mbox":"https://patchwork.libcamera.org/series/5657/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/25530/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/25530/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 28A21BD1F1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 12 Dec 2025 00:34:13 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CAA7B61895;\n\tFri, 12 Dec 2025 01:34:12 +0100 (CET)","from mail-pf1-x435.google.com (mail-pf1-x435.google.com\n\t[IPv6:2607:f8b0:4864:20::435])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9FB4361893\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 12 Dec 2025 01:34:11 +0100 (CET)","by mail-pf1-x435.google.com with SMTP id\n\td2e1a72fcca58-7b8bbf16b71so708990b3a.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 11 Dec 2025 16:34:11 -0800 (PST)","from inspiron14p-linux (p99250-ipoefx.ipoe.ocn.ne.jp.\n\t[153.246.134.249]) by smtp.gmail.com with ESMTPSA id\n\t41be03b00d2f7-c0c26eb0f6bsm3317282a12.14.2025.12.11.16.34.07\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 11 Dec 2025 16:34:09 -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=\"kefycMXw\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1765499650; x=1766104450;\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=BO0mMIWhB901RhyMhEcHbc+LWlQiOyKCJvDrt0v6kXI=;\n\tb=kefycMXwwyy6vSv5z+Eaxx2I93RrSCBVESS4CwhovwopDTkTlF9cYsTPp0133PzQZW\n\tDCR4g9fv3zJ8XoRmp6k0qn46VHsQwdvKD/5Mai6iGnh/63s6DjhxGMAGoCfkMHIls5OY\n\twPU66ZA62JSv4uaC1es5BCIG+roEzlW7GDKj34bpQlBYWMlji85V0FlCi6EpI9gnb4KA\n\tVIMomEFbcsrjKGBHz8tDDwdY0/rGHp/zyjJIQ7ZLhGVlP2d9HALKElkW83H8/NJOGtqm\n\tYZ5wew6Ah+HVXlhy8z+QQSsBnPF0UdHmTt0IagGathKw319l9MSxXmHPkV5+dPT5cHwQ\n\tqMqQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1765499650; x=1766104450;\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=BO0mMIWhB901RhyMhEcHbc+LWlQiOyKCJvDrt0v6kXI=;\n\tb=tQHM+Q9W43qvguCNZYoyQTanVtnHNpljuW9PbVUnM3t9yeiB1fR3QM/Bl/iU9HJMAD\n\tI85YwZiSf5QNAlWmxTEj3KMfiHeCz2ox4WMzq/zMlw2Dld/8Hz+g7i4zb5140GFupd0z\n\t/oQRBKl/kKaTqjCw4GKefkDdP1NQkpgK9b5Q7fTNxztWFXuz4sao9r5h7xzKtP11X+LR\n\tUBSTrk7yz6zVTpDzII4bWPs7bk03IM5+D0PWTpj4uvbdUKiHcy6AQCoA7x5mjttysdR5\n\tsbgNxfIlTjDJMtOowgVU55HSIhFUERGrBfwVBC/RG4d2axTDQdoTdWXikxCeDNDlkZ1J\n\t05Hw==","X-Gm-Message-State":"AOJu0Yym20mPxR6TkMjzWU2LX33b+Nw38Nqe2pC3Mn3G3saiRYcJjGpu\n\tzzQwi2/k4bGo9sHqPd5iIkwVIdhj2mdK7nEcg5946n3pyC6KE6EouEE4bMoIU9pUGZthPokiCD4\n\tHL64d","X-Gm-Gg":"AY/fxX6tDO+BK36UkmJlTyAfV+xzEemoOYbOMjeILylp4xXW3Feiq58jkCO/j9AEYl6\n\txtHraEu3+mofYHXUA4ws7kQZhx/Q/BPhcZNTaR8DteGPeo5/IykfOYm+vNxSui190+Ei+/IAwGC\n\tp+cOdoYkdmKgfTTT9CrHOkv1qJzeSrme3LuEFPo+C7dvrjv8cFT7SsIp4gxBWs8n6b/xZdla9KK\n\twXGyURJSO+pBjIJ+a0a3RDo3s2nC54CifLFF+qfJCkUCGa42OcPfd2BQ3yEjrHQR5cS9SM06lpn\n\tHUbZbuldB/3BQYffbYjGN/3E8NgubDKN1521CuQhGblZh88ekeIEiNeKmOAX9CJvUtCmlH9E49w\n\tWiLLI+WjHPxYhlLg1aRiYm39STJ6V8c4bK/5/g1YrGMgGY2PmPhvG8cf79SAjyxXPpa+lhSPZrq\n\t7njRKDo8gnSRb5w0zKehKiFH97ZGO/Nu/5OJ/tdvx39XE7lQByI/rpc2nqZQ4xLM54XZJdeg==","X-Google-Smtp-Source":"AGHT+IGFVP2FsOQP694q5fUy5q61F6m/fkJa1QgQxpkygT+Jy0DKS3Q0omxk4n99ytA3oGdiFrWPUA==","X-Received":"by 2002:a05:6a20:9155:b0:35d:d477:a801 with SMTP id\n\tadf61e73a8af0-369b4335469mr254933637.13.1765499649948; \n\tThu, 11 Dec 2025 16:34:09 -0800 (PST)","From":"Bryan O'Donoghue <bryan.odonoghue@linaro.org>","To":"libcamera-devel@lists.libcamera.org","Cc":"pavel@ucw.cz, Bryan O'Donoghue <bryan.odonoghue@linaro.org>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tMilan Zamazal <mzamazal@redhat.com>","Subject":"[PATCH v8 15/26] libcamera: software_isp: debayer_cpu: Make\n\tgetInputConfig and getOutputConfig static","Date":"Fri, 12 Dec 2025 00:29:26 +0000","Message-ID":"<20251212002937.3118-16-bryan.odonoghue@linaro.org>","X-Mailer":"git-send-email 2.52.0","In-Reply-To":"<20251212002937.3118-1-bryan.odonoghue@linaro.org>","References":"<20251212002937.3118-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":"Make getInputConfig and getOutputConfig static so as to allow for\ninterrogation of the supported pixel formats prior to object instantiation.\nDo this so as to allow the higher level logic make an informed choice\nbetween CPU and GPU ISP based on which pixel formats are supported.\n\nCurrently CPU ISP supports more diverse input and output schemes.\n\nAcked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nReviewed-by: Milan Zamazal <mzamazal@redhat.com>\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n src/libcamera/software_isp/debayer_cpu.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/src/libcamera/software_isp/debayer_cpu.h b/src/libcamera/software_isp/debayer_cpu.h\nindex ecc4f9dd0..67df2b93a 100644\n--- a/src/libcamera/software_isp/debayer_cpu.h\n+++ b/src/libcamera/software_isp/debayer_cpu.h\n@@ -97,8 +97,8 @@ private:\n \ttemplate<bool addAlphaByte, bool ccmEnabled>\n \tvoid debayer10P_RGRG_BGR888(uint8_t *dst, const uint8_t *src[]);\n \n-\tint getInputConfig(PixelFormat inputFormat, DebayerInputConfig &config);\n-\tint getOutputConfig(PixelFormat outputFormat, DebayerOutputConfig &config);\n+\tstatic int getInputConfig(PixelFormat inputFormat, DebayerInputConfig &config);\n+\tstatic int getOutputConfig(PixelFormat outputFormat, DebayerOutputConfig &config);\n \tint setupStandardBayerOrder(BayerFormat::Order order);\n \tint setDebayerFunctions(PixelFormat inputFormat,\n \t\t\t\tPixelFormat outputFormat,\n","prefixes":["v8","15/26"]}