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

Function stbi__gif_test_raw

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

Source from the content-addressed store, hash-verified

7211} stbi__gif;
7212
7213static int stbi__gif_test_raw(stbi__context* s) {
7214 int sz;
7215 if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' ||
7216 stbi__get8(s) != '8')
7217 return 0;
7218 sz = stbi__get8(s);
7219 if (sz != '9' && sz != '7')
7220 return 0;
7221 if (stbi__get8(s) != 'a')
7222 return 0;
7223 return 1;
7224}
7225
7226static int stbi__gif_test(stbi__context* s) {
7227 int r = stbi__gif_test_raw(s);

Callers 1

stbi__gif_testFunction · 0.85

Calls 1

stbi__get8Function · 0.85

Tested by

no test coverage detected