| 233 | } |
| 234 | |
| 235 | CMP_FORMAT ParseFormat(const char* pszFormat) |
| 236 | { |
| 237 | if (pszFormat == NULL) |
| 238 | return CMP_FORMAT_Unknown; |
| 239 | |
| 240 | for (DWORD i = 0; i < g_dwDDSFormatDescCount; i++) |
| 241 | if (stringicmp(pszFormat, g_DDSFormatDesc[i].pszFormatDesc)) |
| 242 | return g_DDSFormatDesc[i].nFormat; |
| 243 | |
| 244 | return CMP_FORMAT_Unknown; |
| 245 | } |
| 246 | |
| 247 | const char* GetFormatDescription(CMP_FORMAT nFormat) |
| 248 | { |
no test coverage detected