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

Function stbi__at_eof

include/stb/stb_image.h:1628–1638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1626// nothing
1627#else
1628stbi_inline static int stbi__at_eof(stbi__context *s)
1629{
1630 if (s->io.read) {
1631 if (!(s->io.eof)(s->io_user_data)) return 0;
1632 // if feof() is true, check if buffer = end
1633 // special case: we've only got the special 0 character at the end
1634 if (s->read_from_callbacks == 0) return 1;
1635 }
1636
1637 return s->img_buffer >= s->img_buffer_end;
1638}
1639#endif
1640
1641#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC)

Callers 9

stbi__decode_jpeg_headerFunction · 0.85
stbi__readvalFunction · 0.85
stbi__pic_load_coreFunction · 0.85
stbi__pic_loadFunction · 0.85
stbi__hdr_gettokenFunction · 0.85
stbi__pic_infoFunction · 0.85
stbi__pnm_getintegerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected