diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-26 02:23:51 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-26 02:23:51 +0000 |
commit | 459dbfa6651496ebf9a20f0be7edcef2b2db32e3 (patch) | |
tree | fd9462dbf3880871f1b8b5cecd630baf4f29f7f5 | |
parent | 00b3639e2a1e9dbbefdd41220417225d56da1e4a (diff) | |
download | mpv-459dbfa6651496ebf9a20f0be7edcef2b2db32e3.tar.bz2 mpv-459dbfa6651496ebf9a20f0be7edcef2b2db32e3.tar.xz |
top/bottom mb row skipping
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12671 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 5cd3a9a6ef..19274d7ad7 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -101,6 +101,8 @@ static int lavc_param_vstats=0; static int lavc_param_idct_algo=0; static int lavc_param_debug=0; static int lavc_param_vismv=0; +static int lavc_param_skip_top=0; +static int lavc_param_skip_bottom=0; m_option_t lavc_decode_opts_conf[]={ {"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL}, @@ -111,6 +113,8 @@ m_option_t lavc_decode_opts_conf[]={ {"vstats", &lavc_param_vstats, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"debug", &lavc_param_debug, CONF_TYPE_INT, CONF_RANGE, 0, 9999999, NULL}, {"vismv", &lavc_param_vismv, CONF_TYPE_INT, CONF_RANGE, 0, 9999999, NULL}, + {"st", &lavc_param_skip_top, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL}, + {"sb", &lavc_param_skip_bottom, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; @@ -241,6 +245,10 @@ static int init(sh_video_t *sh){ #if LIBAVCODEC_BUILD >= 4698 avctx->debug_mv= lavc_param_vismv; #endif +#if LIBAVCODEC_BUILD >= 4717 + avctx->skip_top = lavc_param_skip_top; + avctx->skip_bottom= lavc_param_skip_bottom; +#endif mp_dbg(MSGT_DECVIDEO,MSGL_DBG2,"libavcodec.size: %d x %d\n",avctx->width,avctx->height); /* AVRn stores huffman table in AVI header */ /* Pegasus MJPEG stores it also in AVI header, but it uses the common |