{"id":8964,"url":"https://patchwork.libcamera.org/api/covers/8964/?format=json","web_url":"https://patchwork.libcamera.org/cover/8964/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20200724134320.637696-1-niklas.soderlund@ragnatech.se>","date":"2020-07-24T13:43:17","name":"[libcamera-devel,0/3] cam: Add options to make batch testing with cam easier","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/8964/mbox/","series":[{"id":1136,"url":"https://patchwork.libcamera.org/api/series/1136/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1136","date":"2020-07-24T13:43:17","name":"cam: Add options to make batch testing with cam easier","version":1,"mbox":"https://patchwork.libcamera.org/series/1136/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/8964/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 26E6EBD86F\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 24 Jul 2020 13:43:32 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 687A361220;\n\tFri, 24 Jul 2020 15:43:31 +0200 (CEST)","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 1654E60535\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 24 Jul 2020 15:43:30 +0200 (CEST)","from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de\n\t[79.202.46.202]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid a65443da-cdb3-11ea-8fb8-005056917f90;\n\tFri, 24 Jul 2020 15:43:28 +0200 (CEST)"],"X-Halon-ID":"a65443da-cdb3-11ea-8fb8-005056917f90","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":"Fri, 24 Jul 2020 15:43:17 +0200","Message-Id":"<20200724134320.637696-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.27.0","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH 0/3] cam: Add options to make batch\n\ttesting with cam easier","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","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>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nAs we lack a compliance tool that is easy to run on target I had the \nneed to extant cam to be able to be run in a batch fashion to be able to \ntest different stream configurations.\n\nThe changes turn out to be small and I think they bring value to cam \neven if we later do add a compliance tool.\n\nNiklas Söderlund (3):\n  cam: Add option to disallow adjusting of requested formats\n  cam: capture: Cache the EventLoop handler\n  cam: Add option to exit capture loop after n frames\n\n src/cam/capture.cpp | 25 ++++++++++++++++++++-----\n src/cam/capture.h   |  7 +++++--\n src/cam/main.cpp    | 19 ++++++++++++++++++-\n src/cam/main.h      |  2 ++\n 4 files changed, 45 insertions(+), 8 deletions(-)"}