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

Function stbi_load_16

Source/Utils/stb_image.h:1401–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1399}
1400
1401STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)
1402{
1403 FILE *f = stbi__fopen(filename, "rb");
1404 stbi__uint16 *result;
1405 if (!f) return (stbi_us *) stbi__errpuc("can't fopen", "Unable to open file");
1406 result = stbi_load_from_file_16(f,x,y,comp,req_comp);
1407 fclose(f);
1408 return result;
1409}
1410
1411
1412#endif //!STBI_NO_STDIO

Callers

nothing calls this directly

Calls 1

stbi__fopenFunction · 0.85

Tested by

no test coverage detected