[libcamera-devel,0/1] Add CrOS JEA implementation in src/android
mbox series

Message ID 20220406094130.189862-1-chenghaoyang@chromium.org
Headers show
Series
  • Add CrOS JEA implementation in src/android
Related show

Message

Harvey Yang April 6, 2022, 9:41 a.m. UTC
Hi everyone,

This CL is the first draft of adding CrOS JEA as the backend of the
encoder in src/android/jpeg.

It's the first time I added a patch in libcamera, so it's very likely I
missed any critical things. Please help review and give suggestions.
Thanks!

BR,
Harvey

Harvey Yang (1):
  Add CrOS 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          | 37 +++++----
 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, 367 insertions(+), 101 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