From patchwork Fri May 24 08:23:31 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: 1282 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 5BD0660BFA for ; Fri, 24 May 2019 10:24:35 +0200 (CEST) X-Halon-ID: 3891586d-7dfd-11e9-8ab4-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 3891586d-7dfd-11e9-8ab4-005056917a89; Fri, 24 May 2019 10:24:32 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 24 May 2019 10:23:31 +0200 Message-Id: <20190524082333.8974-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/2] cam: cleanup code structure 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, 24 May 2019 08:24:35 -0000 Hi, Before adding new features to the cam utility there is a need to clean up some of the organic growth that has happened. This series breaks out the capture logic to a new class and reduces the mess in main.cpp. Niklas Söderlund (2): cam: capture: Break out capture to a new class cam: Add CamApp class src/cam/capture.cpp | 248 +++++++++++++++++++++++++++ src/cam/capture.h | 42 +++++ src/cam/main.cpp | 408 ++++++++++++++------------------------------ src/cam/main.h | 19 +++ src/cam/meson.build | 1 + 5 files changed, 437 insertions(+), 281 deletions(-) create mode 100644 src/cam/capture.cpp create mode 100644 src/cam/capture.h create mode 100644 src/cam/main.h