diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-02 09:57:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-02 09:57:34 +0000 |
commit | 4d2a48349d6f40a2357bb25b4f360f2a6e669ad4 (patch) | |
tree | 7ff32c6ab3f7e58dd201f2a05093f404cd35908c /libavcodec/mpegvideo.h | |
parent | 1f9aea9b91c653c6ad95e84b2ff250738e352eec (diff) | |
download | ffmpeg-4d2a48349d6f40a2357bb25b4f360f2a6e669ad4.tar.gz |
msmpeg4 2pass support & some related cleanup
Originally committed as revision 1724 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 050d991664..dbbc1bb0a7 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -662,6 +662,14 @@ static inline void ff_update_block_index(MpegEncContext *s){ s->block_index[5]++; } +static inline int get_bits_diff(MpegEncContext *s){ + const int bits= get_bit_count(&s->pb); + const int last= s->last_bits; + + s->last_bits = bits; + + return bits - last; +} /* motion_est.c */ void ff_estimate_p_frame_motion(MpegEncContext * s, |