From patchwork Fri Jul 24 19:18:48 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: 8987 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 E52BFBD86F for ; Fri, 24 Jul 2020 19:19:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 39B506123B; Fri, 24 Jul 2020 21:19:18 +0200 (CEST) Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 826E46039B for ; Fri, 24 Jul 2020 21:19:16 +0200 (CEST) X-Halon-ID: 62d508bb-cde2-11ea-86ee-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de [79.202.46.202]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id 62d508bb-cde2-11ea-86ee-0050569116f7; Fri, 24 Jul 2020 21:18:06 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 21:18:48 +0200 Message-Id: <20200724191851.803350-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 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 | 29 ++++++++++++++++++++++------- src/cam/capture.h | 12 ++++++++---- src/cam/main.cpp | 26 +++++++++++++++++++++----- src/cam/main.h | 1 + 4 files changed, 52 insertions(+), 16 deletions(-)