MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SaveDumpImage

Function SaveDumpImage

examples/VulkanBenchmark.cpp:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static 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
245class GenericDecodeReader;
246class RgbaFrameConverter;

Callers 4

RunCpuBenchmarkFunction · 0.85
RunCpuCompositeBenchmarkFunction · 0.85
RunVulkanUploadBenchmarkFunction · 0.85
RunVulkanDirectBenchmarkFunction · 0.85

Calls 2

ShouldDumpFrameFunction · 0.85
DumpFramePathFunction · 0.85

Tested by

no test coverage detected