| 127 | }; |
| 128 | |
| 129 | void 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 | |
| 147 | void GetEncodeParamsFromArgs(int argc, const char* argv[], EncodeParams& params) |
| 148 | { |
no test coverage detected