[v1,0/2] RPi: Internal buffer alloaction rework
mbox series

Message ID 20251210131302.81887-1-naush@raspberrypi.com
Headers show
Series
  • RPi: Internal buffer alloaction rework
Related show

Message

Naushir Patuck Dec. 10, 2025, 1:09 p.m. UTC
Hi,

This minor series addresses the issue raised at [1], where the RPi pipeline
handlers don't release the buffers from the V4L2VideoDevice cache when stopping
the camera.

The rework is faily minor, and with these changes, we now release the buffers
from the V4L2VideoDevice cache, but keep the allocations around where needed.

Thanks,
Naush

[1]: https://gitlab.freedesktop.org/camera/libcamera/-/issues/265

Naushir Patuck (2):
  pipeline: rpi: Rename Stream::prepareBuffers to
    Stream::allocateBuffers
  pipeline: rpi: Rework internal buffer allocations

 .../pipeline/rpi/common/pipeline_base.cpp     | 10 ++++++--
 .../pipeline/rpi/common/pipeline_base.h       |  2 +-
 .../pipeline/rpi/common/rpi_stream.cpp        | 25 ++++++-------------
 .../pipeline/rpi/common/rpi_stream.h          |  3 +--
 src/libcamera/pipeline/rpi/pisp/pisp.cpp      |  6 ++---
 src/libcamera/pipeline/rpi/vc4/vc4.cpp        |  6 ++---
 6 files changed, 24 insertions(+), 28 deletions(-)