From patchwork Fri Jan 31 09:52:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 2762 Return-Path: Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EAA5B608D7 for ; Fri, 31 Jan 2020 10:55:00 +0100 (CET) Received: by mail-wr1-x444.google.com with SMTP id b6so7908310wrq.0 for ; Fri, 31 Jan 2020 01:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id; bh=V1p7Lq4opgBPRQ+ZO2nnJJXMFWWuHwtv7jcw0/7hcyQ=; b=eo/KEEpRuNzAUYS1v1Ug4DlRyh0Iq1CI3ITZxlhNWV8dGWkOaeKYpOgEwKIWkEPVlK nJZycumV2MtYloAR0E6NutKbKC5WvyR+hBTCTZVi6cFe4BMou7hVRe6UvIdFga7a4v4y 8utq5wocW6hRaPjShGum8Y3fcy1or1ZJ46c/i47Ws28AF94Vjk688Tr2pAnLRH7/8JBa yXGDrX90DYHihY07MKgAsWO6qcH6U2tt4HU0lqlATrpwwBSchOoAKs5q/q1o+HS7WM/I eVvxhZiNSi0ZUUXRNtciezsUN3JHaRyFtB3aikxO/NeJhgpKNuNuE/cumyUvl/fQYt1M BbOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=V1p7Lq4opgBPRQ+ZO2nnJJXMFWWuHwtv7jcw0/7hcyQ=; b=pkpqWs0utKu5Kp4v54Mr7sy9ju61uuzELoLPE8wEa8J88HZJNsO3KtNBozb8e2zgKW LA20/MC6wKd7R9H/OfLW/Cak835LDaG9pfk/vD2Y8vhmjwpoAV4ZQKyggwvEA8ljmcLb GiGro+n/g9VnuIt/52LZdZybJg0esSC91zYhrny2GG1lytMm4QcvxQwzSYDu6AFp3gt2 RlIFg9CKHtLcbZThJvN7tXGSCj8F+0qgxATmrFcAPduesYwvocBdGg+BWF2nDaDzDWpL W3+aWhH9kvkeCByP56BEfq0fI0WrDvQGHYgwrAzhFzppwWwHVyL/j9pAp7BU4eKisLN7 kOIQ== X-Gm-Message-State: APjAAAVba9qPHAJSrXNRKq3SDqMru44fWNyCSeSl5LHwA7mAPGYzj1TJ Wql79wuq708/4mBEnh1AM9XssRCJE4jjfw== X-Google-Smtp-Source: APXvYqyMAEmb6a5ydYx3cowwTZDpsIAFumwPtM6noBug8znk3cw7GQ6STdmMeD8nhEW5RD1ZSzlf0w== X-Received: by 2002:a5d:6445:: with SMTP id d5mr9687557wrw.244.1580464500350; Fri, 31 Jan 2020 01:55:00 -0800 (PST) Received: from naushir-VirtualBox.pitowers.org (cust51-dsl50.idnet.net. [212.69.50.51]) by smtp.gmail.com with ESMTPSA id y131sm10704335wmc.13.2020.01.31.01.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 01:54:59 -0800 (PST) From: naush@raspberrypi.com To: libcamera-devel@lists.libcamera.org Date: Fri, 31 Jan 2020 09:52:45 +0000 Message-Id: <20200131095245.25906-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.17.1 Subject: [libcamera-devel] [PATCH] QCam: Swich default stream role to viewfinder. X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2020 09:55:01 -0000 From: Naushir Patuck QCam currently only displays a standard viewfinder. As such set the StreamRole parameter to Viewfinder so that the pipeline handlers can setup the appropriate resolutions and formats. Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- src/qcam/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index df51fa8..70a3e61 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -125,7 +125,7 @@ int MainWindow::startCapture() { int ret; - config_ = camera_->generateConfiguration({ StreamRole::VideoRecording }); + config_ = camera_->generateConfiguration({ StreamRole::Viewfinder }); StreamConfiguration &cfg = config_->at(0); if (options_.isSet(OptSize)) {