MCPcopy Create free account
hub / github.com/Tom94/tev / tiffErrorHandler

Function tiffErrorHandler

src/imageio/TiffImageLoader.cpp:292–300  ·  view source on GitHub ↗

Custom TIFF error and warning handlers to avoid console output

Source from the content-addressed store, hash-verified

290
291// Custom TIFF error and warning handlers to avoid console output
292static void tiffErrorHandler(const char* module, const char* fmt, va_list args) {
293 char buf[1024];
294 const int res = vsnprintf(buf, sizeof(buf), fmt, args);
295 tlog::warning(
296 "TIFF error ({}): {}",
297 module ? module : "unknown",
298 res > 0 ? string_view{buf, std::min((size_t)res, sizeof(buf))} : fmt::format("format error {}", res)
299 );
300}
301
302static void tiffWarningHandler(const char* module, const char* fmt, va_list args) {
303 char buf[1024];

Callers

nothing calls this directly

Calls 1

minFunction · 0.85

Tested by

no test coverage detected