From patchwork Fri Oct 2 09:33:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 9903 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 8A320C3B5B for ; Fri, 2 Oct 2020 09:33:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5446563B27; Fri, 2 Oct 2020 11:33:20 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="kYCteFNK"; dkim-atps=neutral Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DC51163B32 for ; Fri, 2 Oct 2020 11:33:17 +0200 (CEST) Received: by mail-wr1-x435.google.com with SMTP id s12so1008193wrw.11 for ; Fri, 02 Oct 2020 02:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zWOIeY/4BBoHvefHC8wdDNSshs9CTSgjzBE6ohOV7Po=; b=kYCteFNKCsoNjTQRTVQfDiOe2mE7ifjtyBVaTX6XkzuWhoqaNxTWsI5obuJGOwoCIe v2B6TvGZoscLItj9fCT1e5I5QFa1AnN0Ax4f1yTTtI86RL0PQn7yzZAbf9o0OiAH4rIt DQtN+7MsNIABFBbLPgwu5QGrmkKjlak6+LnvM2QZWDJbsOiWkgtVt6ngaOlZLmDLz98L 2RjaFKyxzyC2kbtIWizUrT4bH1mXYG6/84Xbpfv8Nri34Hmtqn0xhflW4qEGwXLmKQ9M aj1/G8yGxhOJ+XH8Le4XNXvrwhlpDszaIi2lSp1hKn1I/4sJ4ZJ+bNnjYvaDzxREAipu pmYA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=zWOIeY/4BBoHvefHC8wdDNSshs9CTSgjzBE6ohOV7Po=; b=ZUFA+c7/3GspFJ6365P2b5jlw9HDIihi7H3fkPUt7tN0dxnP1jJjY3r4pMLiPmDb4s WUAMYq0LCTElLw+6QdQZHlJRyW42UoDFZGcq4t53rtJc9LtFRsMMBwJc3R3rx1Ikazyu 3MAuSlKJIWt14lUHRDWpcuy1owCUjkhNJNBSrB9F1qyfBHTeEnrrPiFcqzlP4Y66e+Zv 9BOPq+YZLsro27sevcgcdngClmdDJMchEiZyb/vmCvgBi/+agyyAoZZNfoaGWrEKD7KH D7IdllK3AlD7eTqOG1PXTxpdWnG6xvnRUmJKOz6f1e06jiQzNiXv8IcImu4oeohvtrmv G8GA== X-Gm-Message-State: AOAM531WuFk0NsobHaj8qQDyH2dt9CHkyVYOB+RGFSoCJGeGJUiUPLj1 C5S6Nmqlm6FF2bkjvKUYt0u+Zjo5C/ZHfg== X-Google-Smtp-Source: ABdhPJzbndcOy5YoDEM3TDY/0Ji46Iz16tub26wcO0Tygnbj1bQjbpBBf2kP9qL6/P3qixX3PIAjxQ== X-Received: by 2002:adf:ffd0:: with SMTP id x16mr2019933wrs.104.1601631197311; Fri, 02 Oct 2020 02:33:17 -0700 (PDT) Received: from naushir-VirtualBox.pitowers.org ([2a00:1098:3142:14:a00:27ff:fe4d:f6a2]) by smtp.gmail.com with ESMTPSA id t203sm1101145wmg.43.2020.10.02.02.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 02:33:16 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 2 Oct 2020 10:33:09 +0100 Message-Id: <20201002093309.109180-6-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201002093309.109180-1-naush@raspberrypi.com> References: <20201002093309.109180-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 5/5] DNI: qcam: Simple test to pass controls on camera::start() 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" DO NOT MERGE --- src/qcam/main_window.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index ecb9dd66..cb24eb11 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -25,6 +25,7 @@ #include #include +#include #include #include "dng_writer.h" @@ -367,6 +368,7 @@ void MainWindow::toggleCapture(bool start) int MainWindow::startCapture() { StreamRoles roles = StreamKeyValueParser::roles(options_[OptStream]); + ControlList controls(libcamera::controls::controls); std::vector requests; int ret; @@ -509,7 +511,10 @@ int MainWindow::startCapture() framesCaptured_ = 0; lastBufferTime_ = 0; - ret = camera_->start(); + controls.set(libcamera::controls::AeEnable, false); + controls.set(libcamera::controls::ExposureTime, 60000); + controls.set(libcamera::controls::AnalogueGain, 6.0); + ret = camera_->start(&controls); if (ret) { qInfo() << "Failed to start capture"; goto error;