[libcamera-devel] [PATCH v1 0/3] V4L2 dequeue timeout

Naushir Patuck naush at raspberrypi.com
Tue Mar 22 14:16:32 CET 2022


Hi,

This change essentially superscedes the work done in 
https://patchwork.libcamera.org/project/libcamera/list/?series=2978.

I've moved the dequeue timeout functionality into the v4l2_videodevice class,
allowing any pipeline handler to use the functionality. This change also allows
us to set a timeout on any device node easily.

Thanks,
Naush

Naushir Patuck (3):
  utils: timer: Allow Timer::start to use utils::Duration
  libcamera: v4l2_videodevice: Add a dequeue timer
  pipeline: raspberrypi: Add a Unicam dequeue timeout

 include/libcamera/base/timer.h                |  2 +
 include/libcamera/internal/v4l2_videodevice.h |  9 ++++
 include/libcamera/ipa/raspberrypi.mojom       |  1 +
 src/ipa/raspberrypi/raspberrypi.cpp           |  2 +
 src/libcamera/base/timer.cpp                  | 14 ++++++
 .../pipeline/raspberrypi/raspberrypi.cpp      | 15 ++++++
 src/libcamera/v4l2_videodevice.cpp            | 47 +++++++++++++++++++
 7 files changed, 90 insertions(+)

-- 
2.25.1



More information about the libcamera-devel mailing list