From patchwork Mon Sep 14 12:38:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 28241 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 C4F18BDCB7 for ; Mon, 14 Sep 2026 12:38:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 99ECC68692; Mon, 14 Sep 2026 14:38:36 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="VwAqAI8q"; 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 B920568670 for ; Mon, 14 Sep 2026 14:38:34 +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 95AAA1F8; Mon, 14 Sep 2026 14:36:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1789389414; bh=emuypEpknDLpfCLwc2twc4/WJ94YhrnKLb1vqZyMdzw=; h=From:To:Cc:Subject:Date:From; b=VwAqAI8qcboPRJnkR0GtpznK+9UISafuWxn45BJxjLYy/c1PY3M4tczLRdbGMc5Wm Q6SBbJ1hLfZ7pcJLUoeudmszEnUah6dqQWhFGxVTi2x8qSL0+IbT1z8sfPXLQW5Q8E T8EE4eRjRSdR4rDREonHuRNVj4KykmwHg3zEgAHo= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Robert Mader Subject: [PATCH v3 0/2] libcamera: Add and use Matrix::transpose() Date: Mon, 14 Sep 2026 15:38:31 +0300 Message-ID: <20260914123833.2724712-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.55.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, A change to the software ISP recently introduce hand-coded matrix transposition. This is a feature that belongs to the Matrix class. This small series adds a new Matrix::transpose() function and uses it in the software ISP. The Matrix implementation has been tested using a unit test, the software ISP code has been compile-tested only. Laurent Pinchart (2): libcamera: matrix: Add a transpose() function libcamera: software_isp: debayer_egl: Use Matrix::transpose() include/libcamera/internal/matrix.h | 19 +++++++++++++++++++ src/libcamera/matrix.cpp | 20 +++++++++++++++++++- src/libcamera/software_isp/debayer_egl.cpp | 19 ++++--------------- test/matrix.cpp | 9 +++++++++ 4 files changed, 51 insertions(+), 16 deletions(-) base-commit: 87c7285663aaad7608fdc18d5216ec6811c685c7