| 282 | } |
| 283 | |
| 284 | void ArithmeticEncoder::writeShort(U16 sym) |
| 285 | { |
| 286 | U32 init_base = base; |
| 287 | base += (U32)(sym) * (length >>= 16); // new interval base and length |
| 288 | |
| 289 | if (init_base > base) propagate_carry(); // overflow = carry |
| 290 | if (length < AC__MinLength) renorm_enc_interval(); // renormalization |
| 291 | } |
| 292 | |
| 293 | void ArithmeticEncoder::writeInt(U32 sym) |
| 294 | { |
nothing calls this directly
no outgoing calls
no test coverage detected