| 2453 | } |
| 2454 | |
| 2455 | static void setBitOfReversedStream(size_t* bitpointer, unsigned char* bitstream, unsigned char bit) { |
| 2456 | /*the current bit in bitstream may be 0 or 1 for this to work*/ |
| 2457 | if(bit == 0) bitstream[(*bitpointer) >> 3u] &= (unsigned char)(~(1u << (7u - ((*bitpointer) & 7u)))); |
| 2458 | else bitstream[(*bitpointer) >> 3u] |= (1u << (7u - ((*bitpointer) & 7u))); |
| 2459 | ++(*bitpointer); |
| 2460 | } |
| 2461 | |
| 2462 | /* ////////////////////////////////////////////////////////////////////////// */ |
| 2463 | /* / PNG chunks / */ |
no outgoing calls
no test coverage detected