| 1575 | } |
| 1576 | |
| 1577 | STBIDEF 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 | |
| 1593 | STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const* clbk, void* user) { |
no test coverage detected