| 7747 | // originally by Nicolas Schulz |
| 7748 | #ifndef STBI_NO_HDR |
| 7749 | static int stbi__hdr_test_core(stbi__context* s, const char* signature) { |
| 7750 | int i; |
| 7751 | for (i = 0; signature[i]; ++i) |
| 7752 | if (stbi__get8(s) != signature[i]) |
| 7753 | return 0; |
| 7754 | stbi__rewind(s); |
| 7755 | return 1; |
| 7756 | } |
| 7757 | |
| 7758 | static int stbi__hdr_test(stbi__context* s) { |
| 7759 | int r = stbi__hdr_test_core(s, "#?RADIANCE\n"); |
no test coverage detected