[PATCH 0/4] Add direction field to ControlId

Paul Elder paul.elder at ideasonboard.com
Mon Nov 25 16:29:59 CET 2024


This patch series add support for querying the ControlId for the
direction that it can be passed.

This used to only be mentioned in the control id definitions as "This
control can only be returned in metadata" so this codifies it and allows
this information to be queried by applications.

This is an ABI breaking change, so I really want to sneak it in before
the 0.4.0 release that's coming imminently...

Patches 1 and 2 prepare control definitions and parsing, while patch 3
adds the actual support. Patch 4 enables visualization via cam.

Paul Elder (4):
  libcamera: controls: Populate direction field in control definitions
  utils: codegen: controls.py: Parse direction information
  libcamera: controls: Add support for querying direction information
  apps: cam: Print control direction information

 include/libcamera/controls.h         | 27 +++++++++++++++++-
 src/apps/cam/camera_session.cpp      | 10 +++++--
 src/libcamera/control_ids.cpp.in     |  4 +--
 src/libcamera/control_ids_core.yaml  | 12 ++++++++
 src/libcamera/control_ids_draft.yaml |  7 +++++
 src/libcamera/controls.cpp           | 42 ++++++++++++++++++++++++++--
 utils/codegen/controls.py            | 21 ++++++++++++++
 7 files changed, 116 insertions(+), 7 deletions(-)

-- 
2.39.2



More information about the libcamera-devel mailing list