[libcamera-devel] [PATCH v3 00/11] android: camera_device: Fix JPEG/RAW sizes

Jacopo Mondi jacopo at jmondi.org
Tue Sep 8 15:41:31 CEST 2020


This v3 takes into account comments from Laurent and Hiro.

To re-cap the goal of the series is:
Patches 01->05:
- Claim support for JPEG sizes based on the supported YCbCr_888 sizes.
- Enumerate the RAW sizes

Patches 06->12
The goal is to make CameraStream a class which provides a read-only interface
and enforce the creation of CameraStream instances only when all the requested
information (size, format and associated libcamera::StreamConfiguration index)
are available. In the hope this paves ahead to ease introducing more HAL-only
streams by making the CameraStream class the intermediate representation of an
Android stream mapped to a libcamera stream.

Notabled changes:
v2->v3:
- Drop return from CameraConfiguration::addConfig()
- Make encoder * a unique_ptr in CameraStream
- Avoid a few loops and flags as suggested by Laurent and Hiro
- Improve debug output

Thanks
  j

Jacopo Mondi (11):
  android: camera_device: Refuse unsupported formats
  android: camera_device: Generate JPEG sizes
  android: camera_device: Add debug to stream initialization
  android: camera_device: Break out size calculation
  android: camera_device: Generate RAW resolutions
  android: camera_device: Get rid of stream counter
  android: camera_device: Use camera3 stream format
  android: camera_device: Use Android format
  android: camera_device: Rework CameraStream handling
  android: camera_device: Set Encoder at construction
  android: camera_device: Make CameraStream a class

 src/android/camera_device.cpp | 228 +++++++++++++++++++++-------------
 src/android/camera_device.h   |  31 +++--
 2 files changed, 167 insertions(+), 92 deletions(-)

--
2.28.0



More information about the libcamera-devel mailing list