MCPcopy Create free account
hub / github.com/RenderKit/embree / stbi__bit_reverse

Function stbi__bit_reverse

tutorials/common/image/stb_image.h:4059–4065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4057}
4058
4059stbi_inline static int stbi__bit_reverse(int v, int bits)
4060{
4061 STBI_ASSERT(bits <= 16);
4062 // to bit reverse n bits, reverse 16 and shift
4063 // e.g. 11 bits, bit reverse and shift away 5
4064 return stbi__bitreverse16(v) >> (16-bits);
4065}
4066
4067static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)
4068{

Callers 2

stbi__zbuild_huffmanFunction · 0.85

Calls 1

stbi__bitreverse16Function · 0.85

Tested by

no test coverage detected