From patchwork Fri Jul 24 17:48:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 8983 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 8A06EBD86F for ; Fri, 24 Jul 2020 17:48:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 16B796123B; Fri, 24 Jul 2020 19:48:42 +0200 (CEST) Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 721196039B for ; Fri, 24 Jul 2020 19:48:40 +0200 (CEST) X-Halon-ID: e641ab5b-cdd5-11ea-8fb8-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de [79.202.46.202]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id e641ab5b-cdd5-11ea-8fb8-005056917f90; Fri, 24 Jul 2020 19:48:39 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 19:48:24 +0200 Message-Id: <20200724174827.757493-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] cam: Add options to make batch testing with cam easier 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" Hi, As we lack a compliance tool that is easy to run on target I had the need to extant cam to be able to be run in a batch fashion to be able to test different stream configurations. The changes turn out to be small and I think they bring value to cam even if we later do add a compliance tool. Niklas Söderlund (3): cam: Add option to disallow adjusting of requested formats cam: capture: Cache the EventLoop handler cam: Add optional argument to --capture to specify how many frames to capture src/cam/capture.cpp | 25 ++++++++++++++++++++----- src/cam/capture.h | 7 +++++-- src/cam/main.cpp | 22 +++++++++++++++++++--- src/cam/main.h | 1 + 4 files changed, 45 insertions(+), 10 deletions(-)