MCPcopy Create free account
hub / github.com/OSGeo/gdal / CompositionModeToString

Function CompositionModeToString

apps/gdalalg_raster_blend.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61/************************************************************************/
62
63std::string CompositionModeToString(CompositionMode mode)
64{
65 const auto &modes = CompositionModes();
66 const auto &iter = modes.find(mode);
67 if (iter != modes.end())
68 {
69 return iter->second;
70 }
71 CPLError(CE_Failure, CPLE_IllegalArg,
72 "Invalid composition mode value: %d, returning 'src-over'",
73 static_cast<int>(mode));
74 return "src-over";
75}
76
77/************************************************************************/
78/* CompositionModesIdentifiers() */

Callers 2

ValidateGlobalMethod · 0.85

Calls 3

CompositionModesFunction · 0.85
CPLErrorFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected