[libcamera-devel,v10,0/5] Add CrOS JEA implementation
mbox series

Message ID 20230208033319.1361109-1-chenghaoyang@google.com
Headers show
Series
  • Add CrOS JEA implementation
Related show

Message

Harvey Yang Feb. 8, 2023, 3:33 a.m. UTC
Hi Laurent and all,

As discussed offline, I think it's better to keep the generateThumbnail
as is. In other words, don't let `Encoder` have a different function to
generate thumbnails. In both implementations, an EncoderLibJpeg instance
will be used to generate thumbnails.

This means the previous 4/8, 5/8, 6/8 patches are no longer needed.
Please check if the new series make sense. Thanks!

BR,
Harvey

Harvey Yang (5):
  libcamera: framebuffer: Allow inheritance of FrameBuffer
  android: framebuffer: Add HALFrameBuffer and replace FrameBuffer
  android: jpeg: Add meson.build in src/android/jpeg
  android: jpeg: Pass StreamBuffer to Encoder::encoder
  android: jpeg: Add JEA implementation

 include/libcamera/framebuffer.h               |  3 +-
 src/android/camera_device.cpp                 |  5 +-
 src/android/camera_device.h                   |  3 +-
 src/android/camera_request.h                  |  3 +-
 src/android/cros/camera3_hal.cpp              |  4 +-
 src/android/cros_mojo_token.h                 | 12 ++++
 src/android/frame_buffer_allocator.h          |  7 ++-
 src/android/hal_framebuffer.cpp               | 22 ++++++++
 src/android/hal_framebuffer.h                 | 26 +++++++++
 src/android/jpeg/encoder.h                    |  5 +-
 src/android/jpeg/encoder_jea.cpp              | 56 +++++++++++++++++++
 src/android/jpeg/encoder_jea.h                | 31 ++++++++++
 src/android/jpeg/encoder_libjpeg.cpp          | 13 +++--
 src/android/jpeg/encoder_libjpeg.h            |  3 +-
 src/android/jpeg/meson.build                  | 14 +++++
 src/android/jpeg/post_processor_jpeg.cpp      | 11 +++-
 src/android/meson.build                       |  6 +-
 .../mm/cros_frame_buffer_allocator.cpp        |  9 +--
 .../mm/generic_frame_buffer_allocator.cpp     | 11 ++--
 19 files changed, 213 insertions(+), 31 deletions(-)
 create mode 100644 src/android/cros_mojo_token.h
 create mode 100644 src/android/hal_framebuffer.cpp
 create mode 100644 src/android/hal_framebuffer.h
 create mode 100644 src/android/jpeg/encoder_jea.cpp
 create mode 100644 src/android/jpeg/encoder_jea.h
 create mode 100644 src/android/jpeg/meson.build