[libcamera-devel] [RFC 0/6] Collect Camera properties

Jacopo Mondi jacopo at jmondi.org
Tue Nov 19 17:43:55 CET 2019


Hello,
  this series introduces libcamera Properties, which are generated re-using the
Control generation infrastructure, and implement creation of the location and
rotation property by inspecting the camera sensor v4l2 controls.

Sending as RFC mostly to get feedback on the generation of the Properties from
the property_ids.yaml file.

The series depends on the kernel patches that add camera properties as v4l2
controls and on the coreboot patches for the Soraka DSTD tables that add
LOCATION and ROTATION properties to the camera ACPI nodes.
https://patchwork.kernel.org/cover/11235197/
https://jmondi.org/cgit/coreboot/commit/?id=2a6b9b51f0e2e7b4ca5f4eadf21df8468ebc1b3f
https://jmondi.org/cgit/coreboot/commit/?id=53a5fc6450bd45992f14a41848b72350f257c151

Thanks
   j

Jacopo Mondi (6):
  [TEMP] include: linux: Update v4l2-controls.h
  libcamera: controls: Add 'values' to Control
  libcamera: properties: Generate Properties
  libcamera: controls: Add default to ControlRange
  libcamera: v4l2_controls: Store default value
  libcamera: camera_sensor: Collect camera properties

 include/libcamera/controls.h          |  7 ++++-
 include/libcamera/meson.build         |  9 ++++++
 include/libcamera/property_ids.h.in   | 33 ++++++++++++++++++++
 include/linux/v4l2-controls.h         |  7 +++++
 src/libcamera/camera_sensor.cpp       | 32 ++++++++++++++++++++
 src/libcamera/controls.cpp            | 17 +++++++++--
 src/libcamera/gen-controls.py         | 35 ++++++++++++++++++++++
 src/libcamera/include/camera_sensor.h |  3 ++
 src/libcamera/meson.build             |  6 ++++
 src/libcamera/property_ids.cpp.in     | 43 +++++++++++++++++++++++++++
 src/libcamera/property_ids.yaml       | 32 ++++++++++++++++++++
 src/libcamera/v4l2_controls.cpp       |  3 ++
 12 files changed, 224 insertions(+), 3 deletions(-)
 create mode 100644 include/libcamera/property_ids.h.in
 create mode 100644 src/libcamera/property_ids.cpp.in
 create mode 100644 src/libcamera/property_ids.yaml

--
2.23.0



More information about the libcamera-devel mailing list