[MPlayer-cvslog] CVS: main/libmpcodecs ve_xvid4.c,1.24,1.25
Guillaume Poirier CVS
syncmail at mplayerhq.hu
Wed Mar 1 10:18:59 CET 2006
CVS change done by Guillaume Poirier CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv20457/libmpcodecs
Modified Files:
ve_xvid4.c
Log Message:
XviD multi-threaded encoding support
Index: ve_xvid4.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_xvid4.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- ve_xvid4.c 21 Feb 2006 09:39:21 -0000 1.24
+++ ve_xvid4.c 1 Mar 2006 09:18:56 -0000 1.25
@@ -258,6 +258,7 @@
static int xvidenc_psnr = 0;
static int xvidenc_max_bframes = 2;
+static int xvidenc_num_threads = 0;
static int xvidenc_bquant_ratio = 150;
static int xvidenc_bquant_offset = 100;
static int xvidenc_bframe_threshold = 0;
@@ -310,6 +311,7 @@
{"vhq", &xvidenc_vhq, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL},
{"bvhq", &xvidenc_bvhq, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
{"max_bframes", &xvidenc_max_bframes, CONF_TYPE_INT, CONF_RANGE, 0, 20, NULL},
+ {"threads", &xvidenc_num_threads, CONF_TYPE_INT, 0, 0, 0, NULL},
{"bquant_ratio", &xvidenc_bquant_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 200, NULL},
{"bquant_offset", &xvidenc_bquant_offset, CONF_TYPE_INT, CONF_RANGE, 0, 200, NULL},
{"bf_threshold", &xvidenc_bframe_threshold, CONF_TYPE_INT, CONF_RANGE, -255, 255, NULL},
@@ -779,7 +781,7 @@
create->zones = NULL;
create->num_plugins = 0;
create->plugins = NULL;
- create->num_threads = 0;
+ create->num_threads = xvidenc_num_threads;
if( (selected_profile->flags & PROFILE_BVOP) &&
/* dxn: prevent bframes usage if interlacing is selected */
More information about the MPlayer-cvslog
mailing list