diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-11-03 15:30:41 +0200 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-12 08:07:25 +0100 |
commit | 62dfc8e0d00a4e40e99e38b266d4d5a7ae1244f7 (patch) | |
tree | 747eba83a346d0c0bb2fb4f4726776fbfecd3dc3 | |
parent | 63ed4b27df084241ca688bad848e9406a88b2c64 (diff) |
libcamera: pipeline: vivid: Set camera properties
Initialize the CameraData properties with Location and Model.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/libcamera/pipeline/vivid/vivid.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/vivid/vivid.cpp b/src/libcamera/pipeline/vivid/vivid.cpp index 2a3f9f0b..c81880da 100644 --- a/src/libcamera/pipeline/vivid/vivid.cpp +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -13,6 +13,7 @@ #include <libcamera/control_ids.h> #include <libcamera/controls.h> #include <libcamera/formats.h> +#include <libcamera/property_ids.h> #include "libcamera/internal/device_enumerator.h" #include "libcamera/internal/media_device.h" @@ -349,7 +350,7 @@ int VividCameraData::init() video_->bufferReady.connect(this, &VividCameraData::bufferReady); - /* Initialise the supported controls. */ + /* Initialise the supported controls and properties. */ const ControlInfoMap &controls = video_->controls(); ControlInfoMap::Map ctrls; @@ -379,6 +380,9 @@ int VividCameraData::init() controlInfo_ = std::move(ctrls); + properties_.set(properties::Location, properties::CameraLocationExternal); + properties_.set(properties::Model, "Virtual Video Device"); + return 0; } |