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

Function stbi__skip

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

Source from the content-addressed store, hash-verified

1679// nothing
1680#else
1681static void stbi__skip(stbi__context* s, int n) {
1682 if (n == 0)
1683 return; // already there!
1684 if (n < 0) {
1685 s->img_buffer = s->img_buffer_end;
1686 return;
1687 }
1688 if (s->io.read) {
1689 int blen = (int)(s->img_buffer_end - s->img_buffer);
1690 if (blen < n) {
1691 s->img_buffer = s->img_buffer_end;
1692 (s->io.skip)(s->io_user_data, n - blen);
1693 return;
1694 }
1695 }
1696 s->img_buffer += n;
1697}
1698#endif
1699
1700#if defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && \

Callers 12

stbi__process_markerFunction · 0.85
stbi__parse_png_fileFunction · 0.85
stbi__bmp_loadFunction · 0.85
stbi__tga_infoFunction · 0.85
stbi__tga_testFunction · 0.85
stbi__tga_loadFunction · 0.85
stbi__psd_loadFunction · 0.85
stbi__process_gif_rasterFunction · 0.85
stbi__gif_load_nextFunction · 0.85
stbi__psd_infoFunction · 0.85
stbi__psd_is16Function · 0.85
stbi__pic_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected