[v4,0/3] libcamera: controls: Add enum information to ControlId
mbox series

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

Message

Paul Elder Sept. 15, 2024, 11:24 p.m. UTC
Add information about enum names and values to ControlId. This makes it
easier for applications to query the names of enums.

Patch 2/3 expands cam to print the supported enum values more nicely in
--list-controls.

Patch 3/3 adds python bindings.

v2 adds patch 3/3 (and fixes the subject of the cover letter).

v3 renames some stuff.

v4 replaces the function that outputs enum string to a function that
simply exposes the map.

Paul Elder (3):
  libcamera: controls: Add enum names and values map to ControlId
  apps: cam: Print control enum values more nicely
  py: Add bindings for ControlId enum name

 include/libcamera/controls.h     | 14 ++++++++------
 src/apps/cam/camera_session.cpp  | 19 +++++++++++++++++--
 src/libcamera/control_ids.cpp.in |  4 +++-
 src/libcamera/controls.cpp       | 15 +++++++++++++++
 src/py/libcamera/py_main.cpp     |  3 ++-
 5 files changed, 45 insertions(+), 10 deletions(-)