{"id":25668,"url":"https://patchwork.libcamera.org/api/patches/25668/?format=json","web_url":"https://patchwork.libcamera.org/patch/25668/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20260106170059.56193-17-bryan.odonoghue@linaro.org>","date":"2026-01-06T17:00:51","name":"[v11,16/24] libcamera: software_isp: debayer_cpu: Make getInputConfig and getOutputConfig static","commit_ref":"6a478459f3e41ce36dc36a71937a87183dc81656","pull_url":null,"state":"accepted","archived":false,"hash":"4332d9c2287e66c06675e1d2dd88742998b215e1","submitter":{"id":175,"url":"https://patchwork.libcamera.org/api/people/175/?format=json","name":"Bryan O'Donoghue","email":"bryan.odonoghue@linaro.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/25668/mbox/","series":[{"id":5689,"url":"https://patchwork.libcamera.org/api/series/5689/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5689","date":"2026-01-06T17:00:35","name":"Add GLES 2.0 GPUISP to libcamera","version":10,"mbox":"https://patchwork.libcamera.org/series/5689/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/25668/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/25668/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 4B1AABDCC0\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  6 Jan 2026 17:01:26 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 055B962013;\n\tTue,  6 Jan 2026 18:01:26 +0100 (CET)","from mail-wr1-x436.google.com (mail-wr1-x436.google.com\n\t[IPv6:2a00:1450:4864:20::436])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E64E762013\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  6 Jan 2026 18:01:23 +0100 (CET)","by mail-wr1-x436.google.com with SMTP id\n\tffacd0b85a97d-42fbad1fa90so973526f8f.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 06 Jan 2026 09:01:23 -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\tffacd0b85a97d-432bd0dadcfsm5515322f8f.3.2026.01.06.09.01.22\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 06 Jan 2026 09:01:22 -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=\"sB4nMzNA\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1767718883; x=1768323683;\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=sB4nMzNAeDLfxT/7bOjvIVdLUWyad+hI2PeUQXzCzm9uLwhVNpuffVezei0IH021tE\n\txxrUfY4r2toyQvJ7I5g14fjOui9BN2aecmmEcVRKfgXdl9JweSxylA/tKUFJBd/chEGw\n\tYMzsiNxGqbNeGgRcByPo6Zn6RW6YFrwu07D9nEg/+2L20hA6ITJE9qfgM4m7159dX4Hc\n\tfbs33LRNnmDVsS5TjTiKTsMeVhTNTh71gr8/A4u2e9UG7rXgz4I7+X2K9gPw6AhEd+99\n\tKt6C/jAZH04PZT0ijVJZbzOVyvswV1OkWnh2gwI/K2nhOShPiUi94y/XXKBNhTxrilzX\n\tne5g==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1767718883; x=1768323683;\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=tE1M0Z5O4+Ucw6Ngt8yxkviVWZS/+M5TRtVvE2UZ9j9n4b+nd72LMZS0XYU/tZPOrq\n\tguJR5sjPZsbUzaoJBsLuZdMb6691QiOk30Fl0b70PAXFQO+h/S+x2HmwZdaX5ycV2fqf\n\tgEI3h6vXIhmqtjmbCh75idDzs+sMomJm6qCbNLs2u0Y4uwgB4cCuwjSEBH1+Gdafvc37\n\tBijDOjJXu6o3W2j9pQCs3VluRi2wvrLs6TElLFGMmMwNeRjUog7j8yQbmy5Ss5uSnyp2\n\t/nbWvUMcEc5FTJaAYGo3+vYFCEbP6yuE7S4ej5kYIcrktFj8afvVZGScrfcrdY8Ufm3q\n\tphdQ==","X-Gm-Message-State":"AOJu0Yz8hafGHuUcNhQSsgz0qR26LfZ5SbBPNXDx8Xk/8BX6eorl5hOg\n\tQBmk4g3uTznzeQeTEhFey8K+fRQkAaxZziYaDwbWgO2sWLAknRzVXOW0QcmG3DU6lQLN4608jZc\n\ttoB0p7Fw=","X-Gm-Gg":"AY/fxX7Mi3jakGkXNwH9fiwPVpTknGtjjNI6ZqT5hDywXnM+b6CqX5Vs2HBko2LXkdi\n\tP92/iZ011HDN8Hs75HoQvHysd+SqSfvqaFaZvYYUWMP1TrqmlPwQxuf4Hi3u33Xz/cV/mKzZBpJ\n\t/N1ZqlYXR9Lin3Vl6vIphTqeLyWzegA4Jkr4/SwnPYDqtkw34bWA+rq/LuL016HX1M0FsZalTXy\n\t92lcB/tHVjccgddsO6q1jWyY1KTqfUZ0y6dWANSApzU3sFzJgIsddw7qfGGRJ339qmYy2KloatR\n\tfJafG04LtUULEYQIvgLvzWKcS6F8KEbQmMOhl9pFj1qkW9aF184ImWy81zR5Ji6vYQzvPSJEwWo\n\tzVnZ1/zgn5tcQgTjFtnDaLnUANRFjt1aqgCIvWnLdkIpEb/Wsw4+1DuWxl7D+9xxtetd1AjTHWB\n\t7GsTa+GFdKEHmuudwvhaoZ38Zp/VYzEakkx4zbkWImndhzlkjkYtsrSU4G1fR6zqTP+Mo=","X-Google-Smtp-Source":"AGHT+IGRqjz2VW5/U6E4U01qlwSqVp5kzylBAmebYkRcGvT3M2SzqvZMyd7qoVUCJNnfe0lSFzZxew==","X-Received":"by 2002:a05:6000:22c7:b0:432:586f:2ab2 with SMTP id\n\tffacd0b85a97d-432bc9ccc24mr4398820f8f.4.1767718882931; \n\tTue, 06 Jan 2026 09:01:22 -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 v11 16/24] libcamera: software_isp: debayer_cpu: Make\n\tgetInputConfig and getOutputConfig static","Date":"Tue,  6 Jan 2026 17:00:51 +0000","Message-ID":"<20260106170059.56193-17-bryan.odonoghue@linaro.org>","X-Mailer":"git-send-email 2.52.0","In-Reply-To":"<20260106170059.56193-1-bryan.odonoghue@linaro.org>","References":"<20260106170059.56193-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":["v11","16/24"]}