[libcamera-devel,v3,0/4] Add CrOS JEA implementation
mbox series

Message ID 20220426091409.1352047-1-chenghaoyang@chromium.org
Headers show
Series
  • Add CrOS JEA implementation
Related show

Message

Harvey Yang April 26, 2022, 9:14 a.m. UTC
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, I added the Signed-off-by line, and
splitted the CL into four pieces to make the review easier. 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