[libcamera-devel,v7,0/3] Add HeapAllocator
mbox series

Message ID 20230802065449.2904457-1-chenghaoyang@chromium.org
Headers show
Series
  • Add HeapAllocator
Related show

Message

Harvey Yang Aug. 2, 2023, 6:51 a.m. UTC
Hi all,

Fixed some comments, while haven't made the design decision according
to Laurent's question of heap implementation.

We need Debian & Fedora folks to confirm if any DMA heap or udmabuf
would be available by default to make progress.

BR,
Harvey

Harvey Yang (3):
  libcamera: Move DmaHeap to HeapAllocator as a base class
  libcamera: Add UdmaHeap if DmaHeap is not valid
  libcamera: Add exportFrameBuffers in HeapAllocator

 include/libcamera/internal/heap_allocator.h  |  42 +++
 include/libcamera/internal/meson.build       |   1 +
 src/libcamera/heap_allocator.cpp             | 355 +++++++++++++++++++
 src/libcamera/meson.build                    |   1 +
 src/libcamera/pipeline/rpi/vc4/dma_heaps.cpp |  90 -----
 src/libcamera/pipeline/rpi/vc4/dma_heaps.h   |  32 --
 src/libcamera/pipeline/rpi/vc4/meson.build   |   5 +-
 src/libcamera/pipeline/rpi/vc4/vc4.cpp       |  11 +-
 8 files changed, 405 insertions(+), 132 deletions(-)
 create mode 100644 include/libcamera/internal/heap_allocator.h
 create mode 100644 src/libcamera/heap_allocator.cpp
 delete mode 100644 src/libcamera/pipeline/rpi/vc4/dma_heaps.cpp
 delete mode 100644 src/libcamera/pipeline/rpi/vc4/dma_heaps.h