diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-07-24 20:43:41 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-07-24 20:43:41 +0000 |
commit | 3bb4e23a8aa15fc93b91b92d8c6437358fd71113 (patch) | |
tree | 88d1c70067e443197f377cf563fb459990bae3db /libavcodec/mpegvideo.h | |
parent | fb16b7e7b33ec84765d9bb9b36e0859a7b2c0b05 (diff) | |
download | ffmpeg-3bb4e23a8aa15fc93b91b92d8c6437358fd71113.tar.gz |
added skip macroblock optimization (big perf win on black regions for example)
Originally committed as revision 13 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index b04d7b7693..a097b01b00 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -44,6 +44,7 @@ typedef struct MpegEncContext { int h263_msmpeg4; /* generate MSMPEG4 compatible stream */ int h263_intel; /* use I263 intel h263 header */ int fixed_qscale; /* fixed qscale if non zero */ + int encoding; /* true if we are encoding (vs decoding) */ /* the following fields are managed internally by the encoder */ /* bit output */ @@ -70,6 +71,9 @@ typedef struct MpegEncContext { UINT8 *coded_block; /* used for coded block pattern prediction */ INT16 (*ac_val[3])[16]; /* used for for mpeg4 AC prediction */ int ac_pred; + int mb_skiped; /* MUST BE SET only during DECODING */ + UINT8 *mbskip_table; /* used to avoid copy if macroblock + skipped (for black regions for example) */ int qscale; int pict_type; |