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

Function stbi__png_is16

include/stb/stb_image.h:5329–5340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5327}
5328
5329static int stbi__png_is16(stbi__context *s)
5330{
5331 stbi__png p;
5332 p.s = s;
5333 if (!stbi__png_info_raw(&p, NULL, NULL, NULL))
5334 return 0;
5335 if (p.depth != 16) {
5336 stbi__rewind(p.s);
5337 return 0;
5338 }
5339 return 1;
5340}
5341#endif
5342
5343// Microsoft/Windows BMP image

Callers 1

stbi__is_16_mainFunction · 0.85

Calls 2

stbi__png_info_rawFunction · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected