| 446 | } |
| 447 | |
| 448 | static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) |
| 449 | { |
| 450 | unsigned result = 0, i; |
| 451 | for(i = 0; i < nbits; i++) |
| 452 | { |
| 453 | result += ((unsigned)READBIT(*bitpointer, bitstream)) << i; |
| 454 | (*bitpointer)++; |
| 455 | } |
| 456 | return result; |
| 457 | } |
| 458 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 459 | |
| 460 | /* ////////////////////////////////////////////////////////////////////////// */ |
no outgoing calls
no test coverage detected