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

Function stbi__hdr_test_core

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

Source from the content-addressed store, hash-verified

7747// originally by Nicolas Schulz
7748#ifndef STBI_NO_HDR
7749static 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
7758static int stbi__hdr_test(stbi__context* s) {
7759 int r = stbi__hdr_test_core(s, "#?RADIANCE\n");

Callers 1

stbi__hdr_testFunction · 0.85

Calls 2

stbi__get8Function · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected