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

Function stbi__skip

include/stb/stb_image.h:1644–1660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1642// nothing
1643#else
1644static void stbi__skip(stbi__context *s, int n)
1645{
1646 if (n == 0) return; // already there!
1647 if (n < 0) {
1648 s->img_buffer = s->img_buffer_end;
1649 return;
1650 }
1651 if (s->io.read) {
1652 int blen = (int) (s->img_buffer_end - s->img_buffer);
1653 if (blen < n) {
1654 s->img_buffer = s->img_buffer_end;
1655 (s->io.skip)(s->io_user_data, n - blen);
1656 return;
1657 }
1658 }
1659 s->img_buffer += n;
1660}
1661#endif
1662
1663#if defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && defined(STBI_NO_PNM)

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