<div dir="ltr"><div dir="ltr">Hi Kieran,<div><br></div><div>Thank you for your patch.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 6 Dec 2021 at 23:39, Kieran Bingham <<a href="mailto:kieran.bingham@ideasonboard.com">kieran.bingham@ideasonboard.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Provide a metadata control that allows pipeline handlers to report the<br>
sequence number from the sensor for every request.<br>
<br>
This can be used to monitor and validate the sequence numbers of the<br>
captured images and detect any frame drops.<br>
<br>
Signed-off-by: Kieran Bingham <<a href="mailto:kieran.bingham@ideasonboard.com" target="_blank">kieran.bingham@ideasonboard.com</a>><br>
---<br>
 src/libcamera/control_ids.yaml | 8 ++++++++<br>
 1 file changed, 8 insertions(+)<br>
<br>
diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml<br>
index 9d4638ae677e..8874fe75102c 100644<br>
--- a/src/libcamera/control_ids.yaml<br>
+++ b/src/libcamera/control_ids.yaml<br>
@@ -381,6 +381,14 @@ controls:<br>
         \todo Define how the sensor timestamp has to be used in the reprocessing<br>
         use case.<br>
<br>
+  - SensorSequence:<br>
+      type: int64_t<br>
+      description: |<br>
+        The monotonic sequence number from the sensor.<br>
+<br>
+        Any break in the sequence number is an indication of frame drop or error<br>
+        in the captured stream.<br>
+<br></blockquote><div><br></div><div>Should we add that there are no guarantees about this sequence number being</div><div>reset on start/stop?</div><div><br></div><div>Reviewed-by: Naushir Patuck <<a href="mailto:naush@raspberrypi.com">naush@raspberrypi.com</a>></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
   # ----------------------------------------------------------------------------<br>
   # Draft controls section<br>
<br>
-- <br>
2.30.2<br>
<br>
</blockquote></div></div>