MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / addHuffmanSymbol

Function addHuffmanSymbol

samples/shared/lodepng.cpp:1291–1294  ·  view source on GitHub ↗

bitlen is the size in bits of the code*/

Source from the content-addressed store, hash-verified

1289
1290/*bitlen is the size in bits of the code*/
1291static void addHuffmanSymbol(size_t* bp, ucvector* compressed, unsigned code, unsigned bitlen)
1292{
1293 addBitsToStreamReversed(bp, compressed, code, bitlen);
1294}
1295
1296/*search the index in the array, that has the largest value smaller than or equal to the given value,
1297given array must be sorted (if no value is smaller, it returns the size of the given array)*/

Callers 3

writeLZ77dataFunction · 0.85
deflateDynamicFunction · 0.85
deflateFixedFunction · 0.85

Calls 1

addBitsToStreamReversedFunction · 0.85

Tested by

no test coverage detected