| 39 | |
| 40 | |
| 41 | void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size){ |
| 42 | c->bytestream_start= |
| 43 | c->bytestream= buf; |
| 44 | c->bytestream_end= buf + buf_size; |
| 45 | |
| 46 | c->low= 0; |
| 47 | c->range= 0xFF00; |
| 48 | c->outstanding_count= 0; |
| 49 | c->outstanding_byte= -1; |
| 50 | } |
| 51 | |
| 52 | void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size){ |
| 53 | /* cast to avoid compiler warning */ |
no outgoing calls
no test coverage detected