| 108 | } |
| 109 | |
| 110 | BOOL ArithmeticDecoder::init(ByteStreamIn* instream, BOOL really_init) |
| 111 | { |
| 112 | if (instream == 0) return FALSE; |
| 113 | this->instream = instream; |
| 114 | length = AC__MaxLength; |
| 115 | if (really_init) |
| 116 | { |
| 117 | value = (instream->getByte() << 24); |
| 118 | value |= (instream->getByte() << 16); |
| 119 | value |= (instream->getByte() << 8); |
| 120 | value |= (instream->getByte()); |
| 121 | } |
| 122 | return TRUE; |
| 123 | } |
| 124 | |
| 125 | void ArithmeticDecoder::done() |
| 126 | { |
no test coverage detected