From patchwork Thu Jan 31 23:47:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 460 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3B74960DB4 for ; Fri, 1 Feb 2019 00:47:34 +0100 (CET) Received: from pendragon.ideasonboard.com (85-76-34-136-nat.elisa-mobile.fi [85.76.34.136]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AC04F41; Fri, 1 Feb 2019 00:47:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1548978452; bh=OtNure1HitndVwIN4aiwAzyf0HbMU3G4Jio0didd9+g=; h=From:To:Cc:Subject:Date:From; b=Xgpe5qVBa693FsavAlUtB0E8IrtXgelxX4Hfe4Kn/f9E9fRCiKvv2PBeJTjs4KPVH DHIeGkbSP32Xxbnh8eIrjWM6ZYaiuBYFt4fD2TKSAwHa2zvpHzNTFWFQ4tBbYdEmTq Da19QxXtRb0idMvP3fW6rBmD+swwT8LIhEQ6st6k= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Fri, 1 Feb 2019 01:47:13 +0200 Message-Id: <20190131234721.22606-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/8] cam: add --format option to configure a stream 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, 31 Jan 2019 23:47:34 -0000 Hello, This series is a rework of Niklas' previous series of the same name. It adds a new key=value parser and integrates it in the cam utility OptionsParser, and extend the cam utility to set stream format. Compared to v1 the options parser has been extended with a variant OptionValue type that integrates with the new key=value parser. Please see individual patches for details. The series depends on [1] for 6/6 which needs the stream API in the camera object to actually set the requested format. [1] [PATCH v3 0/6] libcamera: add basic support for streams and format configuration Laurent Pinchart (3): cam: options: Move struct Option cam: options: Store options in a list instead of a vector cam: options: Add option type handling to options parser Niklas Söderlund (5): cam: options: Move enum OptionArgument cam: options: Create a template class for options cam: options: Return whether addOption() succeeds or not cam: options: Add a key=value parser cam: Add --format option to configure a stream src/cam/main.cpp | 114 +++++++++++--- src/cam/options.cpp | 354 ++++++++++++++++++++++++++++++++++++++++---- src/cam/options.h | 121 +++++++++++---- 3 files changed, 517 insertions(+), 72 deletions(-)