{"id":421,"url":"https://patchwork.libcamera.org/api/1.1/covers/421/?format=json","web_url":"https://patchwork.libcamera.org/cover/421/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190128004109.25860-1-niklas.soderlund@ragnatech.se>","date":"2019-01-28T00:41:03","name":"[libcamera-devel,0/6] cam: add --format option to configure a stream","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/1.1/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/421/mbox/","series":[{"id":149,"url":"https://patchwork.libcamera.org/api/1.1/series/149/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=149","date":"2019-01-28T00:41:03","name":"cam: add --format option to configure a stream","version":1,"mbox":"https://patchwork.libcamera.org/series/149/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/421/comments/","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2C13460B2D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 28 Jan 2019 01:41:30 +0100 (CET)","from bismarck.berto.se (unknown [89.233.230.99])\n\tby bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid 5edc5076-2295-11e9-911a-0050569116f7;\n\tMon, 28 Jan 2019 01:41:06 +0100 (CET)"],"X-Halon-ID":"5edc5076-2295-11e9-911a-0050569116f7","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 28 Jan 2019 01:41:03 +0100","Message-Id":"<20190128004109.25860-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.20.1","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/6] cam: add --format option to configure\n\ta stream","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Mon, 28 Jan 2019 00:41:30 -0000"},"content":"Hi,\n\nThis series aims to add a --format option to the cam utility so that it \ncan set the format of a stream of a specified camera. To do this in an \nefficient manner a new key=value parser is needed to understand the \narguments given to the new option, example\n\n    cam --camera mycam --format width=800,height=600\n\nThis series adds such a parser and then moves on to adding the new \noperation to the cam utility in 6/6. This series depends on [1] for 6/6 \nwhich needs the stream API in the camera object to actually set the \nrequested format.\n\n1. [PATCH v3 0/6] libcamera: add basic support for streams and format \n   configuration\n\nNiklas Söderlund (6):\n  cam: options: move enum OptionArgument\n  cam: options: create a template class for options\n  cam: options: return if addOption() succeeds or not\n  cam: options: remove OptionsParser::options_\n  cam: options: add a key=value parser\n  cam: add --format option to configure a stream\n\n src/cam/main.cpp    | 107 ++++++++++++++++++++++----\n src/cam/options.cpp | 178 +++++++++++++++++++++++++++++++++++++++-----\n src/cam/options.h   |  70 +++++++++++++----\n 3 files changed, 305 insertions(+), 50 deletions(-)"}