MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / astcenc_get_error_string

Function astcenc_get_error_string

Source/astcenc_entry.cpp:1520–1558  ·  view source on GitHub ↗

See header for documentation. */

Source from the content-addressed store, hash-verified

1518
1519/* See header for documentation. */
1520const char* astcenc_get_error_string(
1521 astcenc_error status
1522) {
1523 // Values in this enum are from an external user, so not guaranteed to be
1524 // bounded to the enum values
1525 switch (static_cast<int>(status))
1526 {
1527 case ASTCENC_SUCCESS:
1528 return "ASTCENC_SUCCESS";
1529 case ASTCENC_ERR_OUT_OF_MEM:
1530 return "ASTCENC_ERR_OUT_OF_MEM";
1531 case ASTCENC_ERR_BAD_CPU_FLOAT:
1532 return "ASTCENC_ERR_BAD_CPU_FLOAT";
1533 case ASTCENC_ERR_BAD_PARAM:
1534 return "ASTCENC_ERR_BAD_PARAM";
1535 case ASTCENC_ERR_BAD_BLOCK_SIZE:
1536 return "ASTCENC_ERR_BAD_BLOCK_SIZE";
1537 case ASTCENC_ERR_BAD_PROFILE:
1538 return "ASTCENC_ERR_BAD_PROFILE";
1539 case ASTCENC_ERR_BAD_QUALITY:
1540 return "ASTCENC_ERR_BAD_QUALITY";
1541 case ASTCENC_ERR_BAD_FLAGS:
1542 return "ASTCENC_ERR_BAD_FLAGS";
1543 case ASTCENC_ERR_BAD_SWIZZLE:
1544 return "ASTCENC_ERR_BAD_SWIZZLE";
1545 case ASTCENC_ERR_BAD_CONTEXT:
1546 return "ASTCENC_ERR_BAD_CONTEXT";
1547 case ASTCENC_ERR_NOT_IMPLEMENTED:
1548 return "ASTCENC_ERR_NOT_IMPLEMENTED";
1549 case ASTCENC_ERR_BAD_DECODE_MODE:
1550 return "ASTCENC_ERR_BAD_DECODE_MODE";
1551#if defined(ASTCENC_DIAGNOSTICS)
1552 case ASTCENC_ERR_DTRACE_FAILURE:
1553 return "ASTCENC_ERR_DTRACE_FAILURE";
1554#endif
1555 default:
1556 return nullptr;
1557 }
1558}

Callers 3

mainFunction · 0.85
init_astcenc_configFunction · 0.85
astcenc_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected