[libcamera-devel] [PATCH v3 0/3] MappedFrameBuffer: Move its own component.
Kieran Bingham
kieran.bingham at ideasonboard.com
Mon Aug 9 15:29:26 CEST 2021
This series has grown from the original single patch, to now clean up
the unused sys/mman.h usages throughout the code base, prior to moving
MappedFrameBuffer to its own source component.
After this, we convert the MappedFrameBuffer to use the new Flags class
with scoped enum classes to represent the flags.
Kieran Bingham (3):
src: Remove all unused sys/mman.h inclusions
libcamera: Give MappedFrameBuffer its own implementation
libcamera: MappedFrameBuffer: Use typed Flags<MapFlags>
include/libcamera/internal/framebuffer.h | 36 ----
.../libcamera/internal/mapped_framebuffer.h | 63 ++++++
include/libcamera/internal/meson.build | 1 +
src/android/camera_device.cpp | 1 -
src/android/camera_device.h | 2 -
src/android/camera_stream.cpp | 2 +
src/android/camera_stream.h | 2 -
src/android/jpeg/encoder_libjpeg.cpp | 4 +-
src/android/jpeg/encoder_libjpeg.h | 1 -
src/android/jpeg/post_processor_jpeg.h | 2 -
src/android/jpeg/thumbnailer.cpp | 4 +-
src/android/jpeg/thumbnailer.h | 2 +-
src/android/mm/generic_camera_buffer.cpp | 3 +-
src/android/post_processor.h | 2 -
src/android/yuv/post_processor_yuv.cpp | 3 +-
src/ipa/ipu3/ipu3.cpp | 5 +-
src/ipa/raspberrypi/raspberrypi.cpp | 5 +-
src/libcamera/framebuffer.cpp | 146 -------------
src/libcamera/ipa_module.cpp | 1 -
src/libcamera/mapped_framebuffer.cpp | 195 ++++++++++++++++++
src/libcamera/meson.build | 1 +
.../pipeline/raspberrypi/raspberrypi.cpp | 1 -
src/libcamera/v4l2_videodevice.cpp | 1 -
src/v4l2/v4l2_camera_proxy.h | 1 -
src/v4l2/v4l2_compat_manager.h | 1 -
test/mapped-buffer.cpp | 8 +-
26 files changed, 281 insertions(+), 212 deletions(-)
create mode 100644 include/libcamera/internal/mapped_framebuffer.h
create mode 100644 src/libcamera/mapped_framebuffer.cpp
--
2.30.2
More information about the libcamera-devel
mailing list