| 3587 | } |
| 3588 | |
| 3589 | int CMP_CDECL DecompressBlockBC7(const unsigned char cmpBlock[16], unsigned char srcBlock[64], const void* options = NULL) |
| 3590 | { |
| 3591 | BC7_Encode* u_BC7Encode = (BC7_Encode*)options; |
| 3592 | BC7_Encode BC7EncodeDefault = {0}; // for q = 0.05 |
| 3593 | if (u_BC7Encode == NULL) |
| 3594 | { |
| 3595 | // set for q = 1.0 |
| 3596 | u_BC7Encode = &BC7EncodeDefault; |
| 3597 | SetDefaultBC7Options(u_BC7Encode); |
| 3598 | init_BC7ramps(); |
| 3599 | } |
| 3600 | DecompressBC7_internal((CGU_UINT8(*)[4])srcBlock, (CGU_UINT8*)cmpBlock, u_BC7Encode); |
| 3601 | return CGU_CORE_OK; |
| 3602 | } |
| 3603 | #endif |
| 3604 | #endif |
| 3605 | |