| 290 | } |
| 291 | |
| 292 | U16 ArithmeticDecoder::readShort() |
| 293 | { |
| 294 | U32 sym = value / (length >>= 16); // decode symbol, change length |
| 295 | value -= length * sym; // update interval |
| 296 | |
| 297 | if (length < AC__MinLength) renorm_dec_interval(); // renormalization |
| 298 | |
| 299 | if (sym >= (1u<<16)) |
| 300 | { |
| 301 | throw 4711; |
| 302 | } |
| 303 | |
| 304 | return (U16)sym; |
| 305 | } |
| 306 | |
| 307 | U32 ArithmeticDecoder::readInt() |
| 308 | { |
nothing calls this directly
no outgoing calls
no test coverage detected