From patchwork Fri Jun 26 00:37:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Allen X-Patchwork-Id: 27037 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 CC0F5C3264 for ; Fri, 26 Jun 2026 00:37:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EBA80658CD; Fri, 26 Jun 2026 02:37:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b="kx3QzoDU"; dkim-atps=neutral Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 63DA1623CB for ; Fri, 26 Jun 2026 02:37:15 +0200 (CEST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-46e92b75390so325735f8f.3 for ; Thu, 25 Jun 2026 17:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20251104; t=1782434235; x=1783039035; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=kYWAE+EYOx7pjX0/Nw7YralOMoZC7HZZACw8BVKcGCk=; b=kx3QzoDUT2STPtMUJtjtF7pJLQYbvLBwyIIYRR+j1dqlPWYGrkEI07neSsdKUVl+kT Sp2WSEcp/oFICZFOYnaT1bQXY+jsh6loOE+LFcXxSC79W9nEwrxWplFZJr9DqNQ1Tifi 4dxT3QLhKfyftyueqdZ3n0hPB/a4rSl9V6CGboOv2NQ+F75owgWlaQGU39Y/U1bUTgPd QPG9WdES6SnRhS3DJuIT7nqMdUcZ7l4FqsE/eKsHDhNRtUXLvl+6GvkALNEb4hpze5ap xTavcTZP8kDdFoyEvE2H+WwCt88oBkEeWPvDYP5e1OPR0Qlw9xC2LVsIjB1l+licEheU 9R6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782434235; x=1783039035; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kYWAE+EYOx7pjX0/Nw7YralOMoZC7HZZACw8BVKcGCk=; b=a2BAZr1vKIjvSahIT/a5I3gcLJWg/XJDIPoyIGYRlOcD10xWMRQnuJChh0Rur2VLf/ Q8IZshsE35WG7FDagKn/2HWyfMYZftifWDtHMvsAQraI0+u1LAW1DZLCAxXCehsnwpPj XC4hUoxsJ8vt9xQlQVbwDo3t/CghAPLgjdcJW5cYGcPxFSdMgVIEjxCrVi7rItuqyECo wOlIuPHRuGVyqLwRp3wxB46tjS7wqYm4fa+075ZDXiAQf9jFSEHBrtEQf/guIvPKOj5K FZpTqeK5rL3JdU5iovgqNxifo54zU0XZz+ryMX1hzhlWjoVerwqzDtT5I1AeStBzPB5n 4zBQ== X-Gm-Message-State: AOJu0Yw/+xqGitqk7Jn4V2mKoOFpcOaTIBpiP9Sw9DPivsmlOk1Sv5Nk jIic+qHcTOaxUvbEn7KtapyrRjtU/UPigqEPEbsh2MxRho2OXPLIIvwZrDD9Rg== X-Gm-Gg: AfdE7cmphPpIv3aiNSYhFL876ju4iNCQoUxXNo7tSnHgR2EltyjW2eIszuHyWcmy1ju oSktbnPATRitzGnmT37B+9MMIq2BELtK6nAsNyZg/CICGBUx6o+Zf1jxn51oCrqepYy38zZSH7N ZKwY3QKSleeytCEgQPomST+sNH6LKzKm2XJX92KPxy8ywNHXyyDfEMkhCypq8c4M0SWC0QWykvx b7D/7MDcO/pjGQsnacreBH4hCmt47HgACzze9q+6Ea3DGBBosMHuzb4kHMAMp8dAbaiJIzQtShK uk06YLZM2kCiPJM1A+fYiiQEU8UXrIA9zEmRNDW4XF6LNbkEtwbCyXI7KLZVfwsi4ZCLhyp80el 5d2DwLAUyPk7wEFcNOq1voq8vBp2OKtRT7l+6wG07WN/UB9CplHhnk4nhlWi0OP2iU/srxv47jC UCSheNF2Md+N7uIBp2RNoskh03QaaoPTPSB1wqaMEWHo87Q1IVIRHEYaya0yX+xH1RbIH72uEzV 1gHXuDOwZ/+z3VQ X-Received: by 2002:a05:6000:420f:b0:464:c5be:37f4 with SMTP id ffacd0b85a97d-46dc17af360mr8232544f8f.29.1782434234713; Thu, 25 Jun 2026 17:37:14 -0700 (PDT) Received: from localhost.localdomain (p5ddcc513.dip0.t-ipconnect.de. [93.220.197.19]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-46f0db007b3sm762055f8f.2.2026.06.25.17.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2026 17:37:14 -0700 (PDT) From: Bruce Allen To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1 0/2] rpi: Expose Unicam frontend sequence as SensorSequence metadata Date: Fri, 26 Jun 2026 02:37:10 +0200 Message-ID: <20260626003712.26624-1-ballen4705@googlemail.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 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, This tiny patch series adds a Raspberry Pi vendor metadata control SensorSequence that exposes the Unicam frontend FrameBuffer::metadata().sequence on completed requests (VC4 pipeline). Motivation: applications diagnosing frame loss need a counter tied to frontend capture, not just delivered-frame or control-list timing. Gaps in this sequence indicate frames that did not reach the frontend stream before the previous request completed. The control is defined in control_ids_rpi.yaml, set in vc4.cpp at Unicam dequeue, and propagated in pipeline_base.cpp like SensorTimestamp and FrameWallClock. Python bindings follow from existing pycamera codegen. Tested: builds on master @ 29eb112 with -Dpipelines=rpi/vc4 -Dipas=rpi/vc4 -Dpycamera=enabled; verified libcamera.controls.rpi.SensorSequence imports from the staged tree. Tested on Raspberry Pi CM4, correctly detects dropped frames. Cheers, Bruce Allen