This one is to use for adding huffman symbol, the value bits are written MSB first */
| 443 | |
| 444 | /* This one is to use for adding huffman symbol, the value bits are written MSB first */ |
| 445 | static void writeBitsReversed(LodePNGBitWriter* writer, unsigned value, size_t nbits) { |
| 446 | size_t i; |
| 447 | for(i = 0; i != nbits; ++i) { |
| 448 | /* TODO: increase output size only once here rather than in each WRITEBIT */ |
| 449 | WRITEBIT(writer, (unsigned char)((value >> (nbits - 1u - i)) & 1u)); |
| 450 | } |
| 451 | } |
| 452 | #endif /*LODEPNG_COMPILE_ENCODER*/ |
| 453 | |
| 454 | #ifdef LODEPNG_COMPILE_DECODER |
no outgoing calls
no test coverage detected