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

Function stbi__fill_bits

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

Source from the content-addressed store, hash-verified

4530}
4531
4532static void stbi__fill_bits(stbi__zbuf* z) {
4533 do {
4534 if (z->code_buffer >= (1U << z->num_bits)) {
4535 z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */
4536 return;
4537 }
4538 z->code_buffer |= (unsigned int)stbi__zget8(z) << z->num_bits;
4539 z->num_bits += 8;
4540 } while (z->num_bits <= 24);
4541}
4542
4543stbi_inline static unsigned int stbi__zreceive(stbi__zbuf* z, int n) {
4544 unsigned int k;

Callers 2

stbi__zreceiveFunction · 0.85
stbi__zhuffman_decodeFunction · 0.85

Calls 1

stbi__zget8Function · 0.85

Tested by

no test coverage detected