From patchwork Thu Dec 10 13:34:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 10632 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 6C09EBD80A for ; Thu, 10 Dec 2020 13:34:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D93D267F73; Thu, 10 Dec 2020 14:34:33 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="NxysY8v8"; dkim-atps=neutral Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E1EEA60323 for ; Thu, 10 Dec 2020 14:34:31 +0100 (CET) Received: by mail-wm1-x342.google.com with SMTP id g185so5328823wmf.3 for ; Thu, 10 Dec 2020 05:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0XmahIui07uad1w2cKJmJV42yI1wNEaPc/ltP541NpA=; b=NxysY8v8IYb5YOELk5ixk95DlUKzdJ26mAW8hiLJ1kpH3SnjrXUenJbjc+7RZt1NoG j2K2VPPti3+Of4AHhdlFSBHEOA/c+goghGW/5fj0HaT700X2TGCNrSRxAL27kLoKBz25 oBtDAj4nuXKsmUreCh6IIUe8nR3ciiHMkgtqt9ftvdP5tPEu4Ry6MELEiThjwVgQDBC2 ndueRQMuFzn8kAW+g1v2/utSERIohehgOghUSwPuKLIWTfVaZeKC27fTRD2xrKGvCGbq C9D2/AsC1V1HOTrcoCKzXw4qqTUEUPfr4DBBzfTSbvjpDKGeItziLEoyMC8jW7tR4j+0 sz4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0XmahIui07uad1w2cKJmJV42yI1wNEaPc/ltP541NpA=; b=RYvp2gPk7RZWGALVD7cQT+7K6UWLpdHJ/SYuVkG24Bmp6BlUPaeeoBQozEYmXoq0qs vK5ixAJ4iPKLg6zl4J/BQKmvYwJC0Zuf0sP+M8jVWoUVDqdD6/LZ/+LwCqyyGqmFb1KA m+w0b8/xV33VUDItnYo8HaxhlI7i/A/BhJU/jJ/Dj7LnDLw5pSF0GLIZHWT0k4EmhrIP CLpfJOCsphm9UtkacKYxTPhhDEv8a19YLNTzf+ilApgYmRJBYSgS4BguxuwTa4wuFW5D PWc5y3GRE4/42AqaiBFmfqGofltaW6CpmuFySgyI0zONQ9f6XnWLTXTgLJR3tXqbhI8e H9Vw== X-Gm-Message-State: AOAM530KQaWE1Eft3QVm5tKSbf9XwdcnXoXyv2pPNkENw1s1bsYQR4oD MKYHXPBq/swfgmYVamWfCDv8Baxgz2UdHQ== X-Google-Smtp-Source: ABdhPJyYPqOWpsbTA7SpcXSgDbtfZVRL2oTsce+gzKqCkMKPnprhTyyZYlvHLjyC3vB/eaJIwksKvw== X-Received: by 2002:a1c:4e0a:: with SMTP id g10mr8264882wmh.51.1607607271126; Thu, 10 Dec 2020 05:34:31 -0800 (PST) Received: from naushir-VirtualBox.pitowers.org ([2a00:1098:3142:14:a00:27ff:fe4d:f6a2]) by smtp.gmail.com with ESMTPSA id c129sm9395467wma.31.2020.12.10.05.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 05:34:30 -0800 (PST) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Thu, 10 Dec 2020 13:34:24 +0000 Message-Id: <20201210133426.206679-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 1/3] libcamera: controls: Add frame duration control X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a float array control (controls::FrameDurations) to specify the minimum and maximum (in that order) frame duration to be used by the camera sensor. Signed-off-by: Naushir Patuck Reviewed-by: David Plowman Tested-by: David Plowman --- src/libcamera/control_ids.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 6d6f0fee..7f1f8624 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -554,4 +554,19 @@ controls: detection, additional format conversions etc) count as an additional pipeline stage. + - FrameDurations: + type: float + description: | + Specifies the minimum and maximum (in that order) allowable frame + duration, in micro-seconds, for the sensor to use. This could also limit + the largest exposure times the sensor can use. For example, if a maximum + frame duration of 33ms is requested (corresponding to 30 frames per + second), the sensor will not be able raise the exposure time above 33ms. + A fixed frame duration is achieved by setting the minimum and maximum + values to be the same. Note that the sensor may not always be able to + provide the requested frame duration limits depending on its mode + configuration. + + \sa ExposureTime + size: [2] ...