Mercurial > libavcodec.hg
comparison cabac.c @ 1300:e18667d1e94d libavcodec
FFV1 codec (our very simple lossless intra only codec, compresses much better then huffyuv)
author | michaelni |
---|---|
date | Mon, 09 Jun 2003 02:24:51 +0000 |
parents | 5bc3184810dc |
children | 79dddc5cd990 |
comparison
equal
deleted
inserted
replaced
1299:9c3bfa79631f | 1300:e18667d1e94d |
---|---|
89 /** | 89 /** |
90 * | 90 * |
91 * @param buf_size size of buf in bits | 91 * @param buf_size size of buf in bits |
92 */ | 92 */ |
93 void ff_init_cabac_decoder(CABACContext *c, uint8_t *buf, int buf_size){ | 93 void ff_init_cabac_decoder(CABACContext *c, uint8_t *buf, int buf_size){ |
94 c->bytestream_start= | |
94 c->bytestream= buf; | 95 c->bytestream= buf; |
95 | 96 |
96 c->low= *c->bytestream++; | 97 c->low= *c->bytestream++; |
97 c->low= (c->low<<9) + ((*c->bytestream++)<<1); | 98 c->low= (c->low<<9) + ((*c->bytestream++)<<1); |
98 c->range= 0x1FE00; | 99 c->range= 0x1FE00; |