Message ID | 20251015012251.17508-37-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers | show
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 [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 24D78C3335 for <parsemail@patchwork.libcamera.org>; Wed, 15 Oct 2025 01:23:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BC0EB60674; Wed, 15 Oct 2025 03:23:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="fkqad5xC"; dkim-atps=neutral Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 377036065E for <libcamera-devel@lists.libcamera.org>; Wed, 15 Oct 2025 03:23:32 +0200 (CEST) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-b40f11a1027so1073948866b.2 for <libcamera-devel@lists.libcamera.org>; Tue, 14 Oct 2025 18:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760491411; x=1761096211; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SHxYNwZ2SuJenQQzjJu+qFVpF7ezbdEtz2sX66kqCZc=; b=fkqad5xC8m+Cl2ByzVYRa6PIbQZLhrTukdY5h9v4BoqHfnH350X1w4UBpTuShzFDkZ 38xwxP897ww71ANLXI40slyMUl5e14dcJD8pub0pWzHcEJaO77T7rHI0ZRQlPb14DaRY 1s6Pot6fEtc/HoJjwop5EV8Hj7H2hW6Y/zGG0Xc9jpMo2Sxi9SseGeI7dW3IYo6Yve1A dsrwLLib7/TNRkm840HJjQSisWT8q5+j0duR7irZ41R7ignSp0/NB6vdbzAjA6O6G0xx 163Ykc6SkLQhHoJh1ZHXZJPZlb9CLPq/9XZ6pCKMthArMGFqMb5wjRbW+FjnSlRYbZHG QgtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760491411; x=1761096211; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SHxYNwZ2SuJenQQzjJu+qFVpF7ezbdEtz2sX66kqCZc=; b=jL/f7bpHnyVqkrVX5QwznheLooH/4utdaRfxxHl6IHwIw125t0RdG8fTYwu3aj7L5E c62IEwT5HtRTo2g4sdBtNXYIHjUdQ+2IlJxGBjF2cTOC7VuzkmUi/39Ugaoo1jp4wLJm GgbDaRw9buIJPICsgI9w2gkKXvzdJd4sDoeWwqz4Rhot9FDPdxQ2sc5VCrw3l2pQzI2X mcGaKRmtCviHUrDNywVHZij/uhG/TU2IWfj4ueOROVh5VUHKc9I5BqI9RWw488GPV2Y5 ksw4siY4CzM/kiSF1dfdo1S8s8Q54XlnEoTjzHZI0cGDUyd/DAFrUYA7n00T9L8kJctA Vp9Q== X-Gm-Message-State: AOJu0YxaIIOoysZSKnFZAjg7/wE00I9786tluCrAYVf7Uf3UbFlxGGCi RCQYIB8ypTWQgn9o4bQPvw1t9N/4w1YDX0Aja07TCJlgmSJViNZxl8GY6vCTHlh7+jhzvjqt3eb cxzcS X-Gm-Gg: ASbGncsvBhMeTWPBus9fQS09WwM5dpwAY2WbzpMCVBZ4b2C2lwKDW6EPOM5ZonCp2gI Nv79YXHLfkRe6ykPsoXYZ+FtGFH+5P/iKdy1Npx6DE2Cjy0H8D9FrmzBIpgNZEZODqlX7Z9pkat dUn3dXSCGHy8x1G6MCHe6RwBOiynTRteHZu0pZBQmRF+PHzEmpMknPaYCjw9bDWHPgrOp8bdQdq NRCIJgHz7yaCcIdkE6ef0qNeVHV+QqXY6113lmmCi1WfPEYup666unqoUVkeNWpI8G1p38RS8M8 TsxPJp35KcHbCA/D7wUaRk61CqH0H+YJU8607ZLSb2tM1tp0I7hhHUPQUbfQ9BEUTvd+Y1QLkwj cXFETJ0qk59QAOvf8SXNYBQXVYqkdr0ZVXTDInvU4kYb9Bsc0fSVcdApL7Mou6gg+BE0bea7y39 uObCoE7pW+ZMdnIrox8IImc2CbFmaEqA== X-Google-Smtp-Source: AGHT+IGJfmhdfQEhgLU1OY5TEEzCtyvhMs2+JGdJAc+VfqH52sUXeBqZIsBWkphcNFd+oLtGs2mIdQ== X-Received: by 2002:a17:906:c149:b0:b45:60ad:daf1 with SMTP id a640c23a62f3a-b50aa8a92e3mr2597436466b.22.1760491411537; Tue, 14 Oct 2025 18:23:31 -0700 (PDT) Received: from inspiron14p-linux.nxsw.local (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b5ccd7b202dsm98348466b.82.2025.10.14.18.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 18:23:31 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: libcamera-devel@lists.libcamera.org Cc: hdegoede@redhat.com, mzamazal@redhat.com, bryan.odonoghue@linaro.org, bod.linux@nxsw.ie Subject: [PATCH v3 36/39] libcamera: software_isp: debayer_cpu: Make getInputConfig and getOutputConfig static Date: Wed, 15 Oct 2025 02:22:48 +0100 Message-ID: <20251015012251.17508-37-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251015012251.17508-1-bryan.odonoghue@linaro.org> References: <20251015012251.17508-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>, <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>, <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> |
Series |
|
Related |
show
|
diff --git a/src/libcamera/software_isp/debayer_cpu.h b/src/libcamera/software_isp/debayer_cpu.h index 3cc07028..3bf34ac3 100644 --- a/src/libcamera/software_isp/debayer_cpu.h +++ b/src/libcamera/software_isp/debayer_cpu.h @@ -104,8 +104,8 @@ private: template<bool addAlphaByte, bool ccmEnabled> void debayer10P_RGRG_BGR888(uint8_t *dst, const uint8_t *src[]); - int getInputConfig(PixelFormat inputFormat, DebayerInputConfig &config); - int getOutputConfig(PixelFormat outputFormat, DebayerOutputConfig &config); + static int getInputConfig(PixelFormat inputFormat, DebayerInputConfig &config); + static int getOutputConfig(PixelFormat outputFormat, DebayerOutputConfig &config); int setupStandardBayerOrder(BayerFormat::Order order); int setDebayerFunctions(PixelFormat inputFormat, PixelFormat outputFormat,
Make getInputConfig and getOutputConfig static so as to allow for interrogation of the supported pixel formats prior to object instantiation. Do this so as to allow the higher level logic make an informed choice between CPU and GPU ISP based on which pixel formats are supported. Curretnly CPU ISP supports more diverse input and output schemes. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- src/libcamera/software_isp/debayer_cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)