[libcamera-devel] [PATCH v3 0/3] Add HeapAllocator
Harvey Yang
chenghaoyang at chromium.org
Thu Mar 2 09:13:46 CET 2023
Hi all,
The series of patches added HeapAllocator, which uses DmaHeap (moved
from Raspberry Pi pipeline handler) and UdmaHeap to allocate heap
buffers.
Fixed the c'tor of DmaHeap, where I incorrectly mixed some udma heap
code.
I've only build-test it, and I'll need to test it on my virtual pipeline
handler patches, but please take a look and let me know if it makes
sense. Thanks!
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/dma_heap.h | 20 +++
include/libcamera/heap.h | 27 ++++
include/libcamera/heap_allocator.h | 40 ++++++
include/libcamera/meson.build | 4 +
include/libcamera/udma_heap.h | 20 +++
.../dma_heaps.cpp => dma_heap.cpp} | 35 +++---
src/libcamera/heap_allocator.cpp | 90 ++++++++++++++
src/libcamera/meson.build | 3 +
.../pipeline/raspberrypi/dma_heaps.h | 32 -----
.../pipeline/raspberrypi/meson.build | 1 -
.../pipeline/raspberrypi/raspberrypi.cpp | 10 +-
src/libcamera/udma_heap.cpp | 117 ++++++++++++++++++
12 files changed, 342 insertions(+), 57 deletions(-)
create mode 100644 include/libcamera/dma_heap.h
create mode 100644 include/libcamera/heap.h
create mode 100644 include/libcamera/heap_allocator.h
create mode 100644 include/libcamera/udma_heap.h
rename src/libcamera/{pipeline/raspberrypi/dma_heaps.cpp => dma_heap.cpp} (69%)
create mode 100644 src/libcamera/heap_allocator.cpp
delete mode 100644 src/libcamera/pipeline/raspberrypi/dma_heaps.h
create mode 100644 src/libcamera/udma_heap.cpp
--
2.39.2.722.g9855ee24e9-goog
More information about the libcamera-devel
mailing list