| 1540 | } |
| 1541 | |
| 1542 | STBIDEF 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 | |
| 1559 | STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user) |
no test coverage detected