From patchwork Fri Jan 25 21:21:52 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: 394 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 468D260C65 for ; Fri, 25 Jan 2019 22:22:13 +0100 (CET) X-Halon-ID: 3b681174-20e7-11e9-9adf-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 3b681174-20e7-11e9-9adf-005056917a89; Fri, 25 Jan 2019 22:22:06 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 25 Jan 2019 22:21:52 +0100 Message-Id: <20190125212154.26950-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 0/2] cam: make the --format option take arguments 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, 25 Jan 2019 21:22:13 -0000 Hi, This is a RFC to how the cam tool could be extended to take a list of key=value pairs to specify how to configure a camera before starting a capture. This series depends on [1]. Let me know what you all think and if this is a good path to take for how to handle format descriptions for the tool. The format is inspired from v4l2-ctl, I though a familiar format would be good when bringing in a new tool :-) If this series gets out of RFC before [1] is merged, or if all but the cam tool patch (7/7) from [1] is merged this series 2/2 should be merged with that patch. 1. [PATCH v2 0/7] libcamera: add basic support for Streams and format configuration Niklas Söderlund (2): cam: options: add parser for suboptions cam: make the --format option take arguments src/cam/main.cpp | 71 ++++++++++++++++++++++++++++++++++++++++----- src/cam/options.cpp | 68 +++++++++++++++++++++++++++++++++++++++++++ src/cam/options.h | 24 +++++++++++++++ 3 files changed, 155 insertions(+), 8 deletions(-)