From patchwork Fri Mar 22 01:53:45 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: 778 Return-Path: Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4921D610B3 for ; Fri, 22 Mar 2019 02:54:07 +0100 (CET) X-Halon-ID: 5bf883a8-4c45-11e9-985a-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 5bf883a8-4c45-11e9-985a-005056917f90; Fri, 22 Mar 2019 02:54:04 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 22 Mar 2019 02:53:45 +0100 Message-Id: <20190322015349.14934-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 0/4] cam: Extend to support configuration of multiple streams 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: Fri, 22 Mar 2019 01:54:07 -0000 Hi, This RFC series is mainly focused on the extension of the option parser in patch 1/4 to 3/4. The last patch 4/4 is an example of its usage which takes a small step for the cam utility to allow handling more then one stream. I do not expect to be able to merge 4/4 before it's adapted to proper handle full support for multiple streams. But for this to work the option parser needs to be extend, something which could be merged independently. Niklas Söderlund (4): cam: options: Create own enum for OptionValue types cam: options: Add an array data type to OptionValue cam: options: Add parsing of multiple instances of the same option cam: Allow specifying configuration for more then one stream src/cam/main.cpp | 39 ++++++++++++++++++++++++++---------- src/cam/options.cpp | 49 ++++++++++++++++++++++++++++++++------------- src/cam/options.h | 22 ++++++++++++++++---- 3 files changed, 81 insertions(+), 29 deletions(-)