summaryrefslogtreecommitdiff
path: root/src/cam
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-29 03:59:45 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-04 14:11:25 +0300
commit37958dfd713dd00d4a71a78a6a45f8016ad82e65 (patch)
treec8f958dc5a9877d6d6afe95bcf8e960e3ca1f722 /src/cam
parent4f1d1a48fe7ebe1282d7608a59cb059e1367e584 (diff)
libcamera: Replace toString with operator<<() for geometry classes
Now that geometry classes implement the stream formatting operator<<(), use it instead of the toString() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam')
-rw-r--r--src/cam/camera_session.cpp3
-rw-r--r--src/cam/kms_sink.cpp4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/cam/camera_session.cpp b/src/cam/camera_session.cpp
index 0428b538..bacb4256 100644
--- a/src/cam/camera_session.cpp
+++ b/src/cam/camera_session.cpp
@@ -150,8 +150,7 @@ void CameraSession::infoConfiguration() const
<< std::endl;
for (const Size &size : formats.sizes(pixelformat))
- std::cout << " - " << size.toString()
- << std::endl;
+ std::cout << " - " << size << std::endl;
}
index++;
diff --git a/src/cam/kms_sink.cpp b/src/cam/kms_sink.cpp
index da579846..29be5623 100644
--- a/src/cam/kms_sink.cpp
+++ b/src/cam/kms_sink.cpp
@@ -119,9 +119,7 @@ int KMSSink::configure(const libcamera::CameraConfiguration &config)
mode.vdisplay == cfg.size.height;
});
if (iter == modes.end()) {
- std::cerr
- << "No mode matching " << cfg.size.toString()
- << std::endl;
+ std::cerr << "No mode matching " << cfg.size << std::endl;
return -EINVAL;
}