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

Function stbi_is_hdr_from_file

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

Source from the content-addressed store, hash-verified

1575}
1576
1577STBIDEF int stbi_is_hdr_from_file(FILE* f) {
1578#ifndef STBI_NO_HDR
1579 long pos = ftell(f);
1580 int res;
1581 stbi__context s;
1582 stbi__start_file(&s, f);
1583 res = stbi__hdr_test(&s);
1584 fseek(f, pos, SEEK_SET);
1585 return res;
1586#else
1587 STBI_NOTUSED(f);
1588 return 0;
1589#endif
1590}
1591#endif // !STBI_NO_STDIO
1592
1593STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const* clbk, void* user) {

Callers 1

stbi_is_hdrFunction · 0.85

Calls 2

stbi__start_fileFunction · 0.85
stbi__hdr_testFunction · 0.85

Tested by

no test coverage detected