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

Function stbi__get8

Source/Utils/stb_image.h:1613–1622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1611}
1612
1613stbi_inline static stbi_uc stbi__get8(stbi__context *s)
1614{
1615 if (s->img_buffer < s->img_buffer_end)
1616 return *s->img_buffer++;
1617 if (s->read_from_callbacks) {
1618 stbi__refill_buffer(s);
1619 return *s->img_buffer++;
1620 }
1621 return 0;
1622}
1623
1624#if defined(STBI_NO_JPEG) && defined(STBI_NO_HDR) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM)
1625// nothing

Callers 15

stbi__get16beFunction · 0.85
stbi__get16leFunction · 0.85
stbi__grow_buffer_unsafeFunction · 0.85
stbi__get_markerFunction · 0.85
stbi__process_markerFunction · 0.85
stbi__check_png_headerFunction · 0.85
stbi__parse_png_fileFunction · 0.85
stbi__bmp_test_rawFunction · 0.85
stbi__bmp_parse_headerFunction · 0.85

Calls 1

stbi__refill_bufferFunction · 0.85

Tested by

no test coverage detected