From patchwork Thu May 23 15:13:04 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: 1273 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 309E960B1B for ; Thu, 23 May 2019 17:13:48 +0200 (CEST) X-Halon-ID: 4551a068-7d6d-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 4551a068-7d6d-11e9-8d05-005056917f90; Thu, 23 May 2019 17:13:13 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 23 May 2019 17:13:04 +0200 Message-Id: <20190523151306.22007-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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 15:13:48 -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 | 249 +++++++++++++++++++++++++++ src/cam/capture.h | 43 +++++ src/cam/main.cpp | 408 +++++++++++++------------------------------- src/cam/main.h | 19 +++ src/cam/meson.build | 1 + 5 files changed, 435 insertions(+), 285 deletions(-) create mode 100644 src/cam/capture.cpp create mode 100644 src/cam/capture.h create mode 100644 src/cam/main.h