summaryrefslogtreecommitdiff
path: root/test/pipeline
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-02 23:57:17 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-05 20:07:13 +0200
commit2e7c80a4f9d4f50a82c674863ce159856c748873 (patch)
treeed342559a62d42a4bbdff87be1431f95e23bcf07 /test/pipeline
parent53d38b19ed5b2650ad419db9cd91cf9d3392c877 (diff)
libcamera: camera: Rename name() to id()
Rename Camera::name() to camera::id() to better describe what it represents, a unique and stable ID for the camera. While at it improve the documentation for the camera ID to describe it needs to be stable for a camera between resets of the system. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/pipeline')
-rw-r--r--test/pipeline/ipu3/ipu3_pipeline_test.cpp2
-rw-r--r--test/pipeline/rkisp1/rkisp1_pipeline_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/pipeline/ipu3/ipu3_pipeline_test.cpp b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
index 34998f8f..9e647af5 100644
--- a/test/pipeline/ipu3/ipu3_pipeline_test.cpp
+++ b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
@@ -106,7 +106,7 @@ int IPU3PipelineTest::run()
{
auto cameras = cameraManager_->cameras();
for (const std::shared_ptr<Camera> &cam : cameras)
- cout << "Found camera '" << cam->name() << "'" << endl;
+ cout << "Found camera '" << cam->id() << "'" << endl;
if (cameras.size() != sensors_) {
cerr << cameras.size() << " cameras registered, but " << sensors_
diff --git a/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp b/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
index b6678ce7..acaf3c33 100644
--- a/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
+++ b/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
@@ -95,7 +95,7 @@ int RKISP1PipelineTest::run()
{
auto cameras = cameraManager_->cameras();
for (const std::shared_ptr<Camera> &cam : cameras)
- cout << "Found camera '" << cam->name() << "'" << endl;
+ cout << "Found camera '" << cam->id() << "'" << endl;
if (cameras.size() != sensors_) {
cerr << cameras.size() << " cameras registered, but " << sensors_