MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi_load

Function stbi_load

Source/Utils/stb_image.h:1365–1373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

LoadPngMethod · 0.85

Calls 2

stbi__fopenFunction · 0.85
stbi_load_from_fileFunction · 0.85

Tested by

no test coverage detected