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

Function DumpFramePath

examples/VulkanBenchmark.cpp:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static std::filesystem::path DumpFramePath(const BenchmarkOptions& options,
225 const std::string& row_name,
226 int frame_number) {
227 std::filesystem::path row_dir = std::filesystem::path(options.dump_dir) / row_name;
228 std::filesystem::create_directories(row_dir);
229 std::ostringstream filename;
230 filename << "frame-" << std::setw(6) << std::setfill('0') << frame_number << ".png";
231 return row_dir / filename.str();
232}
233
234static void SaveDumpImage(const BenchmarkOptions& options,
235 const std::string& row_name,

Callers 1

SaveDumpImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected