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

Function stbi_info_from_file

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

Source from the content-addressed store, hash-verified

8401}
8402
8403STBIDEF int stbi_info_from_file(FILE* f, int* x, int* y, int* comp) {
8404 int r;
8405 stbi__context s;
8406 long pos = ftell(f);
8407 stbi__start_file(&s, f);
8408 r = stbi__info_main(&s, x, y, comp);
8409 fseek(f, pos, SEEK_SET);
8410 return r;
8411}
8412
8413STBIDEF int stbi_is_16_bit(char const* filename) {
8414 FILE* f = stbi__fopen(filename, "rb");

Callers 1

stbi_infoFunction · 0.85

Calls 2

stbi__start_fileFunction · 0.85
stbi__info_mainFunction · 0.85

Tested by

no test coverage detected