| 275 | } |
| 276 | |
| 277 | U8 ArithmeticDecoder::readByte() |
| 278 | { |
| 279 | U32 sym = value / (length >>= 8); // decode symbol, change length |
| 280 | value -= length * sym; // update interval |
| 281 | |
| 282 | if (length < AC__MinLength) renorm_dec_interval(); // renormalization |
| 283 | |
| 284 | if (sym >= (1u<<8)) |
| 285 | { |
| 286 | throw 4711; |
| 287 | } |
| 288 | |
| 289 | return (U8)sym; |
| 290 | } |
| 291 | |
| 292 | U16 ArithmeticDecoder::readShort() |
| 293 | { |
nothing calls this directly
no outgoing calls
no test coverage detected