From patchwork Wed Aug 31 05:49:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Utkarsh Tiwari X-Patchwork-Id: 17264 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 ED669C3272 for ; Wed, 31 Aug 2022 05:49:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EDFB461FBD; Wed, 31 Aug 2022 07:49:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1661924993; bh=w2Ufb0DykjL5Vyjwtd4Eeeee2J+KUojPUUcMg5JV6eo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tyIE+/8sGNAVTcFNMEGHf7N2caAYC0tfPmorKeffRtJmbFT2dNhsXSooHlbT4LGUU LtMdXMNF7Ujs0tL/WujoI7+HzUIkOyFRMSF73Pun69BQecov7e1aqIQO09q3/cppxu wy/nycWy2P7+A4lsaVN6Jy8QC+uB50F8KK9JPdb7NmEfOVGew8c2yzEc2ymQZiJFoZ B1o04Wi0PIhDrpli1WHL1ugbc6DEKsaxUE6Q0eh2JvT9NWT/LLZhDd1PoAAqd4RC+O CWeADIQifQu6RA14Lo3J26wnxkDUNsQWbnHRsXogAmc8ctEVKtR9lJ6Ea8JH+rdk5M iyOdF0zWgYMDA== Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 98BF061F9B for ; Wed, 31 Aug 2022 07:49:50 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LCJgUEah"; dkim-atps=neutral Received: by mail-pf1-x42a.google.com with SMTP id c66so3174709pfc.10 for ; Tue, 30 Aug 2022 22:49:50 -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=Icb6sHzwyecz1OdpwNRLUTdcljtoKANWs2zXbHVxxa0=; b=LCJgUEahpvUm9JZ0G45YIK7rFbEE8l86BjQjvqKogi/fTz5zciB+CSlxZP3D3XdRx+ L1VaW8ihuL+N7vt45WSQz7R8yM14r8YsQHjEykoqPLmuSt1xjH4bot6O1ssN+YEGZD1m rhscgIpgdkHvbos6zdtsbdKl3CRtnPi6bc1tenl6tvZu6s6pMA66+R8Hxjqpn6O6oSDC LRM8jtM1KPjyn9BttlB6mnL3AK4NTdPr4Pbv2XPzfbJgOGOlxmLKaCd/R+RLelT0WVfC 9N0LjPAX6TanvB8nHyxQMNzmdI/J6FQpG0tvh2dDVpXEp3i/nncXEPKhtJA4uf6VOpQW uvDw== 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=Icb6sHzwyecz1OdpwNRLUTdcljtoKANWs2zXbHVxxa0=; b=cyZ48LAAsJQ23dfkcgP6SKCw0QMx3weLAyft5WvP7YThXlDVc4Riyo+YBcgQF3QRv2 5rlLMhXs7rp2us24qGk/eFsDNuATZrArErvJJPDL6f5F1R2/RV4ECdydynFDmaijvfFB 3FoTO6DcXUqOlsFbdzEqof2c4VF9eAMNuXwcGoHl0/ekHD4xono1p4judIbmqs2qZx2d NdCwBrTIbASoj7icgpn21quKh2BQjLyl6VkHE/3lQbbEHL71CRMnYTN3f3TyjJXCTRqj irCJ2XebRabGLqaMHrMrWECGIoXJra1dXl4ehzcwOelfqAFMwmbjpnF9uteZjblbaj1v Z7hA== X-Gm-Message-State: ACgBeo2RPhrkOlfC9+ipPKPyZu3ys5CMqsIu5Hu3yQ8TKrPGajxVH0XW VU6piX22fqNqB+Lph8hlIgzxTkBnX4w= X-Google-Smtp-Source: AA6agR5L4AV/cY+Rc2E51JYgeZ1R1d4YHOj8yAsxW3sflQ6mjWvTg4dQjyo73cj3YpefAtBOQM9yIA== X-Received: by 2002:aa7:978c:0:b0:537:d68e:3a27 with SMTP id o12-20020aa7978c000000b00537d68e3a27mr3830797pfp.71.1661924988798; Tue, 30 Aug 2022 22:49:48 -0700 (PDT) Received: from devut-HP-Laptop-14q-cs0xxx.. ([103.36.82.122]) by smtp.gmail.com with ESMTPSA id q19-20020aa79833000000b00537eacc8fa6sm8307333pfl.40.2022.08.30.22.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 22:49:48 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 31 Aug 2022 11:19:31 +0530 Message-Id: <20220831054938.21617-1-utkarsh02t@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v9 0/7] 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 v8: 1. Dropped v7 7/8 as displaying of Capture Script path is now displayed on the tooltip of the QLabel showing the script name. 2. This Patch updates the design of displaying the capture script path and button. 3. The CameraSelectorDialog is now oblivious of script reset and scriptLoad. Difference from v7: 1. Fixes the commit message in 1/8 2. Removes various useless headers in cam_select_dialog.h 3. The cameraSelectDialog_ is now only created once in 6/8 4. scriptPathLabel_ now has permanent parent captureWidget Each patch include their differences from previous versions. 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. Utkarsh Tiwari (7): 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: Add --script to load capture script src/qcam/assets/feathericons/feathericons.qrc | 2 + src/qcam/cam_select_dialog.cpp | 197 ++++++++++++++++++ src/qcam/cam_select_dialog.h | 66 ++++++ src/qcam/main.cpp | 3 + src/qcam/main_window.cpp | 143 +++++++++---- src/qcam/main_window.h | 19 +- src/qcam/meson.build | 4 + 7 files changed, 390 insertions(+), 44 deletions(-) create mode 100644 src/qcam/cam_select_dialog.cpp create mode 100644 src/qcam/cam_select_dialog.h