[libcamera-devel] [PATCH v2 0/4] libcamera: Introduce SensorConfiguration

Jacopo Mondi jacopo.mondi at ideasonboard.com
Mon Jul 31 13:31:11 CEST 2023


Hello,
  the series introduces a slightly more formally defined camera sensor model
used to model a SensorConfiguration class, an instance of which is added to
the CameraConfiguration class. The newly introduced class allows to control the
sensor configuration without abusing the RAW stream configuration, reason
being some platforms do not allow to capture RAW frames as they get produced
by the sensor.

Introduce a model for the SensorConfiguration class and implement its handling
on the RaspberryPi pipeline handler as a proof of concept.

Tested with an imx219, configured to capture frames with different sensor
configurations, without using any RAW stream.

v1->v2:
- Fix spelling in 2/4 as suggested by Naush
- Add Naush's tags


Jacopo Mondi (4):
  documentation: Introduce Camera Sensor Model
  libcamera: camera: Introduce SensorConfiguration
  libcamera: camera_sensor: Add function to apply a config
  libcamera: rpi: Handle SensorConfiguration

 Documentation/binning.png                     | Bin 0 -> 66004 bytes
 Documentation/camera-sensor-model.png         | Bin 0 -> 74270 bytes
 Documentation/camera-sensor-model.rst         | 200 ++++++++++++++++++
 Documentation/index.rst                       |   1 +
 Documentation/meson.build                     |   1 +
 Documentation/skipping.png                    | Bin 0 -> 67218 bytes
 include/libcamera/camera.h                    |  43 ++++
 include/libcamera/internal/camera_sensor.h    |   5 +
 src/libcamera/camera.cpp                      | 180 ++++++++++++++++
 src/libcamera/camera_sensor.cpp               |  86 ++++++++
 .../pipeline/rpi/common/pipeline_base.cpp     |  62 +++++-
 .../pipeline/rpi/common/pipeline_base.h       |   4 +-
 src/libcamera/pipeline/rpi/vc4/vc4.cpp        |  30 ++-
 13 files changed, 598 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/binning.png
 create mode 100644 Documentation/camera-sensor-model.png
 create mode 100644 Documentation/camera-sensor-model.rst
 create mode 100644 Documentation/skipping.png

--
2.40.1



More information about the libcamera-devel mailing list