[libcamera-devel] [PATCH 10/11] apps: qcam: Remove restriction on raw-only streams

Daniel Scally dan.scally at ideasonboard.com
Sun Mar 19 00:40:13 CET 2023


qcam currently will not allow a single stream with the Raw role. If
the format output by a Camera's Raw configuration is supported by
the viewfinder there doesn't seem to be a reason not to allow it.
Remove the restriction.

Signed-off-by: Daniel Scally <dan.scally at ideasonboard.com>
---
 src/apps/qcam/main_window.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/apps/qcam/main_window.cpp b/src/apps/qcam/main_window.cpp
index fb2db4aa..a9bb733e 100644
--- a/src/apps/qcam/main_window.cpp
+++ b/src/apps/qcam/main_window.cpp
@@ -367,12 +367,6 @@ int MainWindow::startCapture()
 
 	/* Verify roles are supported. */
 	switch (roles.size()) {
-	case 1:
-		if (roles[0] != StreamRole::Viewfinder) {
-			qWarning() << "Only viewfinder supported for single stream";
-			return -EINVAL;
-		}
-		break;
 	case 2:
 		if (roles[0] != StreamRole::Viewfinder ||
 		    roles[1] != StreamRole::Raw) {
-- 
2.34.1



More information about the libcamera-devel mailing list