| 59 | } |
| 60 | |
| 61 | I32 RangeEncoder::init(ByteStreamOut* outstream) |
| 62 | { |
| 63 | assert(outstream); |
| 64 | this->outstream = outstream; |
| 65 | |
| 66 | low = 0; /* Full code range */ |
| 67 | range = TOP_VALUE; |
| 68 | /* this buffer is written as first byte in the datastream (header,...) */ |
| 69 | buffer = HEADERBYTE; |
| 70 | help = 0; /* No bytes to follow */ |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | /* Finish encoding */ |
| 75 | /* actually not that many bytes need to be output, but who */ |