31 #include <opencv2/opencv.hpp>
45 m_jpg_quality{jpg_quality}
63 writeMetadataLine(
"jpg_quality",
"unsigned int",
std::to_string(m_jpg_quality));
70 const auto& [sequence_number, frame_name] = writeMetadataFrame(frame, timestamp);
71 const std::filesystem::path path = deriveFramePath(sequence_number, frame_name);
72 std::vector<int> params {cv::IMWRITE_JPEG_QUALITY,
static_cast<int>(m_jpg_quality)};
73 cv::imwrite(path.string(), frame, params);