MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / readBitsFromStream

Function readBitsFromStream

dependency/densecrf/examples/lodepng.cpp:454–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits)
455{
456 unsigned result = 0, i;
457 for(i = 0; i != nbits; ++i)
458 {
459 result += ((unsigned)READBIT(*bitpointer, bitstream)) << i;
460 ++(*bitpointer);
461 }
462 return result;
463}
464#endif /*LODEPNG_COMPILE_DECODER*/
465
466/* ////////////////////////////////////////////////////////////////////////// */

Callers 2

getTreeInflateDynamicFunction · 0.85
inflateHuffmanBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected