summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-03-12 22:54:25 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-03-12 22:54:25 +0000
commit6f91bcd151001b5aca0d27ae154fd60c384ff167 (patch)
treeb7a213d3d501006e0e6cc14a2605bb74336d8d27 /libavcodec/mpegvideo.h
parente2263827d5272576e8f2893254e054476b01ee19 (diff)
mpeg4 b-frames :)
create slightly more correct headers & add "ffmpeg" user-data section Originally committed as revision 328 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 01e4778652..260b31f4bb 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -84,19 +84,21 @@ typedef struct MpegEncContext {
int qscale;
int pict_type;
+ int last_non_b_pict_type; /* used for mpeg4 gmc b-frames */
int frame_rate_index;
/* motion compensation */
int unrestricted_mv;
int h263_long_vectors; /* use horrible h263v1 long vector mode */
int f_code; /* resolution */
- int b_code; /* resolution for B Frames*/
- INT16 *mv_table[2]; /* MV table */
- INT16 (*motion_val)[2]; /* used for MV prediction */
+ int b_code; /* backward resolution for B Frames (mpeg4) */
+ INT16 *mv_table[2]; /* MV table (1MV per MB)*/
+ INT16 (*motion_val)[2]; /* used for MV prediction (4MV per MB)*/
int full_search;
int mv_dir;
#define MV_DIR_BACKWARD 1
#define MV_DIR_FORWARD 2
+#define MV_DIRECT 4 // bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4)
int mv_type;
#define MV_TYPE_16X16 0 /* 1 vector for the whole mb */
#define MV_TYPE_8X8 1 /* 4 vectors (h263) */
@@ -156,7 +158,12 @@ typedef struct MpegEncContext {
int h263_aic_dir; /* AIC direction: 0 = left, 1 = top */
/* mpeg4 specific */
+ int time_increment_resolution;
int time_increment_bits;
+ int time_increment;
+ int time_base;
+ int time;
+ int last_non_b_time[2];
int shape;
int vol_sprite_usage;
int sprite_width;