MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / ktxSupercompressionSchemeString

Function ktxSupercompressionSchemeString

lib/strings.c:117–132  ·  view source on GitHub ↗

* @~English * @brief Return a string corresponding to a supercompressionScheme enumeration. * * @param scheme the supercompression scheme for which to return a string. * * @return pointer to the message string. * * @internal Use UTF-8 for translated message strings. * * @author Mark Callow */

Source from the content-addressed store, hash-verified

115* @author Mark Callow
116*/
117const char *
118ktxSupercompressionSchemeString(ktxSupercmpScheme scheme)
119{
120 switch (scheme) {
121 case KTX_SS_NONE: return "KTX_SS_NONE";
122 case KTX_SS_BASIS_LZ: return "KTX_SS_BASIS_LZ";
123 case KTX_SS_ZSTD: return "KTX_SS_ZSTD";
124 case KTX_SS_ZLIB: return "KTX_SS_ZLIB";
125 default:
126 if (scheme < KTX_SS_BEGIN_VENDOR_RANGE
127 || scheme >= KTX_SS_BEGIN_RESERVED)
128 return "Invalid scheme value";
129 else
130 return "Vendor or reserved scheme";
131 }
132}
133
134/**
135* @~English

Callers 4

toStringFunction · 0.85
DiffEnumMethod · 0.85
printKTX2HeaderFunction · 0.85
printKTX2Info2JSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected