From patchwork Mon Jun 14 10:00:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 12586 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 67682BD78E for ; Mon, 14 Jun 2021 10:00:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 170E2602A1; Mon, 14 Jun 2021 12:00:46 +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="BV4qQR8h"; dkim-atps=neutral Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A5ABE6029D for ; Mon, 14 Jun 2021 12:00:44 +0200 (CEST) Received: by mail-wm1-x334.google.com with SMTP id s70-20020a1ca9490000b02901a589651424so9070924wme.0 for ; Mon, 14 Jun 2021 03:00:44 -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=attkebe6W022sPsHm178hGNVApOEs4xGKtrlwU7vXQA=; b=BV4qQR8hYHW7B1flOg8iS9a2rfOwGV8qxZMvDoEmN3+Ozl2JxsFLPMDJWFirDSTCf5 Ln1ffbS5YjrCzv7jDpRu+acV4GDnc3dygahOW+QQFIw4QmJeeqTXJdd7aet62m4lMVi6 px67d+zRArLjZEaOziKkzBr4Lzkm1Sf7i2dHADk290VpR04SXhp9IioNJsLgM/6UOpfE gQE8axlxW1/aCTpAoYfuYQ3p5fakuBNxT+yxY37BVbUMLUFFqQVBHkFZ6f9aFIM2PqU0 gbebKmrWsGA/Z9oUz/5r0VyYXW3hyj8xIEz7/L5Cvq8KUKAo8CoxEznXhDIrpFFrmjVv XR9A== 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=attkebe6W022sPsHm178hGNVApOEs4xGKtrlwU7vXQA=; b=VtkvOZn3coG5xt+Vm8ManVi3Z4Wd7R7oiGGc9Ty0ko8drqPP+4+239j1uMjw/H14jL asJZFohx8n3xT4QjipuEuEzanc0wiSkHSAYasi052m7cOonRNEtd97yMVGR8ou4NnWNl 6VGzWqq9g0txdw8Sp5MmrZpzf85lwbeZZI0mCG0G9aXJdH+kPLGEc0AvxlUcpyE1c2Tp fU7eQdFhU0yiUuuScwvdTuroHzlajyZgDksRFFjdaJA48BWW917vI54PYEfh35daKz65 IcaXKe0snpw77NEKhpLLIk+BLBwIcOIStDVAwCVZ0bjcT6uQ/uB1eNJ9S01rHKn0os3+ 8OJQ== X-Gm-Message-State: AOAM531X9Z7l61xFlWhHUiq4Yk7FgaD9dct05KH3WkzSqS0KTS04HirE KobXrUNaS2vHMmRlZRG8pP/X/FYm5fqcAA== X-Google-Smtp-Source: ABdhPJxjDFzGMZSiHwQNbj2sVHBOxqhtvIPE+aCEtAmoqEkYBfNDgfBN7ZfMzxJiN82Yk4qICxUiiw== X-Received: by 2002:a1c:770f:: with SMTP id t15mr15017745wmi.182.1623664844202; Mon, 14 Jun 2021 03:00:44 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:fd93:d554:2dff:83ca]) by smtp.gmail.com with ESMTPSA id 89sm16235959wrq.14.2021.06.14.03.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 03:00:43 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 14 Jun 2021 11:00:36 +0100 Message-Id: <20210614100040.3054433-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/4] Raspberry Pi: Enable imx477 long exposure modes 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" Hi, The aim of this series of patches is to enable the imx477 long exposure modes. With this change, we can now use a shutter speed of up-to 127 seconds on the imx477. Larger values are possible, but this will need variable HBLANK control, which is not currently available. One thing to note about this change: the imx477 does not report any indication of long exposure mode usage in metadata. Patch 1/4 addresses this by looking at the reported embedded data and comparing with DelayedControl values returned for that frame, and deciding which one to "believe". Note that this series sits on top of my recent patch series for metadata parsing improvements: https://patchwork.libcamera.org/project/libcamera/list/?series=2128 Thanks, Naush Naushir Patuck (4): ipa: raspberrypi: Allow long exposure modes for imx477. pipeline: raspberrypi: Use priority write for vblank when writing sensor ctrls ipa: raspberrypi: Increase the default max frame duration to 250s ipa: raspberrypi: Make variable names consistent src/ipa/raspberrypi/cam_helper_imx477.cpp | 67 +++++++++++++++++++ src/ipa/raspberrypi/raspberrypi.cpp | 10 +-- .../pipeline/raspberrypi/raspberrypi.cpp | 37 +++++++--- 3 files changed, 99 insertions(+), 15 deletions(-)