[libcamera-devel] [PATCH v4 5/5] cam: Allow cameras with more than one stream

Niklas Söderlund niklas.soderlund at ragnatech.se
Mon Apr 8 15:50:06 CEST 2019


The libcamera API and the cam tool are now ready to make use of cameras
with more than one stream. Remove the limitation in the tool which
disallows cameras that provide more than one stream.

Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 src/cam/main.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 337933d412451e20..3f368531cc54d1e6 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -322,14 +322,6 @@ int main(int argc, char **argv)
 			goto out;
 		}
 
-		const std::set<Stream *> &streams = camera->streams();
-		if (streams.size() != 1) {
-			std::cout << "Camera has " << streams.size()
-				  << " streams, only 1 is supported"
-				  << std::endl;
-			goto out;
-		}
-
 		if (camera->acquire()) {
 			std::cout << "Failed to acquire camera" << std::endl;
 			goto out;
-- 
2.21.0



More information about the libcamera-devel mailing list