| 40 | #include "rangecoder.h" |
| 41 | |
| 42 | av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size) |
| 43 | { |
| 44 | c->bytestream_start = |
| 45 | c->bytestream = buf; |
| 46 | c->bytestream_end = buf + buf_size; |
| 47 | c->low = 0; |
| 48 | c->range = 0xFF00; |
| 49 | c->outstanding_count = 0; |
| 50 | c->outstanding_byte = -1; |
| 51 | } |
| 52 | |
| 53 | av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, |
| 54 | int buf_size) |
no outgoing calls