From patchwork Thu Jul 22 11:57:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 13071 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 82356C0109 for ; Thu, 22 Jul 2021 11:57:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E9E1968543; Thu, 22 Jul 2021 13:57:54 +0200 (CEST) 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="G1Juackb"; dkim-atps=neutral Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7DA8B6027A for ; Thu, 22 Jul 2021 13:57:53 +0200 (CEST) Received: by mail-wr1-x434.google.com with SMTP id r11so5631203wro.9 for ; Thu, 22 Jul 2021 04:57:53 -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:mime-version :content-transfer-encoding; bh=npUd3hGiwvGb5Tl68usIsRR/kfY2E2RG1vPv6Wu29GU=; b=G1JuackbnqeXKT3JDpvUthezbbzxKDelbdK0Q/+zBLVqaSLrOu6CvK+R41X4S027SF WkIosMCnNUMnfJZrbvrDNU8h3i1hT5o+vZvIt+iWH489zNLKX0nuDA9Tu7S+3657hI9b 17R+qmHXp+5DCohdhJQ/iy5aEQ+xcqWR9UEwakH284QFUhfzDgOH6DsnYMwJVLx6iYBY WvulPm2mxrr4p18k2kL35WqG04QI/n8cszK1CF8zlqz7kMAe05K0jZoVN4oL3BF/VjDr ar6MoU989W96DK072h6pQppsaPrfzOBV6RLgnr0/2K8rT0Jc7xEdwW9uO1EhrXgSZ6xP EWOw== 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=npUd3hGiwvGb5Tl68usIsRR/kfY2E2RG1vPv6Wu29GU=; b=NAVGBnHo2W+ltWOA/4FyPKY28nkl1c/li/7YpmGgW7Kyyf0oZzLIE0rfRtQ15Fhljv FHm6hDuPIZuUb0UtPFg50GC9QYcCua5tG1fDbr7DvD/7bpbctXtIA9gx2zAHZnebYzD8 c5zBYG+G6DbPLkYbHdltgAS6N6s8JXGv+TMO78dEP6+HDAjWpTnPkvj5ey3KSXHzL9sO 9/fhktxfp/XjlCcwixMRpxQ6uVxHY/6BGbTygDOj2Ex4IsRKgMGBjgeI4n6EQFNr1KpV x2zRwUTW976COYJkl9GFS9STSYnqm63ZWp8W5RLZVVlMUEatn0+f0EMD88AjBhgY7FSQ +ZOQ== X-Gm-Message-State: AOAM531GD7DOxpEvYmTbCARdikOBhax4IMGuaHrAiNluLZQEJgfnvkJq Ox8RS/lJmV/jc0XtYPhoO50+uQlgI5wcoQ== X-Google-Smtp-Source: ABdhPJwBwpZP0GR/yF7K3K+1tmXS6sKgxonE0CzUqIx2sottBS7/TcChR9MSw/+/1gFPJtNXEKdeiQ== X-Received: by 2002:adf:d1cf:: with SMTP id b15mr29658887wrd.382.1626955072886; Thu, 22 Jul 2021 04:57:52 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:9f65:60ab:4e1c:e379]) by smtp.gmail.com with ESMTPSA id g7sm2261610wmq.22.2021.07.22.04.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 04:57:52 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Thu, 22 Jul 2021 12:57:42 +0100 Message-Id: <20210722115742.3131100-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] ipa: raspberrypi: Return controls::FrameDuration from the IPA 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" Return controls::FrameDuration through the per-frame Request metadata. The frame duration is obtained by either the value in DelayedControls, or (preferably) the value parsed from the embedded data buffer. Signed-off-by: Naushir Patuck Reviewed-by: Laurent Pinchart Reviewed-by: David Plowman --- src/ipa/raspberrypi/raspberrypi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp index 5cd333049807..b08602f474af 100644 --- a/src/ipa/raspberrypi/raspberrypi.cpp +++ b/src/ipa/raspberrypi/raspberrypi.cpp @@ -465,6 +465,8 @@ void IPARPi::reportMetadata() libcameraMetadata_.set(controls::ExposureTime, deviceStatus->shutter_speed.get()); libcameraMetadata_.set(controls::AnalogueGain, deviceStatus->analogue_gain); + libcameraMetadata_.set(controls::FrameDuration, + helper_->Exposure(deviceStatus->frame_length).get()); } AgcStatus *agcStatus = rpiMetadata_.GetLocked("agc.status");