| 338 | } |
| 339 | |
| 340 | inline void ArithmeticEncoder::renorm_enc_interval() |
| 341 | { |
| 342 | do { // output and discard top byte |
| 343 | assert(outbuffer <= outbyte); |
| 344 | assert(outbyte < endbuffer); |
| 345 | assert(outbyte < endbyte); |
| 346 | *outbyte++ = (U8)(base >> 24); |
| 347 | if (outbyte == endbyte) manage_outbuffer(); |
| 348 | base <<= 8; |
| 349 | } while ((length <<= 8) < AC__MinLength); // length multiplied by 256 |
| 350 | } |
| 351 | |
| 352 | inline void ArithmeticEncoder::manage_outbuffer() |
| 353 | { |
nothing calls this directly
no outgoing calls
no test coverage detected