MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi_is_hdr_from_file

Function stbi_is_hdr_from_file

include/stb/stb_image.h:1542–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540}
1541
1542STBIDEF int stbi_is_hdr_from_file(FILE *f)
1543{
1544 #ifndef STBI_NO_HDR
1545 long pos = ftell(f);
1546 int res;
1547 stbi__context s;
1548 stbi__start_file(&s,f);
1549 res = stbi__hdr_test(&s);
1550 fseek(f, pos, SEEK_SET);
1551 return res;
1552 #else
1553 STBI_NOTUSED(f);
1554 return 0;
1555 #endif
1556}
1557#endif // !STBI_NO_STDIO
1558
1559STBIDEF 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