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

Function stbi__at_eof

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

Source from the content-addressed store, hash-verified

1660// nothing
1661#else
1662stbi_inline static int stbi__at_eof(stbi__context* s) {
1663 if (s->io.read) {
1664 if (!(s->io.eof)(s->io_user_data))
1665 return 0;
1666 // if feof() is true, check if buffer = end
1667 // special case: we've only got the special 0 character at the end
1668 if (s->read_from_callbacks == 0)
1669 return 1;
1670 }
1671
1672 return s->img_buffer >= s->img_buffer_end;
1673}
1674#endif
1675
1676#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && \

Callers 9

stbi__decode_jpeg_headerFunction · 0.85
stbi__decode_jpeg_imageFunction · 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