MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setBitOfReversedStream0

Function setBitOfReversedStream0

src/lodepng.cpp:2338–2347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2336
2337#ifdef LODEPNG_COMPILE_DECODER
2338static void setBitOfReversedStream0(size_t* bitpointer, unsigned char* bitstream, unsigned char bit)
2339{
2340 /*the current bit in bitstream must be 0 for this to work*/
2341 if(bit)
2342 {
2343 /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/
2344 bitstream[(*bitpointer) >> 3] |= (bit << (7 - ((*bitpointer) & 0x7)));
2345 }
2346 (*bitpointer)++;
2347}
2348#endif /*LODEPNG_COMPILE_DECODER*/
2349
2350static 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