From patchwork Thu May 23 00:55:32 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: 1266 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 60DBC60BFA for ; Thu, 23 May 2019 02:55:45 +0200 (CEST) X-Halon-ID: 79e74c6e-7cf5-11e9-8d05-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 79e74c6e-7cf5-11e9-8d05-005056917f90; Thu, 23 May 2019 02:55:43 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 23 May 2019 02:55:32 +0200 Message-Id: <20190523005534.9631-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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: Thu, 23 May 2019 00:55:45 -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 | 244 +++++++++++++++++++++++++++ src/cam/capture.h | 42 +++++ src/cam/main.cpp | 391 ++++++++++++-------------------------------- src/cam/main.h | 19 +++ src/cam/meson.build | 1 + 5 files changed, 414 insertions(+), 283 deletions(-) create mode 100644 src/cam/capture.cpp create mode 100644 src/cam/capture.h create mode 100644 src/cam/main.h