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

Function setBitOfReversedStream0

samples/shared/lodepng.cpp:2362–2371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2360
2361#ifdef LODEPNG_COMPILE_DECODER
2362static void setBitOfReversedStream0(size_t* bitpointer, unsigned char* bitstream, unsigned char bit)
2363{
2364 /*the current bit in bitstream must be 0 for this to work*/
2365 if(bit)
2366 {
2367 /*earlier bit of huffman code is in a lesser significant bit of an earlier byte*/
2368 bitstream[(*bitpointer) >> 3] |= (bit << (7 - ((*bitpointer) & 0x7)));
2369 }
2370 (*bitpointer)++;
2371}
2372#endif /*LODEPNG_COMPILE_DECODER*/
2373
2374static 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