From patchwork Mon Apr 26 00:12:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12103 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 34366BDC92 for ; Mon, 26 Apr 2021 00:12:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5C4446887E; Mon, 26 Apr 2021 02:12:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="R6P88VmB"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A578E602D1 for ; Mon, 26 Apr 2021 02:12:32 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0A6D4E9; Mon, 26 Apr 2021 02:12:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1619395952; bh=R6Zn/FYXrsk/cDWHdMuvUE1M05gbipI5mB/QU9IUDcI=; h=From:To:Cc:Subject:Date:From; b=R6P88VmBtAPr9/Hkn4kRBrSE9TiZZztoONJk0Ll3l2TOXA131PEjn4sOSzTkem5iK ZDTbwi4tMKQtM48Ee3myd09xDLpM5GxdWtJaobyzV6RVylvnYUErfTNHQzniVvQ00k d6oYzY1l+GD2IOqO0Qh49us2HnIxAIr3iLNCckNM= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 26 Apr 2021 03:12:17 +0300 Message-Id: <20210426001220.15599-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 0/3] libcamera: V4L2Device: VLA removal 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 patch series is a part of the v5 of V4L2 device control improvements posted by Hiro. I've split the VLA removal from the rest of the series, in order to merge those fixes while continue the discussion on the rest of the rework. Patch 1/3 has seen the most extensive rework, as it was very intertwined with 1/4 and 2/4 of v5. Patches 2/3 and 3/3 have just been rebased. Hiro, could you please have a look ? If everything is fine to you I'll merge the series. We can then discuss the rest of the changes rebased on top. Hirokazu Honda (3): libcamera: V4L2Device: Replace VLA with std::vector in getControls() libcamera: V4L2Device: Replace VLA with std::vector in setControls() libcamera: V4L2Device: Use Span in updateControls() include/libcamera/internal/v4l2_device.h | 4 +- src/libcamera/v4l2_device.cpp | 73 +++++++++++------------- 2 files changed, 36 insertions(+), 41 deletions(-) Tested-by: Jacopo Mondi