MCPcopy Create free account
hub / github.com/MegEngine/MegCC / MegCC_InterpolationMode_name

Function MegCC_InterpolationMode_name

runtime/src/cheader/model_reader.h:592–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590#define MegCC_InterpolationMode_LANCZOS4 ((MegCC_InterpolationMode_enum_t)INT8_C(4))
591
592static inline const char *MegCC_InterpolationMode_name(MegCC_InterpolationMode_enum_t value)
593{
594 switch (value) {
595 case MegCC_InterpolationMode_NEAREST: return "NEAREST";
596 case MegCC_InterpolationMode_LINEAR: return "LINEAR";
597 case MegCC_InterpolationMode_AREA: return "AREA";
598 case MegCC_InterpolationMode_CUBIC: return "CUBIC";
599 case MegCC_InterpolationMode_LANCZOS4: return "LANCZOS4";
600 default: return "";
601 }
602}
603
604static inline int MegCC_InterpolationMode_is_known_value(MegCC_InterpolationMode_enum_t value)
605{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected