[v2,0/3] libcamera: controls: Add namespace to ControlId
mbox series

Message ID 20241016111943.1411372-1-paul.elder@ideasonboard.com
Headers show
Series
  • libcamera: controls: Add namespace to ControlId
Related show

Message

Paul Elder Oct. 16, 2024, 11:19 a.m. UTC
This series adds vendor (aka namespace) information to ControlId so that
it can be queried by appliations, and presumably used to organize the UI
with relation to control namespaces.

The word "vendor" is used instead of namespace, as it is what shows up
in control_ranges.yaml, and also since it doesn't conflict with the C++
keyword.

v2 only has minor fixes.

Paul Elder (3):
  libcamera: controls: Add vendor information to ControlId
  apps: cam: Print control vendor information when listing controls
  py: Add bindings for ControlId vendor information

 include/libcamera/controls.h         | 11 +++++++----
 src/apps/cam/camera_session.cpp      |  7 +++++--
 src/libcamera/control_ids.cpp.in     |  4 ++--
 src/libcamera/control_serializer.cpp |  2 +-
 src/libcamera/controls.cpp           | 19 +++++++++++++++----
 src/libcamera/v4l2_device.cpp        |  2 +-
 src/py/libcamera/py_main.cpp         |  5 +++--
 7 files changed, 34 insertions(+), 16 deletions(-)