MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__check_png_header

Function stbi__check_png_header

include/stb/stb_image.h:4621–4628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4619}
4620
4621static int stbi__check_png_header(stbi__context *s)
4622{
4623 static const stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 };
4624 int i;
4625 for (i=0; i < 8; ++i)
4626 if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG");
4627 return 1;
4628}
4629
4630typedef struct
4631{

Callers 2

stbi__parse_png_fileFunction · 0.85
stbi__png_testFunction · 0.85

Calls 2

stbi__get8Function · 0.85
stbi__errFunction · 0.85

Tested by

no test coverage detected