diff options
author | Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> | 2024-10-31 12:02:56 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-11-29 22:13:20 +0000 |
commit | a43ea7ff70e332ffe6b852a0aaeeb9aa877663cf (patch) | |
tree | ea4d2cc38870d0565469e50db9a92a11e10f16af /src/apps/qcam/main_window.h | |
parent | 1a2be886c08aea0e97da9b44bda639b59a2cd036 (diff) |
qcam: Use pointer when choosing camera
In order to remove redundant camera ID lookups and comparisons switch
to pointer-based checks when choosing and switching cameras.
Co-developed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/apps/qcam/main_window.h')
-rw-r--r-- | src/apps/qcam/main_window.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apps/qcam/main_window.h b/src/apps/qcam/main_window.h index 4cead734..81fcf915 100644 --- a/src/apps/qcam/main_window.h +++ b/src/apps/qcam/main_window.h @@ -73,7 +73,7 @@ private Q_SLOTS: private: int createToolbars(); - std::string chooseCamera(); + std::shared_ptr<libcamera::Camera> chooseCamera(); int openCamera(); int startCapture(); |