| 452 | } |
| 453 | |
| 454 | static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) |
| 455 | { |
| 456 | unsigned result = 0, i; |
| 457 | for(i = 0; i != nbits; ++i) |
| 458 | { |
| 459 | result += ((unsigned)READBIT(*bitpointer, bitstream)) << i; |
| 460 | ++(*bitpointer); |
| 461 | } |
| 462 | return result; |
| 463 | } |
| 464 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 465 | |
| 466 | /* ////////////////////////////////////////////////////////////////////////// */ |
no outgoing calls
no test coverage detected