MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__skip

Function stbi__skip

Source/Utils/stb_image.h:1643–1659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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