[libcamera-devel] [PATCH v2 00/12] android: Overhaul request handling

Umang Jain umang.jain at ideasonboard.com
Tue Oct 19 13:47:50 CEST 2021


This series has been a by-product of ongoing post-processing async
work. The series attempts to de-couple how structures / information
are stored to address and complete a request incoming to out HAL.

The de-couple will help us to streamline and group information
which can be consumed by the HAL layer easily. Emphasis on construction
of HAL framework's structures (like capture results,
camera3_stream_buffer_t) in-place, to complete the requests is done
as part of the series. This de-couple will help the post-processor
async work going forwards.

Changes in v2:
- Add a new patch 12/12 renaming a function
- Add a \todo note in 03/11 on spcific scenario of (0,0) result metadata
  pack playing well with post-proessor API
- Fix commit message in 10/11

Laurent Pinchart (8):
  android: camera_request: Turn struct into a class
  android: camera_device: Build capture_result dynamically
  android: camera_stream: Pass StreamBuffer to process()
  android: camera_stream: Return non-const pointer from camera3Stream()
  android: camera_device: Use abortRequest() instead of open-coding it
  android: camera_request: Don't embed full camera3_stream_buffer_t
  android: camera_stream: Don't close fence if wait fails
  android: camera_stream: Define explicit move constructor and
    destructors

Umang Jain (4):
  camera_device: Remove private scope of Camera3RequestDescriptor
  android: camera_stream: Plumb process() with Camera3RequestDescriptor
  android: camera_device: Create struct to track per stream buffer
  android: camera_metadata: Rename get() to getMetadata()

 src/android/camera_device.cpp            | 208 ++++++++++-------------
 src/android/camera_device.h              |  27 +--
 src/android/camera_metadata.cpp          |   8 +-
 src/android/camera_metadata.h            |   4 +-
 src/android/camera_request.cpp           |  53 ++++++
 src/android/camera_request.h             |  62 +++++++
 src/android/camera_stream.cpp            |  29 ++--
 src/android/camera_stream.h              |  12 +-
 src/android/jpeg/post_processor_jpeg.cpp |   6 +-
 src/android/jpeg/post_processor_jpeg.h   |   3 +-
 src/android/meson.build                  |   1 +
 src/android/post_processor.h             |   5 +-
 src/android/yuv/post_processor_yuv.cpp   |   3 +-
 src/android/yuv/post_processor_yuv.h     |   3 +-
 14 files changed, 245 insertions(+), 179 deletions(-)
 create mode 100644 src/android/camera_request.cpp
 create mode 100644 src/android/camera_request.h

-- 
2.31.0



More information about the libcamera-devel mailing list