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

Function stbi_loadf

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

Source from the content-addressed store, hash-verified

1528
1529#ifndef STBI_NO_STDIO
1530STBIDEF float* stbi_loadf(
1531 char const* filename, int* x, int* y, int* comp, int req_comp) {
1532 float* result;
1533 FILE* f = stbi__fopen(filename, "rb");
1534 if (!f)
1535 return stbi__errpf("can't fopen", "Unable to open file");
1536 result = stbi_loadf_from_file(f, x, y, comp, req_comp);
1537 fclose(f);
1538 return result;
1539}
1540
1541STBIDEF float* stbi_loadf_from_file(FILE* f, int* x, int* y, int* comp, int req_comp) {
1542 stbi__context s;

Callers

nothing calls this directly

Calls 2

stbi__fopenFunction · 0.85
stbi_loadf_from_fileFunction · 0.85

Tested by

no test coverage detected