{"id":10661,"url":"https://patchwork.libcamera.org/api/1.1/covers/10661/?format=json","web_url":"https://patchwork.libcamera.org/cover/10661/","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":"<20201215004811.602429-1-niklas.soderlund@ragnatech.se>","date":"2020-12-15T00:48:03","name":"[libcamera-devel,v4,0/8] libcamera: Add helper for controls that take effect with a delay","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/10661/mbox/","series":[{"id":1533,"url":"https://patchwork.libcamera.org/api/1.1/series/1533/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1533","date":"2020-12-15T00:48:03","name":"libcamera: Add helper for controls that take effect with a delay","version":4,"mbox":"https://patchwork.libcamera.org/series/1533/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/10661/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 48657BD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 15 Dec 2020 00:48:21 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id BD08160327;\n\tTue, 15 Dec 2020 01:48:20 +0100 (CET)","from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net\n\t[195.74.38.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DCC5360322\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 15 Dec 2020 01:48:19 +0100 (CET)","from bismarck.berto.se (p4fca2458.dip0.t-ipconnect.de\n\t[79.202.36.88])\n\tby bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid 356833f2-3e6f-11eb-a076-005056917f90;\n\tTue, 15 Dec 2020 01:48:17 +0100 (CET)"],"X-Halon-ID":"356833f2-3e6f-11eb-a076-005056917f90","Authorized-sender":"niklas.soderlund@fsdn.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org,\n\tnaush@raspberrypi.com","Date":"Tue, 15 Dec 2020 01:48:03 +0100","Message-Id":"<20201215004811.602429-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.29.2","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v4 0/8] libcamera: Add helper for controls\n\tthat take effect with a delay","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":"Hello,\n\nThis series adds a new helper class to libcamera-core based on the\nStaggerdCtrl principle from the Raspberry Pi pipeline handler. The new\nhelper matches perfectly the RPi implementation and can therefore\nreplace the pipeline specific implementation. There are slight changes\nin the API of the two but noting preventing it to be a drop in\nreplacement.\n\nThe major new addition to the DelayedControls implementation is the\nability to queue controls ahead of time. This allows the concept of\npipeline depth we already have for buffers to be extended to controls.\n\nPatch 1/8 and 2/8 adds the new core helper and its unit test. Patch 3/8\nand 4/8 replaces StaggerdCtrl with DelayedControls in the Raspberry Pi\npipeline handler. Patch 5/8 adds an accessors to CameraSensor. And last \n6/8 - 8/8 make use of the new helper in the  RkISP1 pipeline to \ncompletely remove another local helper (Timeline).\n\nThe RkISP1 IPA feels much snappier after this change but this is\nanecdotal and no real measurements have been done as the RkISP1 IPA at\nthis stage is neither advanced nor tuned.\n\nNiklas Söderlund (8):\n  libcamera: delayed_controls: Add helper for controls that applies with\n    a delay\n  test: delayed_controls: Add test case for DelayedControls\n  libcamera: raspberrypi: Switch to DelayedControls\n  libcamera: raspberrypi: Remove StaggeredCtrl\n  libcamera: camera_sensor: Expose the camera device\n  libcamera: pipeline: rkisp1: Use delayed controls\n  libcamera: pipeline: rkisp1: Use SOF event to warn about late\n    parameters\n  libcamera: pipeline: rkisp1: Remove Timeline\n\n include/libcamera/internal/camera_sensor.h    |   2 +\n include/libcamera/internal/delayed_controls.h |  82 +++++\n src/libcamera/camera_sensor.cpp               |   6 +\n src/libcamera/delayed_controls.cpp            | 252 +++++++++++++++\n src/libcamera/meson.build                     |   1 +\n .../pipeline/raspberrypi/meson.build          |   1 -\n .../pipeline/raspberrypi/raspberrypi.cpp      |  54 ++--\n .../pipeline/raspberrypi/staggered_ctrl.cpp   | 174 ----------\n .../pipeline/raspberrypi/staggered_ctrl.h     |  96 ------\n src/libcamera/pipeline/rkisp1/meson.build     |   1 -\n src/libcamera/pipeline/rkisp1/rkisp1.cpp      | 166 +++-------\n src/libcamera/pipeline/rkisp1/timeline.cpp    | 227 -------------\n src/libcamera/pipeline/rkisp1/timeline.h      |  71 ----\n test/delayed_contols.cpp                      | 304 ++++++++++++++++++\n test/meson.build                              |   1 +\n 15 files changed, 719 insertions(+), 719 deletions(-)\n create mode 100644 include/libcamera/internal/delayed_controls.h\n create mode 100644 src/libcamera/delayed_controls.cpp\n delete mode 100644 src/libcamera/pipeline/raspberrypi/staggered_ctrl.cpp\n delete mode 100644 src/libcamera/pipeline/raspberrypi/staggered_ctrl.h\n delete mode 100644 src/libcamera/pipeline/rkisp1/timeline.cpp\n delete mode 100644 src/libcamera/pipeline/rkisp1/timeline.h\n create mode 100644 test/delayed_contols.cpp"}