/* 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 "../cam/options.h" using namespace libcamera; class ViewFinder; enum { OptCamera = 'c', OptHelp = 'h', }; class MainWindow : public QMainWindow { public: MainWindow(const OptionsParser::Options &options); ~MainWindow(); private: int openCamera(); int startCapture(); int configureStreams(Camera *camera, std::set &streams); void stopCapture(); void requestComplete(Request *request, const std::map &buffers); int display(Buffer *buffer); const OptionsParser::Options &options_; std::shared_ptr camera_; bool isCapturing_; std::map config_; ViewFinder *viewfinder_; }; #endif /* __QCAM_MAIN_WINDOW__ */ input type='submit' value='switch'/> libcamera official repositorygit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
blob: 6dcb09632796efaa2c3ac72fc4709063bfba1ec8 (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-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>