From patchwork Sun Jun 21 00:23:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 27004 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 1F4DEC3302 for ; Sun, 21 Jun 2026 00:23:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9FC04656E9; Sun, 21 Jun 2026 02:23:08 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="cVDMmBox"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 72EE8656DE for ; Sun, 21 Jun 2026 02:23:07 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-70f3-e800--a06.rev.dnainternet.fi [IPv6:2001:14ba:70f3:e800::a06]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3F1D5B8B; Sun, 21 Jun 2026 02:22:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1782001350; bh=qyqRxiFVMccwLi3LX/X7+hDIUK0J469epfWtUO5n1mM=; h=From:To:Cc:Subject:Date:From; b=cVDMmBoxMwY/0uKOyp1QO85QAs7Soii6gMi10kL0CkizeBl3F6M2bIHeT6gT0d/BF h/eBDUTLi/FwguS/QDj/0W83UG75cvZCXvl8gwKI/A928NDG5nrt+bEDTb6+CaioPH eUNQYjs2Z1jJGfOwsTHmb5ozhbvifI4SzzzfMfOw= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham Subject: [PATCH 0/4] libcamera: vector: Add clamp() function Date: Sun, 21 Jun 2026 03:23:01 +0300 Message-ID: <20260621002305.3763752-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.0 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" Hello, This series is the result of me being nerd-sniped by Kieran's addition of a clamp() function to the Vector class. I thought we could possibly extend the apply() helper functions to support more than a single scalar. Here's the outcome. Kieran Bingham (1): libcamera: vector: Add clamp() member function Laurent Pinchart (3): libcamera: vector: Replace class with typename libcamera: vector: Swap order of arguments to apply() libcamera: vector: Support multiple scalar arguments to apply() include/libcamera/internal/vector.h | 73 ++++++++++++++++------------- src/libcamera/vector.cpp | 8 ++++ test/vector.cpp | 1 + 3 files changed, 49 insertions(+), 33 deletions(-) base-commit: bd266aa3405d3aea20b407b27e52482b02146030