[libcamera-devel] [PATCH v2 0/4] Add CrOS JEA implementation
Harvey Yang
chenghaoyang at chromium.org
Tue Apr 26 11:00:25 CEST 2022
Hi everyone,
This CL is the second draft of adding CrOS JEA as the backend of the
encoder in src/android/jpeg.
According to Laurent's comments, splitting the CL into four pieces to
review them more easily. More comments are welcome. Thanks!
BR,
Harvey
Harvey Yang (4):
Allow inheritance of FrameBuffer
Add AndroidFrameBuffer and replace FrameBuffer in src/android
Rework JPEG encoder API and update PostProcessorJpeg and
EncoderLibJpeg
Add JEA implementation
include/libcamera/framebuffer.h | 3 +-
src/android/android_framebuffer.cpp | 32 ++++++++
src/android/android_framebuffer.h | 28 +++++++
src/android/camera_device.cpp | 3 +-
src/android/cros/camera3_hal.cpp | 3 +
src/android/frame_buffer_allocator.h | 7 +-
src/android/jpeg/cros_post_processor_jpeg.cpp | 14 ++++
src/android/jpeg/encoder.h | 9 +-
src/android/jpeg/encoder_jea.cpp | 82 +++++++++++++++++++
src/android/jpeg/encoder_jea.h | 35 ++++++++
src/android/jpeg/encoder_libjpeg.cpp | 70 ++++++++++++++++
src/android/jpeg/encoder_libjpeg.h | 21 ++++-
.../jpeg/generic_post_processor_jpeg.cpp | 14 ++++
src/android/jpeg/meson.build | 16 ++++
src/android/jpeg/post_processor_jpeg.cpp | 60 ++------------
src/android/jpeg/post_processor_jpeg.h | 11 +--
src/android/meson.build | 6 +-
.../mm/cros_frame_buffer_allocator.cpp | 13 +--
.../mm/generic_frame_buffer_allocator.cpp | 11 +--
19 files changed, 352 insertions(+), 86 deletions(-)
create mode 100644 src/android/android_framebuffer.cpp
create mode 100644 src/android/android_framebuffer.h
create mode 100644 src/android/jpeg/cros_post_processor_jpeg.cpp
create mode 100644 src/android/jpeg/encoder_jea.cpp
create mode 100644 src/android/jpeg/encoder_jea.h
create mode 100644 src/android/jpeg/generic_post_processor_jpeg.cpp
create mode 100644 src/android/jpeg/meson.build
--
2.36.0.rc2.479.g8af0fa9b8e-goog
More information about the libcamera-devel
mailing list