[libcamera-devel] [PATCH v4 0/8] Raspberry Pi: Efficient start/stop/start sequences

Naushir Patuck naush at raspberrypi.com
Tue Mar 22 10:22:49 CET 2022


Hi,

Version 4 of this patch adds a few new commits to fix various things:

Patch 5/8 adds some state variables to the V4L2VideoDevice class.
Patch 6/8 stops allowing buffers to be queued when the device is stopping.
Patch 8/8 adds a test for the new buffer cache isEmpty() member function.

Thanks,
Naush

Naushir Patuck (8):
  pipeline: raspberrypi: Avoid over-allocation for ISP Output 1
  pipeline: raspberrypi: Move freeBuffers() to the RPiCameraData class
  pipeline: raspberrypi: Free buffers in the RPiCamera destructor and
    re-configure
  pipeline: raspberrypi: Repurpose RPi::Stream::reset()
  libcamera: v4l2_videodevice: Better tracking of the device state
  libcamera: v4l2_videodevice: Do not allow buffer queueing in stopping
    state
  libcamera: v4l2_videodevice: Empty the V4L2 buffer cache on
    streamOff()
  test: Test V4L2BufferCache::isEmpty() member function

 include/libcamera/internal/v4l2_videodevice.h |  4 +-
 .../pipeline/raspberrypi/raspberrypi.cpp      | 56 ++++++++++++-------
 .../pipeline/raspberrypi/rpi_stream.cpp       | 13 ++---
 .../pipeline/raspberrypi/rpi_stream.h         |  2 +-
 src/libcamera/v4l2_videodevice.cpp            | 34 +++++++++--
 test/v4l2_videodevice/buffer_cache.cpp        | 36 ++++++++++++
 6 files changed, 112 insertions(+), 33 deletions(-)

-- 
2.25.1



More information about the libcamera-devel mailing list