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

Function setBitOfReversedStream0

dependency/densecrf/examples/lodepng.cpp:2397–2406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2395
2396#ifdef LODEPNG_COMPILE_DECODER
2397static void setBitOfReversedStream0(size_t* bitpointer, unsigned char* bitstream, unsigned char bit)
2398{
2399 /*the current bit in bitstream must be 0 for this to work*/
2400 if(bit)
2401 {
2402 /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/
2403 bitstream[(*bitpointer) >> 3] |= (bit << (7 - ((*bitpointer) & 0x7)));
2404 }
2405 ++(*bitpointer);
2406}
2407#endif /*LODEPNG_COMPILE_DECODER*/
2408
2409static void setBitOfReversedStream(size_t* bitpointer, unsigned char* bitstream, unsigned char bit)

Callers 1

Adam7_deinterlaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected