summaryrefslogtreecommitdiff
path: root/src/apps/cam/sdl_sink.h
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2024-09-16 01:24:18 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-09-25 23:53:44 +0300
commit9bbccb97fa0debc86d906fdfc1fbedbd50de5d06 (patch)
tree5794a9de150d8800bcfc4de2631fe6b06588ac1c /src/apps/cam/sdl_sink.h
parent44b49af7a0a870d5fce5c162e3998ef3696912d5 (diff)
libcamera: controls: Add enum names and values map to ControlId
Add to ControlId information about the names and values of enum, in the event that the ControlId is an enum type. This allows applications to query the ControlId for the names of the enum values, so that they can be displayed on a UI, for example. Without this, it was necessary to use macros of NameOfControlNameValueMap, which is difficult to use and is very inflexible. There already exists a map from name -> value in generated code. Reuse this and pass it to the ControlId constructor, which in turn generates the reverse map. The reverse map is then exposed to applications. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/apps/cam/sdl_sink.h')
0 files changed, 0 insertions, 0 deletions