[libcamera-devel,v2,0/6] Vendor controls and properties
mbox series

Message ID 20231121145350.5956-1-naush@raspberrypi.com
Headers show
Series
  • Vendor controls and properties
Related show

Message

Naushir Patuck Nov. 21, 2023, 2:53 p.m. UTC
Hi,

Here's version 2 of the vendor controls series.  The biggest change from version
1 is how we define vendor controls.  As requested, all controls in a particular
YAML file now belong to one specific vendor.  I've also incorporated all of
Laurent's preliminary suggestions into the patches.

Thanks,
Naush

Naushir Patuck (6):
  controls: Add vendor control/property support to generation scripts
  controls: Update argument handling for controls generation scripts
  controls: build: Allow separate vendor control YAML files
  libcamera: control: Add vendor control id range reservation
  libcamera: controls: Use vendor tags for draft controls and properties
  documentation: Document vendor specific control and properties
    handling

 Documentation/guides/pipeline-handler.rst     |  52 ++++
 include/libcamera/control_ids.h.in            |   6 +-
 include/libcamera/meson.build                 |  61 ++++-
 include/libcamera/property_ids.h.in           |   8 +-
 meson.build                                   |   2 +
 src/ipa/rpi/common/ipa_base.cpp               |   2 +-
 src/ipa/rpi/vc4/vc4.cpp                       |   2 +-
 src/libcamera/control_ids.cpp.in              |  16 +-
 src/libcamera/control_ids.yaml                | 233 +----------------
 src/libcamera/control_ids_draft.yaml          | 240 ++++++++++++++++++
 src/libcamera/control_ids_rpi.yaml            |  16 ++
 src/libcamera/control_ranges.yaml             |  18 ++
 src/libcamera/meson.build                     |  22 +-
 src/libcamera/property_ids.cpp.in             |  16 +-
 src/libcamera/property_ids.yaml               |  34 +--
 src/libcamera/property_ids_draft.yaml         |  39 +++
 src/py/libcamera/gen-py-controls.py           |  78 +++---
 src/py/libcamera/meson.build                  |  28 +-
 src/py/libcamera/py_controls_generated.cpp.in |   6 +-
 .../libcamera/py_properties_generated.cpp.in  |   4 +-
 utils/gen-controls.py                         | 164 ++++++++----
 21 files changed, 643 insertions(+), 404 deletions(-)
 create mode 100644 src/libcamera/control_ids_draft.yaml
 create mode 100644 src/libcamera/control_ids_rpi.yaml
 create mode 100644 src/libcamera/control_ranges.yaml
 create mode 100644 src/libcamera/property_ids_draft.yaml