[Mplayer-cvslog] CVS: main/libmpcodecs ve_x264.c,1.6,1.7

Ivan Kalvachev CVS syncmail at mplayerhq.hu
Fri Oct 8 14:38:41 CEST 2004


CVS change done by Ivan Kalvachev CVS

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

Modified Files:
	ve_x264.c 
Log Message:
Adds a parameter 'scenecut', to control the threshold for inserting extra I-frames.
patch by  Loren Merritt


Index: ve_x264.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_x264.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ve_x264.c	27 Sep 2004 21:04:42 -0000	1.6
+++ ve_x264.c	8 Oct 2004 12:38:39 -0000	1.7
@@ -63,6 +63,7 @@
 static int frame_ref = 1;
 static int iframe = 250;
 static int idrframe = 2;
+static int scenecut_threshold = 40;
 static int bframe = 0;
 static int deblock = 1;
 static int deblockalpha = 0;
@@ -92,6 +93,7 @@
     {"frameref", &frame_ref, CONF_TYPE_INT, CONF_RANGE, 1, 15, NULL},
     {"keyint", &iframe, CONF_TYPE_INT, CONF_RANGE, 1, 24000000, NULL},
     {"idrint", &idrframe, CONF_TYPE_INT, CONF_RANGE, 1, 24000000, NULL},
+    {"scenecut", &scenecut_threshold, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL},
     {"bframes", &bframe, CONF_TYPE_INT, CONF_RANGE, 0, 16, NULL},
     {"deblock", &deblock, CONF_TYPE_FLAG, 0, 0, 1, NULL},
     {"nodeblock", &deblock, CONF_TYPE_FLAG, 0, 1, 0, NULL},
@@ -132,6 +134,7 @@
     mod->param.i_frame_reference = frame_ref;
     mod->param.i_idrframe = idrframe;
     mod->param.i_iframe = iframe;
+    mod->param.i_scenecut_threshold = scenecut_threshold;
     mod->param.i_bframe = bframe;
     mod->param.b_deblocking_filter = deblock;
     mod->param.i_deblocking_filter_alphac0 = deblockalpha;




More information about the MPlayer-cvslog mailing list