libcamera/src
Jacopo Mondi 62c82ab93f libcamera: controls: Use ControlIdMap in deserialization
Introduce a new field in the controls serialization protocol to
allow discerning which ControlIdMap a ControlInfoMap refers to.

The newly introduced IdMapType enumeration describes the possible
info maps:
- Either the globally available controls::controls and
  properties::properties maps, which are valid across IPC boundaries
- A ControlIdMap created locally by the V4L2 device, which is not valid
  across the IPC boundaries

At de-serialization time the idMapType field is inspected and
- If the idmap is a globally defined one, there's no need to create
  new ControlId instances when populating the de-serialized
  ControlInfoMap. Use the globally available map to retrieve the
  ControlId reference and use it.
- If the idmap is a map only available locally, create a new ControlId
  as it used to happen before this patch.

As a direct consequence, this change allows us to perform lookup by
ControlId reference on de-serialized ControlIdMap that refers to the
libcamera defined controls::controls and properties::properties.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-08-12 10:08:28 +02:00
..
android libcamera: MappedFrameBuffer: Use typed Flags<MapModes> 2021-08-10 10:57:04 +01:00
cam cam: Add support for viewfinder through DRM/KMS 2021-08-05 16:23:11 +03:00
gstreamer gstreamer: Update format specifier in Request Pad template 2021-08-05 14:32:02 +09:00
ipa libcamera: MappedFrameBuffer: Use typed Flags<MapModes> 2021-08-10 10:57:04 +01:00
lc-compliance lc-compliance: Add list and filter parameters 2021-07-06 12:41:03 +02:00
libcamera libcamera: controls: Use ControlIdMap in deserialization 2021-08-12 10:08:28 +02:00
qcam qcam: Support OpenGL ES 2.0 2021-08-03 23:37:39 +03:00
v4l2 src: Remove all unused sys/mman.h inclusions 2021-08-10 10:53:43 +01:00
meson.build android: Split HAL to its own shared library 2021-06-25 16:09:46 +01:00