[libcamera-devel] [PATCH v2 0/7] Camera sensor factory

Jacopo Mondi jacopo at jmondi.org
Thu Feb 6 19:52:40 CET 2020


Hello,
   this series contains another part that was initially sent as part of
the larger "Camera properties and compound controls" one.

This series introduces two new properties sets for sensor and lens. Their
definitions have not changed since the last submission.

It then introduces a factory for CameraSensor handler, to specialize
handling of sensor to dedicated classes. I have reworked documentation (heavily)
compared to the previous submission.

It then introduces an handler for ov5670 and register sensor properties for it.
Finally a patch not intended for merge to start discussing where information
on the lens installed on the camera module should be recorded.

The patch is based on v5 of camera properties definition sent yesterday and
require compound contol supports, it is not mergeable as it is then.

Thanks
   j

Jacopo Mondi (7):
  libcamera: properties: Define pixel array properties
  libcamera: properties: Define 'lens' properties
  libcamera: camera_sensor: Introduce CameraSensorFactory
  libcamera: sensor: Add OV5670 camera sensor
  libcamera: camera_sensor: Break out properties initialization
  libcamera: sensor: ov5670: Register pixel array properties
  DNI: libcamera: sensor: ov5670: Add lens properties

 src/libcamera/camera_sensor.cpp               | 249 ++++++++++++++----
 src/libcamera/include/camera_sensor.h         |  42 ++-
 src/libcamera/meson.build                     |   1 +
 src/libcamera/pipeline/ipu3/ipu3.cpp          |   2 +-
 src/libcamera/pipeline/rkisp1/rkisp1.cpp      |   2 +-
 src/libcamera/pipeline/vimc.cpp               |   2 +-
 src/libcamera/property_ids.yaml               | 211 +++++++++++++++
 src/libcamera/sensor/meson.build              |   3 +
 src/libcamera/sensor/ov5670.cpp               |  99 +++++++
 src/libcamera/sensor/ov5670.h                 |  27 ++
 test/camera-sensor.cpp                        |   2 +-
 .../v4l2_videodevice_test.cpp                 |   2 +-
 12 files changed, 589 insertions(+), 53 deletions(-)
 create mode 100644 src/libcamera/sensor/meson.build
 create mode 100644 src/libcamera/sensor/ov5670.cpp
 create mode 100644 src/libcamera/sensor/ov5670.h

--
2.24.1



More information about the libcamera-devel mailing list