From patchwork Thu Apr 22 02:18:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 12054 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 87DBCBDB15 for ; Thu, 22 Apr 2021 02:18:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 03E1F6884A; Thu, 22 Apr 2021 04:18:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="aI+f7rPJ"; dkim-atps=neutral Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1A5DF68840 for ; Thu, 22 Apr 2021 04:18:16 +0200 (CEST) Received: by mail-pj1-x1033.google.com with SMTP id u11so16829625pjr.0 for ; Wed, 21 Apr 2021 19:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fdb+RLfc8Hib97AxE3MD9MWCd2zMPLdA+tufjqT8Ab4=; b=aI+f7rPJUHpGAetbzQclGLk2CJTKtcLTiMGjOzqwXfztpaznis6CbqgON7EUnAQ5Kj bPYIhw3DOWLq+aXPRJipJ07/Mb7fR5ySw4PP3jBiIbF+PiGmwc+1VyLX3LrXitizL+MJ tp+hwU1UWUXT/NDX5zn0YCRqqv54ORNj4Rr7o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fdb+RLfc8Hib97AxE3MD9MWCd2zMPLdA+tufjqT8Ab4=; b=NK2DMOf7yl/D01uFkjwdV1LiHkz7HnzMA+RvUQpHa6AF/QIceXTp9MfK4PmIj1lk+W B6bfIbxht5YOeKzLcr2xXw+HON04Ch+5/zr2GWGL4gFm8azHjmqdxsWfidFSiHOUztpE X43g+U/cIbRJSHSF+alU0hAYO52RkEUYChWZmpuqwXC1zM97rFgMN3FL1zbvM0UUHNey TwsXGPCAHzCncwbth3yW+2kcJ2kCt8LsLyLBzYY2bLNUTb3dSu8lNcCjoenju9qbU84q NIrDszlDU2j+5aiDx2bPBDKpdT52KnZX+q2UbbFbMCzV1J1xdwbXInD8qj773KDRoABZ q3Vg== X-Gm-Message-State: AOAM533mhk7bsOTfHEcMgcFo0QL42eoX9uqY0kR+MJ0VmM9bVlqZyqRl KOxzCNzAAn0DTzcADkaNDkx0PPg46jCshQ== X-Google-Smtp-Source: ABdhPJwJ+/lc86/tw9WcIwdnJl4BOexpDAQ4VOIM5qw1xrGm9XzrLMP8OpTBPyKniapVf6IByECt0g== X-Received: by 2002:a17:90a:8b97:: with SMTP id z23mr1338704pjn.65.1619057894345; Wed, 21 Apr 2021 19:18:14 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:2:f88:d5a0:ebc4:5b76]) by smtp.gmail.com with ESMTPSA id lt11sm3352480pjb.23.2021.04.21.19.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 19:18:13 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Thu, 22 Apr 2021 11:18:05 +0900 Message-Id: <20210422021809.520675-1-hiroh@chromium.org> X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 0/4] Clean up V4L2Device code 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" This basically cleans up V4L2Device code related to controls, getControls(), setControls() and updateControls(). Hirokazu Honda (4): libcamera: V4L2Device: Remove the controls order assumption in updateControls() libcamera: V4L2Device: Use std::vector for v4l2_ext_control in getControls() libcamera: V4L2Device: Use std::vector for v4l2_ext_control in setControls() libcamera: V4L2Device: Use Span in updateControls() include/libcamera/internal/v4l2_device.h | 4 +- src/libcamera/v4l2_device.cpp | 105 ++++++++++------------- 2 files changed, 47 insertions(+), 62 deletions(-) --- 2.31.1.368.gbe11c130af-goog