[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.95,1.96
Michael Niedermayer CVS
syncmail at mplayerhq.hu
Tue Jul 6 13:15:09 CEST 2004
CVS change done by Michael Niedermayer CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv13287
Modified Files:
ve_lavc.c
Log Message:
dc precision and closed gop patch by (Nico Sabbi <nsabbi at tiscali dot it>)
Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- ve_lavc.c 6 Jul 2004 02:10:22 -0000 1.95
+++ ve_lavc.c 6 Jul 2004 11:15:06 -0000 1.96
@@ -150,6 +150,8 @@
static int lavc_param_alt= 0;
static int lavc_param_ilme= 0;
static int lavc_param_nssew= 8;
+static int lavc_param_closed_gop = 0;
+static int lavc_param_dc_precision = 8;
static int lavc_param_threads= 1;
@@ -288,6 +290,12 @@
#ifdef CODEC_FLAG_INTERLACED_ME
{"ilme", &lavc_param_ilme, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME, NULL},
#endif
+#ifdef CODEC_FLAG_CLOSED_GOP
+ {"cgop", &lavc_param_closed_gop, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CLOSED_GOP, NULL},
+#endif
+#if LIBAVCODEC_BUILD >= 4711
+ {"dc", &lavc_param_dc_precision, CONF_TYPE_INT, CONF_RANGE, 8, 10, NULL},
+#endif
{"inter_threshold", &lavc_param_inter_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL},
{"sc_threshold", &lavc_param_sc_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL},
{"top", &lavc_param_top, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
@@ -585,6 +593,9 @@
lavc_venc_context->flags|= lavc_param_ss;
lavc_venc_context->flags|= lavc_param_alt;
lavc_venc_context->flags|= lavc_param_ilme;
+#ifdef CODEC_FLAG_CLOSED_GOP
+ lavc_venc_context->flags|= lavc_param_closed_gop;
+#endif
if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY;
if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;
@@ -592,6 +603,9 @@
#if LIBAVCODEC_BUILD >= 4643
lavc_venc_context->flags|= lavc_param_psnr;
#endif
+#if LIBAVCODEC_BUILD >= 4711
+ lavc_venc_context->intra_dc_precision = lavc_param_dc_precision - 8;
+#endif
lavc_venc_context->prediction_method= lavc_param_prediction_method;
switch(lavc_param_format)
{
More information about the MPlayer-cvslog
mailing list