MCPcopy Create free account
hub / github.com/Tencent/libpag / GetOutputFile

Function GetOutputFile

test/src/utils/TestUtils.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133std::string GetOutputFile(const std::string& key) {
134#ifdef GENERATE_BASELINE_IMAGES
135 static const std::string OUT_ROOT = TestDir::GetRoot() + "/baseline-out";
136#else
137 static const std::string OUT_ROOT = TestDir::GetRoot() + "/out";
138#endif
139 return OUT_ROOT + "/" + key + ".webp";
140}
141
142void SaveImage(const tgfx::Bitmap& bitmap, const std::string& key) {
143 if (bitmap.isEmpty()) {

Callers 2

SaveImageFunction · 0.85
RemoveImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected