{"id":25252,"url":"https://patchwork.libcamera.org/api/1.1/patches/25252/?format=json","web_url":"https://patchwork.libcamera.org/patch/25252/","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":"<20251127023739.179652-16-bryan.odonoghue@linaro.org>","date":"2025-11-27T02:37:30","name":"[v5,15/24] 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/25252/mbox/","series":[{"id":5617,"url":"https://patchwork.libcamera.org/api/1.1/series/5617/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5617","date":"2025-11-27T02:37:15","name":"Add GLES 2.0 GPUISP to libcamera","version":5,"mbox":"https://patchwork.libcamera.org/series/5617/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/25252/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/25252/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 16D8AC32DE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 27 Nov 2025 02:38:22 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8654660BDD;\n\tThu, 27 Nov 2025 03:38:21 +0100 (CET)","from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com\n\t[IPv6:2a00:1450:4864:20::32d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C672B60AB8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 27 Nov 2025 03:38:16 +0100 (CET)","by mail-wm1-x32d.google.com with SMTP id\n\t5b1f17b1804b1-4779adb38d3so1790405e9.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 26 Nov 2025 18:38:16 -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-4790552c3c9sm58186345e9.0.2025.11.26.18.38.14\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 26 Nov 2025 18:38:14 -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=\"uXNVdpdQ\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1764211096; x=1764815896;\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=U4gZBzqGbQfvRAdn9kIktQq170/k2VAqruGy17o40mc=;\n\tb=uXNVdpdQTop3ZHzevS5H6HFSdAqoX76vVnPm7tuBO6hhHACKMhwPSO86LzGD9TeBdm\n\tnAgWCAUeP6Iw5fTh9MR7MGHaPmIP6Rd3+zxsnqOJIp9ba2kScbPo6EKHuRryeH2VN8uD\n\tCx7JxWZsouWZNwwpcwX7UyY7B4FRdIssiGcPEoTo1zuKQThaLIbzaoF3owSj9igrY0Rl\n\tXUass56gSnENzhaomyT/b3L4QgZyXwEBltvCSWGeSyoot0bFwI5gULJ3Yakf4xiSHSNv\n\tn2B1T9en9fm8oVI0dBEs/hyN7l2WdZ5L2k746Y7fMVE7U2ouCAYF5yM2jd723QHSIvzG\n\tMgXw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1764211096; x=1764815896;\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=U4gZBzqGbQfvRAdn9kIktQq170/k2VAqruGy17o40mc=;\n\tb=RmmZxrKTCLjWVj6bpdk8P1YS7sTB+lpu06lX1nWMf/LizTANNwQL7B6s9uh1glI9dI\n\tKr7tkyKISM7AdTrbuAdUdBnl7FThM1H9ikbjN9ffqqf9HsBnjFHxQeGM4pyQwvps63Pa\n\t35g4hZf3j4YeZRGEjoCKzpCp0H+vSj9AkX+N12J/s8C68IJ4QG2r0WgMM+8vGLX2y23C\n\tKOfxfrfjGMDJiMck5MROKx2h6Fr/v/GM3rACH06C6gswZxosj7k6uGZtkWZ0NsfQQLNF\n\tXwCYSpgDWEIJSFjXDLj/aBAM+838JEZuH41kDVHgIgDkdFRVlTsr8r+JOPllPTTfheTt\n\tQCJw==","X-Gm-Message-State":"AOJu0YxDaO9RF4Es5AkRjDk9cOr67+bltXecHbrGQG7Sr1HGaRHoxg4b\n\tS2kNxL22SsM5w64LgUKR/0R9TvHoRLQP2vaa7YhhMovNi2FCMs8LUHL8E0GAckqK1DtBf21V7E2\n\tGCYu/Ljw=","X-Gm-Gg":"ASbGncsQXNLJjUwOZZstx+nu5wGx4RTRPF3l8GipFwAGuXCj5SwxyP+tMsLHpB/xYxz\n\trX3kHqdgAyDds8Wcj+zgwutpS7J3CLFNMF6FVgbtsNDu+U9jCZZfJRKA2uCgntQiqDckVd2yWqJ\n\tlPxb7z5HvZ/wSzpO4SAIqPn5x6WPXuPike5oH4OX+lHA1r9NtdYWvKHsTYYka8y8ckO0mcZDuiF\n\t6UHxcSpeOgrhtc6ZoBFuFuqFm3ro7bNhjf0yfTZ2Fm/R89RtNDFJCn9hg/48tfSS+QSGlglphfD\n\trIcDPGkv22QFc5yUNKqANqhks76GzPvTjZLx5K5fwM0S7YYCPyEnhaoT1iJmsfmwJkFGjTmn7bj\n\tjKcACTkR1hf44ZoPnAc6sGa0CnJyLzjU9LCMo28jBa7KCGIBpX4hnr24xm//Sd1YsBS/1PTygg3\n\t4o2bpXQbyhO4bXxcHfZlEY0lK8b/kCGz0SvPqDIXs0L60ZLkyqU+vYVErZyqQd4LIMIXQ=","X-Google-Smtp-Source":"AGHT+IHwO5gJ0kdRSW3C7w3wM/FzY5P/yuC26EOEV4IO2FkM82nS1kSz1CbBCVhzjZTGbWFJ875qAg==","X-Received":"by 2002:a05:600c:460a:b0:471:700:f281 with SMTP id\n\t5b1f17b1804b1-47904b1b2dfmr51046175e9.25.1764211096073; \n\tWed, 26 Nov 2025 18:38:16 -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>","Subject":"[PATCH v5 15/24] libcamera: software_isp: debayer_cpu: Make\n\tgetInputConfig and getOutputConfig static","Date":"Thu, 27 Nov 2025 02:37:30 +0000","Message-ID":"<20251127023739.179652-16-bryan.odonoghue@linaro.org>","X-Mailer":"git-send-email 2.51.2","In-Reply-To":"<20251127023739.179652-1-bryan.odonoghue@linaro.org>","References":"<20251127023739.179652-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>\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 2d385cf01..a395fc97c 100644\n--- a/src/libcamera/software_isp/debayer_cpu.h\n+++ b/src/libcamera/software_isp/debayer_cpu.h\n@@ -98,8 +98,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":["v5","15/24"]}