[libcamera-devel,10/11] apps: qcam: Remove restriction on raw-only streams
diff mbox series

Message ID 20230318234014.29506-11-dan.scally@ideasonboard.com
State New
Headers show
Series
  • Support OV7251 in IPU3 pipeline and qcam
Related show

Commit Message

Dan Scally March 18, 2023, 11:40 p.m. UTC
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@ideasonboard.com>
---
 src/apps/qcam/main_window.cpp | 6 ------
 1 file changed, 6 deletions(-)

Patch
diff mbox series

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) {