From patchwork Fri Apr 24 01:16:53 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: 3508 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 DABA3603F9 for ; Fri, 24 Apr 2020 03:17:05 +0200 (CEST) X-Halon-ID: 443df9b6-85c9-11ea-aeed-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 443df9b6-85c9-11ea-aeed-005056917f90; Fri, 24 Apr 2020 03:16:54 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Apr 2020 03:16:53 +0200 Message-Id: <20200424011656.2889720-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] {cam, qcam}: Unify stream option parsing 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: , X-List-Received-Date: Fri, 24 Apr 2020 01:17:06 -0000 Hi, Prepare for allowing multiple streams in qcam by unifying the cam and qcam command line options parsing for stream options. With this RAW capture support can be added to qcam without first redesigning the whole GUI to allow for individual stream configuration. Also having the same options for cam and qcam to configure streams is a good idea. As this series reveals some features where enabled in cam but not in qcam. Niklas Söderlund (3): cam: Add helper class to parse stream configuration cam: Make use of StreamOptionsParser qcam: Make use of StreamOptionsParser src/cam/main.cpp | 77 +++--------------------- src/cam/meson.build | 1 + src/cam/stream_options.cpp | 116 +++++++++++++++++++++++++++++++++++++ src/cam/stream_options.h | 63 ++++++++++++++++++++ src/qcam/main.cpp | 19 ++---- src/qcam/main_window.cpp | 34 +++++------ src/qcam/main_window.h | 8 +-- src/qcam/meson.build | 1 + 8 files changed, 214 insertions(+), 105 deletions(-) create mode 100644 src/cam/stream_options.cpp create mode 100644 src/cam/stream_options.h