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

Function stbi_is_16_bit

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

Source from the content-addressed store, hash-verified

8411}
8412
8413STBIDEF int stbi_is_16_bit(char const* filename) {
8414 FILE* f = stbi__fopen(filename, "rb");
8415 int result;
8416 if (!f)
8417 return stbi__err("can't fopen", "Unable to open file");
8418 result = stbi_is_16_bit_from_file(f);
8419 fclose(f);
8420 return result;
8421}
8422
8423STBIDEF int stbi_is_16_bit_from_file(FILE* f) {
8424 int r;

Callers

nothing calls this directly

Calls 3

stbi__fopenFunction · 0.85
stbi__errFunction · 0.85
stbi_is_16_bit_from_fileFunction · 0.85

Tested by

no test coverage detected