comparison ffv1.c @ 1786:b7340afa261a libavcodec

get_bit_count -> put_bits_count
author alex
date Fri, 06 Feb 2004 15:27:31 +0000
parents 2fb583cb0013
children e20fd60b215c
comparison
equal deleted inserted replaced
1785:14d918d0ef42 1786:b7340afa261a
407 }else{ 407 }else{
408 run_count++; 408 run_count++;
409 } 409 }
410 } 410 }
411 411
412 // printf("count:%d index:%d, mode:%d, x:%d y:%d pos:%d\n", run_count, run_index, run_mode, x, y, (int)get_bit_count(&s->pb)); 412 // printf("count:%d index:%d, mode:%d, x:%d y:%d pos:%d\n", run_count, run_index, run_mode, x, y, (int)put_bits_count(&s->pb));
413 413
414 if(run_mode == 0) 414 if(run_mode == 0)
415 put_vlc_symbol(&s->pb, &p->vlc_state[context], diff, bits); 415 put_vlc_symbol(&s->pb, &p->vlc_state[context], diff, bits);
416 } 416 }
417 } 417 }
687 687
688 if(f->ac){ 688 if(f->ac){
689 return put_cabac_terminate(c, 1); 689 return put_cabac_terminate(c, 1);
690 }else{ 690 }else{
691 flush_put_bits(&f->pb); //nicer padding FIXME 691 flush_put_bits(&f->pb); //nicer padding FIXME
692 return used_count + (get_bit_count(&f->pb)+7)/8; 692 return used_count + (put_bits_count(&f->pb)+7)/8;
693 } 693 }
694 } 694 }
695 695
696 static void common_end(FFV1Context *s){ 696 static void common_end(FFV1Context *s){
697 int i; 697 int i;