From patchwork Mon Dec 6 23:39:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 15057 X-Patchwork-Delegate: kieran.bingham@ideasonboard.com 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 35BF6BF415 for ; Mon, 6 Dec 2021 23:39:59 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A30186087A; Tue, 7 Dec 2021 00:39:57 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="k7tSre0c"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 90427607DE for ; Tue, 7 Dec 2021 00:39:54 +0100 (CET) Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 23BC85B0; Tue, 7 Dec 2021 00:39:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1638833994; bh=x2ujNUKNqqtxSYhUw/sSWerA77d8prx+H6BHd8JVuvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k7tSre0cQjOGGvU+rQbUsuVpakuwVH2V++VNeajnVjFC5ilU7hv/0NnbTUwdWsgeg m01jsM/V+lYFsUfiiYgXn+/hj6oBWrVBPOnUJRh+yDl+9kW/xPaEkbSwdGhoPl5h72 pVnqCJ8ywrgGZBhXVgIEaFrUvD4a9o7/hLSlTrP4= From: Kieran Bingham To: libcamera devel Date: Mon, 6 Dec 2021 23:39:41 +0000 Message-Id: <20211206233948.1351206-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211206233948.1351206-1-kieran.bingham@ideasonboard.com> References: <20211206233948.1351206-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/8] libcamera: controls: Add SensorSequence metadata 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" Provide a metadata control that allows pipeline handlers to report the sequence number from the sensor for every request. This can be used to monitor and validate the sequence numbers of the captured images and detect any frame drops. Signed-off-by: Kieran Bingham Reviewed-by: Naushir Patuck --- src/libcamera/control_ids.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 9d4638ae677e..8874fe75102c 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -381,6 +381,14 @@ controls: \todo Define how the sensor timestamp has to be used in the reprocessing use case. + - SensorSequence: + type: int64_t + description: | + The monotonic sequence number from the sensor. + + Any break in the sequence number is an indication of frame drop or error + in the captured stream. + # ---------------------------------------------------------------------------- # Draft controls section