diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-11-03 15:30:41 +0200 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-06-29 11:40:25 +0100 |
commit | 3fcd71595638e25e1c4f496e173c89a48e337612 (patch) | |
tree | 25ac04a78ff1df582d782529b608fb39412cd530 | |
parent | a2dcbbe475a0d99d142c9a8ef9cf717d9f875b66 (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 b7dfd8c8..93bb8177 100644 --- a/src/libcamera/pipeline/vivid/vivid.cpp +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -12,6 +12,7 @@ #include <libcamera/control_ids.h> #include <libcamera/controls.h> #include <libcamera/formats.h> +#include <libcamera/property_ids.h> #include "libcamera/internal/camera.h" #include "libcamera/internal/device_enumerator.h" @@ -350,7 +351,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; @@ -380,6 +381,9 @@ int VividCameraData::init() controlInfo_ = ControlInfoMap(std::move(ctrls), controls::controls); + properties_.set(properties::Location, properties::CameraLocationExternal); + properties_.set(properties::Model, "Virtual Video Device"); + return 0; } |