MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__hdr_test

Function stbi__hdr_test

lite/example/cpp_example/mge/cv/stb_image.h:7758–7766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7756}
7757
7758static int stbi__hdr_test(stbi__context* s) {
7759 int r = stbi__hdr_test_core(s, "#?RADIANCE\n");
7760 stbi__rewind(s);
7761 if (!r) {
7762 r = stbi__hdr_test_core(s, "#?RGBE\n");
7763 stbi__rewind(s);
7764 }
7765 return r;
7766}
7767
7768#define STBI__HDR_BUFLEN 1024
7769static 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