From 0c4147c3b652ebf8200680e7cfe371bbd9192c48 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 28 Jan 2020 17:16:17 -0500 Subject: gst: libcamerasrc: Implement timestamp support This is an experimental patch adding timestamp support to the libcamerasrc element. This patch currently assume that the driver timestamp are relative to the system monotonic clock. Without a reference clock source, the timestamp are otherwise unusable, and without timestamp only minor use case can be achieved. Signed-off-by: Nicolas Dufresne Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/gstreamer/gstlibcamerapad.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gstreamer/gstlibcamerapad.h') diff --git a/src/gstreamer/gstlibcamerapad.h b/src/gstreamer/gstlibcamerapad.h index 9d431297..779f2d13 100644 --- a/src/gstreamer/gstlibcamerapad.h +++ b/src/gstreamer/gstlibcamerapad.h @@ -32,4 +32,6 @@ GstFlowReturn gst_libcamera_pad_push_pending(GstPad *pad); bool gst_libcamera_pad_has_pending(GstPad *pad); +void gst_libcamera_pad_set_latency(GstPad *pad, GstClockTime latency); + #endif /* __GST_LIBCAMERA_PAD_H__ */ -- cgit v1.2.1