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

Function stbi__zreceive

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

Source from the content-addressed store, hash-verified

4541}
4542
4543stbi_inline static unsigned int stbi__zreceive(stbi__zbuf* z, int n) {
4544 unsigned int k;
4545 if (z->num_bits < n)
4546 stbi__fill_bits(z);
4547 k = z->code_buffer & ((1 << n) - 1);
4548 z->code_buffer >>= n;
4549 z->num_bits -= n;
4550 return k;
4551}
4552
4553static int stbi__zhuffman_decode_slowpath(stbi__zbuf* a, stbi__zhuffman* z) {
4554 int b, s, k;

Callers 4

stbi__parse_zlibFunction · 0.85

Calls 1

stbi__fill_bitsFunction · 0.85

Tested by

no test coverage detected