| 273 | } |
| 274 | |
| 275 | void ArithmeticEncoder::writeByte(U8 sym) |
| 276 | { |
| 277 | U32 init_base = base; |
| 278 | base += (U32)(sym) * (length >>= 8); // new interval base and length |
| 279 | |
| 280 | if (init_base > base) propagate_carry(); // overflow = carry |
| 281 | if (length < AC__MinLength) renorm_enc_interval(); // renormalization |
| 282 | } |
| 283 | |
| 284 | void ArithmeticEncoder::writeShort(U16 sym) |
| 285 | { |
nothing calls this directly
no outgoing calls
no test coverage detected