29#include <condition_variable>
59 const std::string& file_name,
60 unsigned int png_compression = 9,
61 unsigned int thread_pool_size = 1);
64 static void recordSnapshot(
const cv::Mat& image,
const std::filesystem::path& path);
65 static void recordSnapshot(
const CByteImage& image,
const std::filesystem::path& path);
AbstractSequencedRecordingStrategy()
Default constructor to manually start the recording.
unsigned int m_png_compression
void startRecording() override
Starts the recording manually if constructed empty.
std::mutex m_record_frame_mutex
unsigned int m_pool_max_size
std::atomic< unsigned int > m_pool_current_size
static void recordSnapshot(const cv::Mat &image, const std::filesystem::path &path)
~PNGParallelRecordingStrategy() override
void recordFrame(const cv::Mat &frame, std::chrono::microseconds timestamp) override
Adds the given frame to the recording.
void stopRecording() override
Stops the recording.
void recordFrameAsync(std::filesystem::path path, const cv::Mat &frame)
std::condition_variable m_pool_cv
PNGParallelRecordingStrategy()