/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2019, Google Inc. * * main_window.h - qcam - Main application window */ #ifndef __QCAM_MAIN_WINDOW_H__ #define __QCAM_MAIN_WINDOW_H__ #include #include #include #include #include #include #include #include #include "../cam/options.h" using namespace libcamera; class ViewFinder; enum { OptCamera = 'c', OptHelp = 'h', OptSize = 's', }; class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(CameraManager *cm, const OptionsParser::Options &options); ~MainWindow(); private Q_SLOTS: void updateTitle(); private: std::string chooseCamera(CameraManager *cm); int openCamera(CameraManager *cm); int startCapture(); void stopCapture(); void requestComplete(Request *request); int display(Buffer *buffer); QString title_; QTimer titleTimer_; const OptionsParser::Options &options_; std::shared_ptr camera_; bool isCapturing_; std::unique_ptr config_; uint64_t lastBufferTime_; QElapsedTimer frameRateInterval_; uint32_t previousFrames_; uint32_t framesCaptured_; ViewFinder *viewfinder_; }; #endif /* __QCAM_MAIN_WINDOW__ */ ='/libcamera/vivid.git/refs/?h=v0.0.4&id=e951a2af20c6ca025cf82bae995dee7efe5f9b6b'>refslogtreecommitdiff
blob: daa3e25f0c1d8c947f7d90cc9650da6f854f83e5 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-camera-off"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path></svg>