From patchwork Fri Sep 18 12:09:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 28345 Return-Path: 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 5A188C335A for ; Fri, 18 Sep 2026 12:10:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 19F726873B; Fri, 18 Sep 2026 14:10:05 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="vI/ODVL5"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D6C0768733 for ; Fri, 18 Sep 2026 14:09:54 +0200 (CEST) Received: from pb-laptop.local (185.221.142.0.nat.pool.zt.hu [185.221.142.0]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F22C9417F for ; Fri, 18 Sep 2026 14:08:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1789733292; bh=gCL7eMEjHqHjLFJax2SSSjKTr/3LgstFrs4hSohG0aA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vI/ODVL5OniOgf9WCevA2bXXu6NNiWgaqe5B5pFLrKUcVfSGFYL/YDBIEn6dkn+YX LtvUJnYgohOK/xE6wbwAzZBgYY7hEms8Pu2RSprAWLUV2XS1MzFFC189Lhrqqd+YDM X4fn2ji7NOn3e4CJzdW0ok1M5s2fyE3bSNwCfbyg= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v3 07/21] ipa: libipa: gamma: Static assert lookup node count Date: Fri, 18 Sep 2026 14:09:35 +0200 Message-ID: <20260918120949.191668-8-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260918120949.191668-1-barnabas.pocze@ideasonboard.com> References: <20260918120949.191668-1-barnabas.pocze@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Require at least 2, which is reasonable. Signed-off-by: Barnabás Pőcze --- src/ipa/libipa/gamma.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipa/libipa/gamma.h b/src/ipa/libipa/gamma.h index 9954f94ba2..e5ac3f96f5 100644 --- a/src/ipa/libipa/gamma.h +++ b/src/ipa/libipa/gamma.h @@ -63,6 +63,8 @@ protected: template class GammaAlgorithm : public GammaAlgorithmBase { + static_assert(NLutNodes >= 2); + public: GammaAlgorithm() : GammaAlgorithmBase(NLutNodes)