MCPcopy Create free account
hub / github.com/davisking/dlib / to_webp_name

Function to_webp_name

tools/imglab/src/common.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73#ifdef DLIB_WEBP_SUPPORT
74std::string to_webp_name (const std::string& filename)
75{
76 std::string::size_type pos = filename.find_last_of(".");
77 if (pos == std::string::npos)
78 throw dlib::error("invalid filename: " + filename);
79 return filename.substr(0,pos) + ".webp";
80}
81#endif
82
83// ----------------------------------------------------------------------------------------

Callers 3

flip_datasetFunction · 0.85
rotate_datasetFunction · 0.85
resample_datasetFunction · 0.85

Calls 1

errorClass · 0.85

Tested by

no test coverage detected