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

Function stbi__pic_is4

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

Source from the content-addressed store, hash-verified

6958
6959#ifndef STBI_NO_PIC
6960static int stbi__pic_is4(stbi__context* s, const char* str) {
6961 int i;
6962 for (i = 0; i < 4; ++i)
6963 if (stbi__get8(s) != (stbi_uc)str[i])
6964 return 0;
6965
6966 return 1;
6967}
6968
6969static int stbi__pic_test_core(stbi__context* s) {
6970 int i;

Callers 2

stbi__pic_test_coreFunction · 0.85
stbi__pic_infoFunction · 0.85

Calls 1

stbi__get8Function · 0.85

Tested by

no test coverage detected