MCPcopy Create free account
hub / github.com/axmolengine/axmol / astc_decompress_image

Function astc_decompress_image

core/base/astc.cpp:226–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 yasio::highp_time_t _start;
225};
226int 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
242int astc_decompress_image(const uint8_t* in,
243 uint32_t inlen,

Callers 2

initWithPVRv3DataMethod · 0.85
initWithASTCDataMethod · 0.85

Calls 5

physical_to_symbolicFunction · 0.85
store_image_blockFunction · 0.85

Tested by

no test coverage detected