summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-06 18:12:54 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-07 10:20:28 +0300
commite2d00fbcbb1a9b2da50fa2e280817a0de1a7d286 (patch)
tree4316fa4c60da30057933a19c1ebc4e82879494a8 /test/v4l2_videodevice
parent1a9587b8f2de010026784c251179a64105f1fc91 (diff)
libcamera: base: utils: Add missing constructor for Duration
The Duration class is missing the equivalent to the std::chrono::duration constructor that takes a number of ticks expressed as a scalar. Fix it, which allows initializing a Duration instance to 0 or 0.0. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/v4l2_videodevice')
0 files changed, 0 insertions, 0 deletions
n> 'c', OptHelp = 'h', OptSize = 's', }; class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(CameraManager *cm, const OptionsParser::Options &options); ~MainWindow(); private Q_SLOTS: void quit(); void updateTitle(); void switchCamera(int index); private: int createToolbars(); std::string chooseCamera(); int openCamera(); int startCapture(); void stopCapture(); void requestComplete(Request *request); int display(FrameBuffer *buffer); QString title_; QTimer titleTimer_; const OptionsParser::Options &options_; CameraManager *cm_; std::shared_ptr<Camera> camera_; FrameBufferAllocator *allocator_; bool isCapturing_; std::unique_ptr<CameraConfiguration> config_; uint64_t lastBufferTime_; QElapsedTimer frameRateInterval_; uint32_t previousFrames_; uint32_t framesCaptured_; QToolBar *toolbar_; ViewFinder *viewfinder_; std::map<int, std::pair<void *, unsigned int>> mappedBuffers_; }; #endif /* __QCAM_MAIN_WINDOW__ */