MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi_load_16

Function stbi_load_16

lite/example/cpp_example/mge/cv/stb_image.h:1432–1441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1430}
1431
1432STBIDEF stbi_us* stbi_load_16(
1433 char const* filename, int* x, int* y, int* comp, int req_comp) {
1434 FILE* f = stbi__fopen(filename, "rb");
1435 stbi__uint16* result;
1436 if (!f)
1437 return (stbi_us*)stbi__errpuc("can't fopen", "Unable to open file");
1438 result = stbi_load_from_file_16(f, x, y, comp, req_comp);
1439 fclose(f);
1440 return result;
1441}
1442
1443#endif //! STBI_NO_STDIO
1444

Callers

nothing calls this directly

Calls 1

stbi__fopenFunction · 0.85

Tested by

no test coverage detected