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

Function stbi_is_hdr

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

Source from the content-addressed store, hash-verified

1565
1566#ifndef STBI_NO_STDIO
1567STBIDEF int stbi_is_hdr(char const* filename) {
1568 FILE* f = stbi__fopen(filename, "rb");
1569 int result = 0;
1570 if (f) {
1571 result = stbi_is_hdr_from_file(f);
1572 fclose(f);
1573 }
1574 return result;
1575}
1576
1577STBIDEF int stbi_is_hdr_from_file(FILE* f) {
1578#ifndef STBI_NO_HDR

Callers

nothing calls this directly

Calls 2

stbi__fopenFunction · 0.85
stbi_is_hdr_from_fileFunction · 0.85

Tested by

no test coverage detected