| 232 | } |
| 233 | |
| 234 | static void SaveDumpImage(const BenchmarkOptions& options, |
| 235 | const std::string& row_name, |
| 236 | int frame_number, |
| 237 | const QImage& image) { |
| 238 | if (!ShouldDumpFrame(options, frame_number)) |
| 239 | return; |
| 240 | const std::filesystem::path output_path = DumpFramePath(options, row_name, frame_number); |
| 241 | if (!image.save(QString::fromStdString(output_path.string()))) |
| 242 | throw std::runtime_error("Unable to save dump image: " + output_path.string()); |
| 243 | } |
| 244 | |
| 245 | class GenericDecodeReader; |
| 246 | class RgbaFrameConverter; |
no test coverage detected