| 224 | yasio::highp_time_t _start; |
| 225 | }; |
| 226 | int astc_decompress_image(const uint8_t* in, |
| 227 | uint32_t inlen, |
| 228 | uint8_t* out, |
| 229 | uint32_t dim_x, |
| 230 | uint32_t dim_y, |
| 231 | uint32_t block_x, |
| 232 | uint32_t block_y) |
| 233 | { |
| 234 | # if ASTCDEC_PRINT_BENCHMARK |
| 235 | benchmark_printer __printer(FMT_COMPILE("decompress astc image ({}x{}) cost: {}(ms)"), dim_x, dim_y, |
| 236 | (float)std::milli::den); |
| 237 | # endif |
| 238 | return astc_decompress_job_manager::get_instance()->decompress_parallel_sync(in, inlen, out, dim_x, dim_y, block_x, |
| 239 | block_y); |
| 240 | } |
| 241 | #else |
| 242 | int astc_decompress_image(const uint8_t* in, |
| 243 | uint32_t inlen, |
no test coverage detected