From patchwork Mon Jun 8 13:36:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 3988 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BF42761687 for ; Mon, 8 Jun 2020 15:36:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="LQfjmsNe"; dkim-atps=neutral Received: by mail-wr1-x432.google.com with SMTP id x14so17440159wrp.2 for ; Mon, 08 Jun 2020 06:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LUgymWqGQawv2fw92HlKcH2v6acyH8c8JAMYhhxjC/8=; b=LQfjmsNeiVP9Etz4l24YInQchn0NfPiUT4CO7EAztVhlTxsWkrfQZ6tCYbUGVYaBrw +zYp5NHI2g+rGIMbOiFdnsNqpIXSxLMgOg1J6MBvUlvvhdafukU5HhI/25zGYf2e2B1D cbxMDiBRgeyhCpEHBwZfh1lkPx7x6N8RJSaP/k0DWUHEqn5Zb3qdE0TF9kjVfgOtOFzj xaz8QgzO9aeIaFHBOtH/RDXHU98HX2IA0WkzkejcenIQ3j9zwE333u45YY055ksV1dRc 4U4uf/TNf0bgFDHXd7hdetc8T26gLQwm6tGqeZGVaP6ZlEHZ7DovmiGWbAhPD1ebYBjF 2Akw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LUgymWqGQawv2fw92HlKcH2v6acyH8c8JAMYhhxjC/8=; b=UQfMxRJtb5dm3UNWtSQXAjlS4xpA6VLSfU2io0NRhgNvbe7z4hd1flu/5vJpfAmX8i wEYSVxqauYF73/625WuOw+0CZlALBlZVbNRUCj0yZ+Op7vZvH+k9uIVetjcww/zjWyks NyBaP4KYMVJgYQSIkznZfVZ/Uy/IX5HOKSd9oEAWD7wDdaf2Gzmg67AbHzLqfRaUEEyU OGE2Xvj+R9c9+Uq5EYHLfuQgw4jbVxO+C5pFLPRPSNtYZ2mFlkBlJWMjX/11ndG0mw6m SAdAlhWk5SBFjKWh4QcLT2nKvGVWi+7RUMxsHxkf9VwM0u25z2Dlo0CJUxe0MHw5bmpi phpg== X-Gm-Message-State: AOAM532SISz2KOWH/I75EXzGYJShSsaz++lHvhRycbao3cpSe14bUXqm G98siBBDrmP73ohTLAVmulqse3TkYfg= X-Google-Smtp-Source: ABdhPJytpN7Cla5P6T5RfYOwcWXw3Yu3znHcYjBQru2OM4W+vzDjvudW9cmg7crF05aBv4NC/OPFTA== X-Received: by 2002:adf:f64c:: with SMTP id x12mr22302118wrp.281.1591623405787; Mon, 08 Jun 2020 06:36:45 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id o10sm23825072wrj.37.2020.06.08.06.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 06:36:44 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 8 Jun 2020 14:36:37 +0100 Message-Id: <20200608133639.533230-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608133639.533230-1-naush@raspberrypi.com> References: <20200608133639.533230-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 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: , X-List-Received-Date: Mon, 08 Jun 2020 13:36:47 -0000 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 --- src/libcamera/control_ids.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 77ebc3f9..e161464b 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -239,4 +239,22 @@ controls: pixel range (as if pixels ranged from 0 to 65535). The SensorBlackLevels control can only be returned in metadata. size: [4] + + - FrameDurationLimits: + 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. + FrameDurationLimits is only applied if AE is enabled. + + Note that the sensor may not always be able to provide the requested + frame duration limits depending on its mode configuration. In such + situations, the user requested minimum and maximum frame durations will + be clipped to what the sensor supports. + + \sa ExposureTime AeEnable + size: [2] ...