From patchwork Mon Jan 28 00:41:03 2019 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: 421 Return-Path: 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 2C13460B2D for ; Mon, 28 Jan 2019 01:41:30 +0100 (CET) X-Halon-ID: 5edc5076-2295-11e9-911a-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id 5edc5076-2295-11e9-911a-0050569116f7; Mon, 28 Jan 2019 01:41:06 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 28 Jan 2019 01:41:03 +0100 Message-Id: <20190128004109.25860-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/6] cam: add --format option to configure a stream X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2019 00:41:30 -0000 Hi, This series aims to add a --format option to the cam utility so that it can set the format of a stream of a specified camera. To do this in an efficient manner a new key=value parser is needed to understand the arguments given to the new option, example cam --camera mycam --format width=800,height=600 This series adds such a parser and then moves on to adding the new operation to the cam utility in 6/6. This series depends on [1] for 6/6 which needs the stream API in the camera object to actually set the requested format. 1. [PATCH v3 0/6] libcamera: add basic support for streams and format configuration Niklas Söderlund (6): cam: options: move enum OptionArgument cam: options: create a template class for options cam: options: return if addOption() succeeds or not cam: options: remove OptionsParser::options_ cam: options: add a key=value parser cam: add --format option to configure a stream src/cam/main.cpp | 107 ++++++++++++++++++++++---- src/cam/options.cpp | 178 +++++++++++++++++++++++++++++++++++++++----- src/cam/options.h | 70 +++++++++++++---- 3 files changed, 305 insertions(+), 50 deletions(-) Acked-by: Kieran Bingham