[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.133,1.134

Michael Niedermayer CVS syncmail at mplayerhq.hu
Sun Sep 26 14:54:02 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv23519

Modified Files:
	vd_ffmpeg.c 
Log Message:
low resolution decoding


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -r1.133 -r1.134
--- vd_ffmpeg.c	13 Sep 2004 21:21:48 -0000	1.133
+++ vd_ffmpeg.c	26 Sep 2004 12:54:00 -0000	1.134
@@ -104,6 +104,7 @@
 static int lavc_param_skip_top=0;
 static int lavc_param_skip_bottom=0;
 static int lavc_param_fast=0;
+static int lavc_param_lowres=0;
 
 m_option_t lavc_decode_opts_conf[]={
 	{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL},
@@ -119,6 +120,7 @@
 #ifdef CODEC_FLAG2_FAST
         {"fast", &lavc_param_fast, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG2_FAST, NULL},
 #endif
+	{"lowres", &lavc_param_lowres, CONF_TYPE_INT, CONF_RANGE, 0, 16, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 
@@ -256,6 +258,9 @@
     avctx->skip_top   = lavc_param_skip_top;
     avctx->skip_bottom= lavc_param_skip_bottom;
 #endif    
+#if LIBAVCODEC_BUILD >= 4722
+    avctx->lowres= lavc_param_lowres;
+#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




More information about the MPlayer-cvslog mailing list