{"id":25322,"url":"https://patchwork.libcamera.org/api/1.1/patches/25322/?format=json","web_url":"https://patchwork.libcamera.org/patch/25322/","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":"<20251202134544.662446-14-bryan.odonoghue@linaro.org>","date":"2025-12-02T13:45:33","name":"[v6,13/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/25322/mbox/","series":[{"id":5631,"url":"https://patchwork.libcamera.org/api/1.1/series/5631/?format=json","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/25322/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/25322/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 6BBB5C32F2\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  2 Dec 2025 13:46:19 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B025B60D2F;\n\tTue,  2 Dec 2025 14:46:18 +0100 (CET)","from mail-wm1-x334.google.com (mail-wm1-x334.google.com\n\t[IPv6:2a00:1450:4864:20::334])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 05F7460D15\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  2 Dec 2025 14:46:12 +0100 (CET)","by mail-wm1-x334.google.com with SMTP id\n\t5b1f17b1804b1-47790b080e4so29263975e9.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 02 Dec 2025 05:46:12 -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.10\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 02 Dec 2025 05:46:10 -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=\"KLUAQFlF\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1764683171; x=1765287971;\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=vQVPOM12y5l41Oik4t/KhoAdrAnNrZonwF1zaIVHcZw=;\n\tb=KLUAQFlFrX05yTNve/JDhbfgfVP/rmhkBEiWw4Bno+W2uanGgOUpStcmT2KZEvaExX\n\t4r3u7xsLbJFmrDT5BS8NdUIEo4btzMCAW7WxzROnZ/RGpbFUDkJtWMMI4dXx0JZAaYXs\n\tYqTwTV+2ops8FMU6b1LBKHA3Sr4lsqiow36jjdzofNlvuu70xxBBoJiUjaEI7QkUldrF\n\tbIRaLKos4txi/AWjj3fzsV/14tVE/dsfbhJN2S+XDN97Se0uuXRnmrIejbhyGUyRxYql\n\tS/pl/Nl7xLDQgYn+VnYcfqfayVNJcvpFtNCMh2qAr0JPC26eQM3IPVAC3IjUd4DpmQoH\n\t7NOA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1764683171; x=1765287971;\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=vQVPOM12y5l41Oik4t/KhoAdrAnNrZonwF1zaIVHcZw=;\n\tb=cqOlV5AgZDbgLKXrquuEGg5NCaj3tsr0KTwGgOKJAXLeeSV4RzBd2Z1WFRgr2JXMPa\n\tWMZLKiWOQHMZzMDW03PfbazEXW6XRiYtTm2A9BvIQ5mcck4TDbFljAnZgCV1ratEjixf\n\tvJZHytpA2jspeuuUv1CEceVixQY82ThpWnVC7EgZ/1QOWVTEVMVNbhoI3sjIyClajG84\n\tH1rhJC/HJqFEQcnA22+lcLS1vgPTXG0yVDgyNsHb/iG9sq3g6ryJHF9YpqBJ7sefbVRp\n\t/BqUfdAIMQBKyunBP1EpGMCLIQftG60EzRlQtm5t2P17JYVZuobpx6IVb4F8j+d+j+EK\n\tKpWw==","X-Gm-Message-State":"AOJu0YxOgfCxc1jV7ybEHKTcojNjdNVlmSBcXMHWNLl0nJG7SFeX19PF\n\tTHH3ZJZ8P5+620YXUK84kMESRzyHyUUQHhk9s1DA0ORDb8FnR3CCg/PgjZO/sCZz2SaU9LpRL0Y\n\tgynz5","X-Gm-Gg":"ASbGncvA+SNnY3YiJjO9TP+gFPq7Na8d96ospnM2Cusmpe36Zi3iKalPlzYsq8WBcYX\n\tRULNwH4p3E91aSm+saAe2zeQZV3/MBvNreVnREk6KnuKv/neOry2WFgnk7IQay/w0ITxGvpxbxF\n\t72Hy57RowioYUrw30MZyPpIpipL34Mr1fQqmsSeFX+T3Dcv+JaOORMnkLeID3vyTmVlSzfr7vcV\n\t+J8cN5JpPKK8HXzYLKXT/kSwHwdcl4hADsLYPy42UEjYJDVzs8g/WXvJUJCXzpoDWnLzUbZe3ik\n\txuhJzLH4DsiCe4b56SHoQT1DNAnyWR4OHvJtupPdj5tKXncWIOfCuRri1yqlXP7EWRSdEpI5pkV\n\tU2j9lTILsaY2KzR8zutVa7tzUsZLCc3sjlKjQf3Ke4pgQxc0u0/L/ny474rQ5WHe3i9OvrJ25Ni\n\ta9v3rm2GUijh+tDTinDe+klbXI4IaQcc1RgkNxIvue4cx4kXTlz9jdvGd0Q1e783CMD+bR/PqRe\n\tIGbYg==","X-Google-Smtp-Source":"AGHT+IFLraZPQtKgszeCWuUGzes16e4eLH4wOa5eVdiDfZ3PToDvhq7g88a35ykZ1cgfwk4zEwX2mw==","X-Received":"by 2002:a05:600c:354d:b0:46e:49fb:4776 with SMTP id\n\t5b1f17b1804b1-477c10d7003mr425799865e9.11.1764683171347; \n\tTue, 02 Dec 2025 05:46:11 -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 v6 13/24] libcamera: software_isp: debayer_cpu: Make\n\tgetInputConfig and getOutputConfig static","Date":"Tue,  2 Dec 2025 13:45:33 +0000","Message-ID":"<20251202134544.662446-14-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":"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 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":["v6","13/24"]}