| 429 | } |
| 430 | |
| 431 | static unsigned readBitsFromStream(size_t* bitpointer, const unsigned char* bitstream, size_t nbits) |
| 432 | { |
| 433 | unsigned result = 0, i; |
| 434 | for(i = 0; i < nbits; i++) |
| 435 | { |
| 436 | result += ((unsigned)READBIT(*bitpointer, bitstream)) << i; |
| 437 | (*bitpointer)++; |
| 438 | } |
| 439 | return result; |
| 440 | } |
| 441 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 442 | |
| 443 | /* ////////////////////////////////////////////////////////////////////////// */ |
no outgoing calls
no test coverage detected