From patchwork Fri Jul 24 13:43:17 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: 8964 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 26E6EBD86F for ; Fri, 24 Jul 2020 13:43:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 687A361220; Fri, 24 Jul 2020 15:43:31 +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 1654E60535 for ; Fri, 24 Jul 2020 15:43:30 +0200 (CEST) X-Halon-ID: a65443da-cdb3-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 a65443da-cdb3-11ea-8fb8-005056917f90; Fri, 24 Jul 2020 15:43:28 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 15:43:17 +0200 Message-Id: <20200724134320.637696-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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 option to exit capture loop after n frames src/cam/capture.cpp | 25 ++++++++++++++++++++----- src/cam/capture.h | 7 +++++-- src/cam/main.cpp | 19 ++++++++++++++++++- src/cam/main.h | 2 ++ 4 files changed, 45 insertions(+), 8 deletions(-)