1#ifndef ACMXVK_APP_MEDIA_HELPERS_HPP
2#define ACMXVK_APP_MEDIA_HELPERS_HPP
6#include <opencv2/core.hpp>
8#include <condition_variable>
27 void start(mxvk::VK_Capture &source);
29 [[nodiscard]]
bool takeLatest(cv::Mat &frame,
bool wait_for_first);
LatestCameraFrame & operator=(const LatestCameraFrame &)=delete
LatestCameraFrame()=default
std::uint64_t published_generation
bool takeLatest(cv::Mat &frame, bool wait_for_first)
void start(mxvk::VK_Capture &source)
std::condition_variable frame_condition
LatestCameraFrame(LatestCameraFrame &&)=delete
std::thread capture_thread
std::uint64_t consumed_generation
LatestCameraFrame & operator=(LatestCameraFrame &&)=delete
mxvk::VK_Capture * capture_source
LatestCameraFrame(const LatestCameraFrame &)=delete
void captureLoop() noexcept