#include <media_helpers.hpp>
Public Member Functions | |
| LatestCameraFrame ()=default | |
| LatestCameraFrame (const LatestCameraFrame &)=delete | |
| LatestCameraFrame (LatestCameraFrame &&)=delete | |
| LatestCameraFrame & | operator= (const LatestCameraFrame &)=delete |
| LatestCameraFrame & | operator= (LatestCameraFrame &&)=delete |
| void | start (mxvk::VK_Capture &source) |
| void | stop () noexcept |
| bool | takeLatest (cv::Mat &frame, bool wait_for_first) |
| ~LatestCameraFrame () | |
Private Member Functions | |
| void | captureLoop () noexcept |
Private Attributes | |
| mxvk::VK_Capture * | capture_source = nullptr |
| std::thread | capture_thread |
| std::uint64_t | consumed_generation = 0 |
| std::condition_variable | frame_condition |
| std::mutex | frame_mutex |
| cv::Mat | latest_frame |
| std::uint64_t | published_generation = 0 |
| bool | stopping = true |
Definition at line 18 of file media_helpers.hpp.
|
default |
References LatestCameraFrame().
Referenced by LatestCameraFrame(), LatestCameraFrame(), LatestCameraFrame(), operator=(), and operator=().
| acmxvk::LatestCameraFrame::~LatestCameraFrame | ( | ) |
Definition at line 11 of file media_helpers.cpp.
References stop().
|
delete |
References LatestCameraFrame().
|
delete |
References LatestCameraFrame().
|
privatenoexcept |
Definition at line 60 of file media_helpers.cpp.
References capture_source, frame_condition, frame_mutex, latest_frame, published_generation, and stopping.
Referenced by operator=(), and start().
|
delete |
References LatestCameraFrame().
|
delete |
References captureLoop(), LatestCameraFrame(), start(), stop(), and takeLatest().
| void acmxvk::LatestCameraFrame::start | ( | mxvk::VK_Capture & | source | ) |
Definition at line 15 of file media_helpers.cpp.
References capture_source, capture_thread, captureLoop(), consumed_generation, frame_mutex, latest_frame, published_generation, stop(), and stopping.
Referenced by operator=().
|
noexcept |
Definition at line 28 of file media_helpers.cpp.
References capture_source, capture_thread, consumed_generation, frame_condition, frame_mutex, latest_frame, published_generation, and stopping.
Referenced by operator=(), start(), ~LatestCameraFrame(), and acmxvk::MainWindow::~MainWindow().
|
nodiscard |
Definition at line 44 of file media_helpers.cpp.
References consumed_generation, frame_condition, frame_mutex, latest_frame, published_generation, and stopping.
Referenced by operator=().
|
private |
Definition at line 34 of file media_helpers.hpp.
Referenced by captureLoop(), start(), and stop().
|
private |
Definition at line 36 of file media_helpers.hpp.
|
private |
Definition at line 40 of file media_helpers.hpp.
Referenced by start(), stop(), and takeLatest().
|
private |
Definition at line 38 of file media_helpers.hpp.
Referenced by captureLoop(), stop(), and takeLatest().
|
private |
Definition at line 37 of file media_helpers.hpp.
Referenced by captureLoop(), start(), stop(), and takeLatest().
|
private |
Definition at line 35 of file media_helpers.hpp.
Referenced by captureLoop(), start(), stop(), and takeLatest().
|
private |
Definition at line 39 of file media_helpers.hpp.
Referenced by captureLoop(), start(), stop(), and takeLatest().
|
private |
Definition at line 41 of file media_helpers.hpp.
Referenced by captureLoop(), start(), stop(), and takeLatest().