| 174 | } |
| 175 | |
| 176 | bool GetAstcBlockSize(const void* mem, uint32_t memsize, uint32_t* width, uint32_t* height, uint32_t* depth) |
| 177 | { |
| 178 | if (!IsAstc(mem, memsize)) |
| 179 | return false; |
| 180 | |
| 181 | AstcHeader* header = (AstcHeader*)mem; |
| 182 | *width = header->m_BlockSizes[0]; |
| 183 | *height = header->m_BlockSizes[1]; |
| 184 | *depth = header->m_BlockSizes[2]; |
| 185 | return true; |
| 186 | } |
| 187 | |
| 188 | bool GetAstcDimensions(const void* mem, uint32_t memsize, uint32_t* width, uint32_t* height, uint32_t* depth) |
| 189 | { |