From patchwork Tue Aug 9 20:50:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Utkarsh Tiwari X-Patchwork-Id: 17052 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 8B695BE173 for ; Tue, 9 Aug 2022 20:50:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C96E36332B; Tue, 9 Aug 2022 22:50:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1660078256; bh=Z41EnQNARAf2SKEoozgVkEOKuv2hNF3qVfIBjqost4c=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EpYfZQ0uNhKJOytDdcqqnP0zKIMDDCKSjEgdh3ARm4rZD3PTIPOfjihZZ21UTz8lg 3qaLte4HDNRgOQQQ3WOQEv5ip89T8NzW9Me0kcDc1gbmU8tr16F/cdkmcIn4WfqtwD 2o0umAYB3rbJwrURK1OX8EP2mNF/KmX/NQ3lKBRLzfXlM9Zs8Oye/bh1c+KK5fGHFK 57HNnakEDj1tsg8DPPUNeTY0pnFsTliTQSErpE0FlDVCXq4iv/2bkiD6GEJnUU7iAS ea9dvX1yHGERhouk0pcYVl44V+h6/afrbqbnVCW5+C3r5updnL9N/bd42UlnGgJ0oj zQz9v9yLuRJ2g== Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C6FB061FAA for ; Tue, 9 Aug 2022 22:50:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jq9E1ZbA"; dkim-atps=neutral Received: by mail-pg1-x531.google.com with SMTP id d7so12405900pgc.13 for ; Tue, 09 Aug 2022 13:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=7iq/59qRBFEXTwMlcaItyVibTfUGjhPF00QukMOfbVU=; b=jq9E1ZbAWWZzzGokAMc3gisRMCwgVXR8VtHnF3p+EFuo0SMiuJvjX3LQGbp2wzxHRa 2fSA6sKb3Mbvfqisj+dkDJ2op9h3uXV9rQhpcfjWYaUpNkwaxhPtkKnJr1HRCLmS9AB5 S5H7qH8yCbk2JwK3ACdxnSHgKFp5FuHHv2g+jDrgVGMQ3vNVNgRTBXXT02HjbwOROev6 HNQaeBhr9/zj7EIC5VtQLrVWDAwUBlmgljYKZrBCVg696Q4arHmHO/Vq0de3FxKv+L3c 86NHhWJdSniJe64w+0hW9UtUkP3nhkS3d35/Y4t1BnJ6XIRzmvBW9EF6STaTdwHO68pd sr+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=7iq/59qRBFEXTwMlcaItyVibTfUGjhPF00QukMOfbVU=; b=abQ/v6fJ1LCDskKqK8UoXxVSA+Kf6bth8rmTVOoejop9zf9tvux6Lu0FBl3gWeUiYQ diKB60RaqNdK5DqAiPp8ILJwzMbVQZZvywoby6IcOkJtughlA9Ia5wXMpxpt/FQKWB6E EQPZR8VXpzEZemvgbDYlpDqUoTsnvTPBHvoqIfZs5d+J1oDSjutrPWQkP3evRbsV8bfw e7W8XN/2PNm5ld/4vgOgrucqIA/Rlwir4n7+0I5jG+Ne4ExxHtxVDshWkY2nm1u8z5PT +QBlFNlF3iz3JaZuy/Km3E5JAdR32cx61/2t1Rzob47a8MoaOJpzymtBSzc3EKGlStpV j4Eg== X-Gm-Message-State: ACgBeo33nGtzy+l+59HjfdxxNgalODFiSe6bQCXwSirZREb4Bn+WPYuN lUWW8pc1UVzPxWPk97IsozrUJE2/5L4= X-Google-Smtp-Source: AA6agR4chgzZnEGzJnAvOEmBd9Cd0i9DI5Lt7DGGXd+UETvF9jG5PnECxZyRb7Zp4o/P5IxpiL6lQA== X-Received: by 2002:a05:6a00:2490:b0:52f:206c:5e3b with SMTP id c16-20020a056a00249000b0052f206c5e3bmr13214992pfv.47.1660078254021; Tue, 09 Aug 2022 13:50:54 -0700 (PDT) Received: from localhost.localdomain ([2404:bd00:3:d2bc:2358:3bcd:fb4f:cbb7]) by smtp.gmail.com with ESMTPSA id d3-20020a623603000000b0052d981e7842sm301936pfa.208.2022.08.09.13.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 13:50:53 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 10 Aug 2022 02:20:34 +0530 Message-Id: <20220809205042.344923-1-utkarsh02t@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v7 0/8] Introduce capture scripts to qcam 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-Patchwork-Original-From: Utkarsh Tiwari via libcamera-devel From: Utkarsh Tiwari Reply-To: Utkarsh Tiwari Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Difference from v6 : 1. This series now merges https://lists.libcamera.org/pipermail/libcamera-devel/2022-August/033137.html 2. The capture script button now lives in the CameraSelectorDialog 3. We now show the capture selected scripts path 4. Now the implementation of CameraSelectorDialog lives in it .cpp Normal Introduction: Hi, This series aims to add a Dialog box which can be used to select camera while at startup and trying to switch cameras. The series first adds the dialog to be used just for selection of camera at startup and then moves on to replace the current QCombBox in favour of the dialog box. We already got the ability to load capture scripts to run the capture sessions in cam. This is patch series introduces both a GUI way and a cmdline way to load the capture script in qcam. With this we get the ability to load a capture script and to stop a running one. It utilizes the parser in cam. A Screenshot : https://pasteboard.co/mO811IF3RQtk.png Utkarsh Tiwari (8): qcam: Use QDialog for selection of cameras at startup qcam: Support Hotplug for Camera Selection Dialog qcam: MainWindow: Replace cameraCombo_ with CameraSelectorDialog qcam: CamSelectDialog: Display Location and Model propety of camera qcam: Queue requests only through MainWindow::queueRequest() qcam: CamSelectDialog: Add capture script button qcam: CamSelectDialog: Display Capture script path qcam: Add --script to load capture script src/qcam/cam_select_dialog.cpp | 203 +++++++++++++++++++++++++++++++++ src/qcam/cam_select_dialog.h | 76 ++++++++++++ src/qcam/main.cpp | 3 + src/qcam/main_window.cpp | 144 ++++++++++++++++------- src/qcam/main_window.h | 20 +++- src/qcam/meson.build | 4 + 6 files changed, 403 insertions(+), 47 deletions(-) create mode 100644 src/qcam/cam_select_dialog.cpp create mode 100644 src/qcam/cam_select_dialog.h