[libcamera-devel] [PATCH 0/3] Sequence Observer
Kieran Bingham
kieran.bingham at ideasonboard.com
Fri Apr 29 21:34:31 CEST 2022
This fell out of some more work I did in the past catching and detecting
frame drops in streams. While the method of reporting this event to
userspace is debated, this pulls out some core functionality and wraps
some generic code into a Sequence Observer to provide an easy to use
check on any monotonic sequence.
For now - it simply reports a warning if a V4L2 device detects a frame
drop, which is more notification that we have currently... as we are
silently dropping frames at the moment.
Kieran Bingham (3):
libcamera: Add sequence value observer
test: Add Sequence observer tests
libcamera: v4l2: Detect frame drops on V4L2VideoDevice
include/libcamera/internal/v4l2_videodevice.h | 2 +
include/libcamera/meson.build | 1 +
include/libcamera/sequence.h | 20 +++++
src/libcamera/meson.build | 1 +
src/libcamera/sequence.cpp | 66 +++++++++++++++
src/libcamera/v4l2_videodevice.cpp | 10 +++
test/meson.build | 1 +
test/sequence.cpp | 80 +++++++++++++++++++
8 files changed, 181 insertions(+)
create mode 100644 include/libcamera/sequence.h
create mode 100644 src/libcamera/sequence.cpp
create mode 100644 test/sequence.cpp
--
2.25.1
More information about the libcamera-devel
mailing list