MCPcopy Create free account
hub / github.com/creatale/node-dv / readBitFromReversedStream

Function readBitFromReversedStream

deps/lodepng/lodepng.cpp:2385–2390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2383/* ////////////////////////////////////////////////////////////////////////// */
2384
2385static unsigned char readBitFromReversedStream(size_t* bitpointer, const unsigned char* bitstream)
2386{
2387 unsigned char result = (unsigned char)((bitstream[(*bitpointer) >> 3] >> (7 - ((*bitpointer) & 0x7))) & 1);
2388 ++(*bitpointer);
2389 return result;
2390}
2391
2392static unsigned readBitsFromReversedStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits)
2393{

Callers 5

Adam7_deinterlaceFunction · 0.85
removePaddingBitsFunction · 0.85
addPaddingBitsFunction · 0.85
Adam7_interlaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected