MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__hdr_test

Function stbi__hdr_test

Source/Utils/stb_image.h:7094–7103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7092}
7093
7094static int stbi__hdr_test(stbi__context* s)
7095{
7096 int r = stbi__hdr_test_core(s, "#?RADIANCE\n");
7097 stbi__rewind(s);
7098 if(!r) {
7099 r = stbi__hdr_test_core(s, "#?RGBE\n");
7100 stbi__rewind(s);
7101 }
7102 return r;
7103}
7104
7105#define STBI__HDR_BUFLEN 1024
7106static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)

Callers 6

stbi__load_mainFunction · 0.85
stbi__loadf_mainFunction · 0.85
stbi_is_hdr_from_memoryFunction · 0.85
stbi_is_hdr_from_fileFunction · 0.85
stbi__hdr_infoFunction · 0.85

Calls 2

stbi__hdr_test_coreFunction · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected