@@ -134,6 +134,14 @@ module libcamera;
* sensor model.
*/
+/**
+ * \var IPACameraSensorInfo::id
+ * \brief The image sensor id name
+ *
+ * The sensor id name is a free-formed string that uniquely identifies the
+ * sensor in the system. The ID satisfies the requirements to be used as a camera ID.
+ */
+
/**
* \var IPACameraSensorInfo::bitsPerPixel
* \brief The number of bits per pixel of the image format produced by the
@@ -239,6 +247,7 @@ module libcamera;
*/
struct IPACameraSensorInfo {
string model;
+ string id;
uint32 bitsPerPixel;
uint32 cfaPattern;
@@ -914,6 +914,7 @@ int CameraSensor::sensorInfo(IPACameraSensorInfo *info) const
return -EINVAL;
info->model = model();
+ info->id = id();
/*
* The active area size is a static property, while the crop
The sensor ID may be required from IPA to be able to select specific tuning which can differ between sensors of the same model. For instance, sensors from the same model may have different lens for which different tuning is required. Hence this patch provides the sensor ID part of the image sensor characteristics IPACameraSensorInfo as defined in core.mojom IPA interface. Signed-off-by: Celine Laurencin <celine.laurencin@nxp.com> --- include/libcamera/ipa/core.mojom | 9 +++++++++ src/libcamera/sensor/camera_sensor.cpp | 1 + 2 files changed, 10 insertions(+)