Mercurial > libavcodec.hg
comparison mpegvideo.h @ 1164:0e3c0c4a7b3d libavcodec
msmpeg4 2pass support & some related cleanup
author | michaelni |
---|---|
date | Wed, 02 Apr 2003 09:57:34 +0000 |
parents | 8c15d82c1893 |
children | 5af9aeadbdc3 |
comparison
equal
deleted
inserted
replaced
1163:0951691c4225 | 1164:0e3c0c4a7b3d |
---|---|
660 s->block_index[3]+=2; | 660 s->block_index[3]+=2; |
661 s->block_index[4]++; | 661 s->block_index[4]++; |
662 s->block_index[5]++; | 662 s->block_index[5]++; |
663 } | 663 } |
664 | 664 |
665 static inline int get_bits_diff(MpegEncContext *s){ | |
666 const int bits= get_bit_count(&s->pb); | |
667 const int last= s->last_bits; | |
668 | |
669 s->last_bits = bits; | |
670 | |
671 return bits - last; | |
672 } | |
665 | 673 |
666 /* motion_est.c */ | 674 /* motion_est.c */ |
667 void ff_estimate_p_frame_motion(MpegEncContext * s, | 675 void ff_estimate_p_frame_motion(MpegEncContext * s, |
668 int mb_x, int mb_y); | 676 int mb_x, int mb_y); |
669 void ff_estimate_b_frame_motion(MpegEncContext * s, | 677 void ff_estimate_b_frame_motion(MpegEncContext * s, |