From patchwork Mon Jul 27 11:08:52 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: 27510 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 D5147BDE4C for ; Mon, 27 Jul 2026 11:08:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E063A67F5D; Mon, 27 Jul 2026 13:08:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MW8H3d0v"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C6FCC67EB2 for ; Mon, 27 Jul 2026 13:08:55 +0200 (CEST) Received: from pb-laptop.local (185.182.215.156.nat.pool.zt.hu [185.182.215.156]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 022DB492 for ; Mon, 27 Jul 2026 13:07:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1785150472; bh=rPlKAlZtK2s47JOThovOHeALziEXJTJD5wNfalNeZZE=; h=From:To:Subject:Date:From; b=MW8H3d0vpW0NZxrLgM3jfzb9S+Zuq5devFBB9Onl2b/RUrc0hz1o/SW5duIEksgGv hAuY2jK2b3J6+6KdlPSLwE66EU0pn5cQvS70QbKRlyYw4VlR8ZVwA9rIMFIdWJOk4e TBNtDE4el3n0pl5/9YDdVxHdy0qXhx7R1ZY+kF7Q= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1] libcamera: v4l2_videodevice: Use `VIDEO_MAX_PLANES` Date: Mon, 27 Jul 2026 13:08:52 +0200 Message-ID: <20260727110852.260904-1-barnabas.pocze@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" The `V4L2DeviceFormat` type is directly initialized from `v4l2_pix_format_mplane` in `V4L2VideoDevice::getFormatMultiplane()`. That type can store a maxumim of 8 planes. So adjust the number of planes that `V4L2DeviceFormat` supports to match the V4L2 limit. Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham --- include/libcamera/internal/v4l2_videodevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h index 10367e4e17..f63d74879f 100644 --- a/include/libcamera/internal/v4l2_videodevice.h +++ b/include/libcamera/internal/v4l2_videodevice.h @@ -176,7 +176,7 @@ public: Size size; std::optional colorSpace; - std::array planes; + std::array planes; unsigned int planesCount = 0; std::string toString() const;