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

Function stbi__pic_test_core

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

Source from the content-addressed store, hash-verified

6967}
6968
6969static int stbi__pic_test_core(stbi__context* s) {
6970 int i;
6971
6972 if (!stbi__pic_is4(s, "\x53\x80\xF6\x34"))
6973 return 0;
6974
6975 for (i = 0; i < 84; ++i)
6976 stbi__get8(s);
6977
6978 if (!stbi__pic_is4(s, "PICT"))
6979 return 0;
6980
6981 return 1;
6982}
6983
6984typedef struct {
6985 stbi_uc size, type, channel;

Callers 1

stbi__pic_testFunction · 0.85

Calls 2

stbi__pic_is4Function · 0.85
stbi__get8Function · 0.85

Tested by

no test coverage detected