MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi_load

Function stbi_load

include/stb/stb_image.h:1366–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364
1365
1366STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)
1367{
1368 FILE *f = stbi__fopen(filename, "rb");
1369 unsigned char *result;
1370 if (!f) return stbi__errpuc("can't fopen", "Unable to open file");
1371 result = stbi_load_from_file(f,x,y,comp,req_comp);
1372 fclose(f);
1373 return result;
1374}
1375
1376STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
1377{

Callers 1

openMethod · 0.85

Calls 2

stbi__fopenFunction · 0.85
stbi_load_from_fileFunction · 0.85

Tested by

no test coverage detected