[libcamera-devel,0/4] libcamera: Introduce SensorConfiguration
mbox series

Message ID 20230724123907.29086-1-jacopo.mondi@ideasonboard.com
Headers show
Series
  • libcamera: Introduce SensorConfiguration
Related show

Message

Jacopo Mondi July 24, 2023, 12:39 p.m. UTC
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.

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     |  64 +++++-
 .../pipeline/rpi/common/pipeline_base.h       |   4 +-
 src/libcamera/pipeline/rpi/vc4/vc4.cpp        |  30 ++-
 13 files changed, 599 insertions(+), 15 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