summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-02-10 06:10:50 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-02-10 06:10:50 +0000
commite03c341ef3d755c9779b39fe0851c58343c12906 (patch)
tree6d77b4e08554ec82eff0f4dd7c2595843e3268e2 /libavcodec/mpegvideo.h
parent37fbfd0a91fddc5e4fc1e94f74c0470adee8011d (diff)
- More work on preliminary bit rate control, just to be able to get an
average variance for picture's MBs so we can adjust qscale on the MB layer. Originally committed as revision 294 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 0eec0b73d8..626bf8fd7e 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -58,8 +58,9 @@ typedef struct MpegEncContext {
int context_initialized;
int picture_number;
int fake_picture_number; /* picture number at the bitstream frame rate */
- int gop_picture_number; /* index of the first picture of a GOP */
+ int gop_picture_number; /* index of the first picture of a GOP */
int mb_width, mb_height;
+ int mb_num; /* number of MBs of a picture */
int linesize; /* line size, in bytes, may be different from width */
UINT8 *new_picture[3]; /* picture to be compressed */
UINT8 *last_picture[3]; /* previous picture */
@@ -136,6 +137,7 @@ typedef struct MpegEncContext {
/* bit rate control */
int I_frame_bits; /* wanted number of bits per I frame */
int P_frame_bits; /* same for P frame */
+ int avg_mb_var; /* average MB variance for current frame */
INT64 wanted_bits;
INT64 total_bits;