{"id":10645,"url":"https://patchwork.libcamera.org/api/patches/10645/?format=json","web_url":"https://patchwork.libcamera.org/patch/10645/","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":"<20201211133510.391037-1-naush@raspberrypi.com>","date":"2020-12-11T13:35:08","name":"[libcamera-devel,v7,1/3] libcamera: controls: Add frame duration control","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"00e10dcde697c49ecfac78f9d944cd5a240b53da","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/10645/mbox/","series":[{"id":1526,"url":"https://patchwork.libcamera.org/api/series/1526/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1526","date":"2020-12-11T13:35:08","name":"[libcamera-devel,v7,1/3] libcamera: controls: Add frame duration control","version":7,"mbox":"https://patchwork.libcamera.org/series/1526/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/10645/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/10645/checks/","tags":{},"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 6CE4FBD808\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 11 Dec 2020 13:35:17 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F2A2567F9F;\n\tFri, 11 Dec 2020 14:35:16 +0100 (CET)","from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n\t[IPv6:2a00:1450:4864:20::32f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2DA1267F06\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 11 Dec 2020 14:35:15 +0100 (CET)","by mail-wm1-x32f.google.com with SMTP id a6so7579602wmc.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 11 Dec 2020 05:35:15 -0800 (PST)","from naushir-VirtualBox.pitowers.org\n\t([2a00:1098:3142:14:a00:27ff:fe4d:f6a2])\n\tby smtp.gmail.com with ESMTPSA id\n\tq15sm14889428wrw.75.2020.12.11.05.35.13\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 11 Dec 2020 05:35:13 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"Be1Qa6qC\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=gH8HMYcOquTPDuesHKOTcqJ/C07iagYJVPlUMXZ+2JM=;\n\tb=Be1Qa6qCD5p282E5AzSWBkYvUS57vwLw0tn6jf17BVIb/5Zel3aDjHyjVPwNoRyVKV\n\tswxcCSVjQHuuGqyqmN5+zWwl1vm1T5/FTh3UFXw84V706Ed0G7Q8SbvR1QVnYNZFaox/\n\tB3OHkMD3J4xOY3sAI7+dUh5Fsof8S+vjSJFsICwp7U6VvPRAcIY0A28s3r6Wvgv8V505\n\trznuL5lE5ZAYe2EGltDc9uRuS4LC/1Yn4CdVT4lJRnwtLIUA7xwBBnMANqWANy2NIuTX\n\tFWVVzVKYOrlNTfyf/PttAtbmIHDQ/TWo7YGrfn8DBOdrMbFiGlb0yxTMcig+z4dxGM/h\n\tjgbQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=gH8HMYcOquTPDuesHKOTcqJ/C07iagYJVPlUMXZ+2JM=;\n\tb=k8LAur+ujF9f3zRaEiEpW17iFkdieSDiUaId++I33v6fTBjQW6AvnpLV+dRjwydJ7Y\n\thH4qH5pUl/xC4ZPixtL24Rg9iWPBDaL8mNi/S1lBfT03kZ6WVUtzdaUPY5h0EJK56jnQ\n\taT+pUZNq136QY3JLBEtiBrjXGULqV4PrH3iXhhRSO0DGCFChZSyp+JyZUrrjvmJqROEK\n\tgbN7xmjxGK8IITx7o+NUqfZg/ru2V9pGtXp4lqJ4u2tZ7DDqq17jCwPSZhXKLMZjFkNn\n\tJPtMUvSBRhmDdisEZyszJqb3bxzoVW1bMUIZ4XJSKWaPkOQxLzSC5W1vdzIw/kHdEtZB\n\tDWxQ==","X-Gm-Message-State":"AOAM531k8jZY+yIGfuh4ZSjQJ0gjiYiZSM3tQvjBEaQcV7jOo4y3MohU\n\ti3m1LOdBGT1WzaifdIwDd9EJ2GQBz4mwRA==","X-Google-Smtp-Source":"ABdhPJyzQ6H5wJwx0nbD9nuoxbPM6ImNXL/zn1dowau/PTkD0xmRr99oUyyhSWaI9dfji+n8gi+pHw==","X-Received":"by 2002:a1c:f405:: with SMTP id z5mr13469006wma.93.1607693714322;\n\tFri, 11 Dec 2020 05:35:14 -0800 (PST)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Fri, 11 Dec 2020 13:35:08 +0000","Message-Id":"<20201211133510.391037-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v7 1/3] libcamera: controls: Add frame\n\tduration control","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=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add an int64_t array control (controls::FrameDurations) to specify the\nminimum and maximum (in that order) frame duration to be used by the\ncamera sensor.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\nTested-by: David Plowman <david.plowman@raspberrypi.com>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/control_ids.yaml | 40 ++++++++++++++++++++++++++++++++++\n 1 file changed, 40 insertions(+)","diff":"diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml\nindex 6d6f0fee..43a7cfb7 100644\n--- a/src/libcamera/control_ids.yaml\n+++ b/src/libcamera/control_ids.yaml\n@@ -306,6 +306,46 @@ controls:\n         maximum valid value is given by the properties::ScalerCropMaximum\n         property, and the two can be used to implement digital zoom.\n \n+  - FrameDurations:\n+      type: int64_t\n+      description: |\n+          The minimum and maximum (in that order) frame duration,\n+          expressed in micro-seconds.\n+\n+          When provided by applications, the control specifies the sensor frame\n+          duration interval the pipeline has to use. This could also limit the\n+          largest exposure time the sensor can use. For example, if a maximum\n+          frame duration of 33ms is requested (corresponding to 30 frames per\n+          second), the sensor will not be able to raise the exposure time above\n+          33ms. A fixed frame duration is achieved by setting the minimum and\n+          maximum values to be the same.\n+\n+          The maximum frame duration provides the absolute limit to the shutter\n+          speed computed by the AE algorithm and it overrides any exposure mode\n+          setting specified with controls::AeExposureMode. Similarly, when a\n+          manual exposure time is set through controls::ExposureTime, it also\n+          gets clipped to the limits set by this control.\n+\n+          \\sa AeExposureMode\n+          \\sa ExposureTime\n+\n+          \\todo Refer to the frame duration limits property to describe how\n+          application-provided values gets clipped and reset.\n+\n+          When reported by pipelines, the control expresses the duration of the\n+          sensor frame used to produce streams part of the completed Request.\n+          The minimum and maximum values shall then be the same, as the sensor\n+          frame duration is a fixed parameter. The sensor frame duration is one\n+          of the parameter that defines the capture frame rate but it does not\n+          alone provide enough information to fully calculate it as it does not\n+          account for pipeline processing delays.\n+\n+          \\todo Define how to calculate the capture frame rate by\n+          defining controls to report additional delays introduced by\n+          the capture pipeline or post-processing stages (ie JPEG\n+          conversion, frame scaling).\n+      size: [2]\n+\n   # ----------------------------------------------------------------------------\n   # Draft controls section\n \n","prefixes":["libcamera-devel","v7","1/3"]}