Revision 905ef0d0 libavcodec/vp56.h

View differences:

libavcodec/vp56.h
181 181
 * vp56 specific range coder implementation
182 182
 */
183 183

  
184
static inline void vp56_init_range_decoder(VP56RangeCoder *c,
185
                                           const uint8_t *buf, int buf_size)
186
{
187
    c->high = 255;
188
    c->bits = -8;
189
    c->buffer = buf;
190
    c->end = buf + buf_size;
191
    c->code_word = bytestream_get_be16(&c->buffer);
192
}
184
extern const uint8_t ff_vp56_norm_shift[256];
185
void ff_vp56_init_range_decoder(VP56RangeCoder *c, const uint8_t *buf, int buf_size);
193 186

  
194 187
static av_always_inline unsigned int vp56_rac_renorm(VP56RangeCoder *c)
195 188
{
196
    int shift = ff_h264_norm_shift[c->high] - 1;
189
    int shift = ff_vp56_norm_shift[c->high];
197 190
    int bits = c->bits;
198 191
    unsigned int code_word = c->code_word;
199 192

  

Also available in: Unified diff