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

Function stbi__fill_bits

include/stb/stb_image.h:4202–4212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4200}
4201
4202static void stbi__fill_bits(stbi__zbuf *z)
4203{
4204 do {
4205 if (z->code_buffer >= (1U << z->num_bits)) {
4206 z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */
4207 return;
4208 }
4209 z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits;
4210 z->num_bits += 8;
4211 } while (z->num_bits <= 24);
4212}
4213
4214stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)
4215{

Callers 2

stbi__zreceiveFunction · 0.85
stbi__zhuffman_decodeFunction · 0.85

Calls 1

stbi__zget8Function · 0.85

Tested by

no test coverage detected