MCPcopy Create free account
hub / github.com/defold/defold / PrintEncodeParams

Function PrintEncodeParams

engine/tools/src/texconvert/main.cpp:129–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127};
128
129void PrintEncodeParams(EncodeParams params)
130{
131 if (!params.m_Verbose)
132 return;
133#define TRUE_FALSE_LABEL(cond) (cond?"TRUE":"FALSE")
134 printf("-----------------------------\n");
135 printf("Input path : %s\n", params.m_PathIn);
136 printf("Output path : %s\n", params.m_PathOut);
137 printf("Color space : %s\n", GetArgTypeName(params.m_ColorSpace, g_cs_lut));
138 printf("Compression type : %s\n", GetArgTypeName(params.m_CompressionType, g_ct_lut));
139 printf("Compression level : %s\n", GetArgTypeName(params.m_CompressionLevel, g_cl_lut));
140 printf("PreMultiplyAlpha : %s\n", TRUE_FALSE_LABEL(params.m_PremultiplyAlpha));
141 printf("Flip-x : %s\n", TRUE_FALSE_LABEL(params.m_FlipX));
142 printf("Flip-y : %s\n", TRUE_FALSE_LABEL(params.m_FlipY));
143 printf("Mipmaps : %s\n", TRUE_FALSE_LABEL(params.m_MipMaps));
144#undef TRUE_FALSE_LABEL
145}
146
147void GetEncodeParamsFromArgs(int argc, const char* argv[], EncodeParams& params)
148{

Callers 1

mainFunction · 0.85

Calls 1

GetArgTypeNameFunction · 0.85

Tested by

no test coverage detected