[libcamera-devel] [PATCH v5 0/3] Add HeapAllocator

Harvey Yang chenghaoyang at chromium.org
Tue May 16 10:03:16 CEST 2023


Hi all,

The series of patches added HeapAllocator, which uses DmaHeap (moved
from Raspberry Pi pipeline handler) and UdmaHeap to allocate heap
buffers.

I've updated based on Jacopo's comments. Please take another look.
Thanks!

BR,
Harvey

Cheng-Hao 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  |  39 +++
 include/libcamera/internal/meson.build       |   1 +
 src/libcamera/heap_allocator.cpp             | 295 +++++++++++++++++++
 src/libcamera/meson.build                    |   1 +
 src/libcamera/pipeline/meson.build           |   5 +-
 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 +-
 9 files changed, 343 insertions(+), 136 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

-- 
2.40.1.606.ga4b1b128d6-goog



More information about the libcamera-devel mailing list