28#include <Image/ByteImage.h>
36 const std::filesystem::path& filePath,
37 const std::string& name) :
50 const std::chrono::microseconds
timestamp)
53 const std::filesystem::path path =
deriveFramePath(sequence_number, frame_name);
54 frame.SaveToFile(path.c_str());
virtual std::tuple< unsigned int, std::string > writeMetadataFrame(const CByteImage &frame, std::chrono::microseconds timestamp)
AbstractSequencedRecordingStrategy()
Default constructor to manually start the recording.
std::filesystem::path deriveFramePath(const unsigned int sequence_number, const std::string &frame_name)
Returns the next sequenced full path and increments the sequence number.
~BMPRecordingStrategy() override
void recordFrame(const CByteImage &frame, std::chrono::microseconds timestamp) override
Adds the given frame to the recording.