[libcamera-devel,v1,0/4] Raspberry Pi: External buffer handling
mbox series

Message ID 20230721093759.27700-1-naush@raspberrypi.com
Headers show
Series
  • Raspberry Pi: External buffer handling
Related show

Message

Naushir Patuck July 21, 2023, 9:37 a.m. UTC
Hi,

This small patch series simplifies handling of application/externally allocated
buffers for use in requests.  For the mode part, these patches remove code that
was trying to distinguish between the two different allocation types, and this
is not actually necessary any more.

This has been tested on a fork of libcamera-apps where buffers are allocated
through the dma heap at the application level and passed into requests. This
fork is available at: https://github.com/raspberrypi/libcamera-apps/tree/dma_heap.

Once these chanages have been merged libcamera-apps and picamera2 will eventually
switch to use dma heap allocations instead of V4L2 allocations.

Thanks,
Naush

Naushir Patuck (4):
  pipeline: rpi: Increase buffer import count to 32
  pipeline: rpi: Remove additional external dma buf handling logic
  pipeline: rpi: Rename RPi::Stream::setExternalBuffer()
  pipeline: rpi: Simplify buffer id generation

 .../pipeline/rpi/common/pipeline_base.cpp     | 18 +-----
 .../pipeline/rpi/common/rpi_stream.cpp        | 55 +++++--------------
 .../pipeline/rpi/common/rpi_stream.h          | 46 +---------------
 3 files changed, 17 insertions(+), 102 deletions(-)