MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__gif_test_raw

Function stbi__gif_test_raw

Source/Utils/stb_image.h:6577–6585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6575} stbi__gif;
6576
6577static int stbi__gif_test_raw(stbi__context *s)
6578{
6579 int sz;
6580 if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return 0;
6581 sz = stbi__get8(s);
6582 if (sz != '9' && sz != '7') return 0;
6583 if (stbi__get8(s) != 'a') return 0;
6584 return 1;
6585}
6586
6587static int stbi__gif_test(stbi__context *s)
6588{

Callers 1

stbi__gif_testFunction · 0.85

Calls 1

stbi__get8Function · 0.85

Tested by

no test coverage detected