Mercurial > libavcodec.hg
comparison h264.c @ 3993:8b7c59b7af01 libavcodec
make state transition tables global as they are constant and the code is slightly faster that way
author | michael |
---|---|
date | Wed, 11 Oct 2006 14:44:17 +0000 |
parents | 72bae00a317f |
children | eeab02251056 |
comparison
equal
deleted
inserted
replaced
3992:a09b5b667229 | 3993:8b7c59b7af01 |
---|---|
7386 | 7386 |
7387 /* realign */ | 7387 /* realign */ |
7388 align_get_bits( &s->gb ); | 7388 align_get_bits( &s->gb ); |
7389 | 7389 |
7390 /* init cabac */ | 7390 /* init cabac */ |
7391 ff_init_cabac_states( &h->cabac, ff_h264_mps_state, ff_h264_lps_state, 64 ); | 7391 ff_init_cabac_states( &h->cabac); |
7392 ff_init_cabac_decoder( &h->cabac, | 7392 ff_init_cabac_decoder( &h->cabac, |
7393 s->gb.buffer + get_bits_count(&s->gb)/8, | 7393 s->gb.buffer + get_bits_count(&s->gb)/8, |
7394 ( s->gb.size_in_bits - get_bits_count(&s->gb) + 7)/8); | 7394 ( s->gb.size_in_bits - get_bits_count(&s->gb) + 7)/8); |
7395 /* calculate pre-state */ | 7395 /* calculate pre-state */ |
7396 for( i= 0; i < 460; i++ ) { | 7396 for( i= 0; i < 460; i++ ) { |