MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / load_qoi

Function load_qoi

encoder/basisu_enc.cpp:469–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 }
468
469 bool load_qoi(const char* pFilename, image& img)
470 {
471 qoi_desc desc;
472 clear_obj(desc);
473
474 void* p = qoi_read(pFilename, &desc, 4);
475 if (!p)
476 return false;
477
478 img.grant_ownership(static_cast<color_rgba *>(p), desc.width, desc.height);
479
480 return true;
481 }
482
483 bool load_png(const uint8_t *pBuf, size_t buf_size, image &img, const char *pFilename)
484 {

Callers 1

load_imageFunction · 0.85

Calls 3

qoi_readFunction · 0.85
grant_ownershipMethod · 0.80
clear_objFunction · 0.70

Tested by

no test coverage detected