[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.8,1.9

Atmosfear atmos4 at mplayerhq.hu
Wed Apr 17 15:30:08 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv8492/libmpcodecs

Modified Files:
	ve_lavc.c 
Log Message:
Preliminary support for lavcs b-frame encoding, disabled by default.
FOR TESTING ONLY! (lavc b-frame support not yet finished)


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ve_lavc.c	16 Apr 2002 00:36:41 -0000	1.8
+++ ve_lavc.c	17 Apr 2002 13:30:05 -0000	1.9
@@ -48,6 +48,7 @@
 static int lavc_param_vqdiff = 3;
 static float lavc_param_vqcompress = 0.5;
 static float lavc_param_vqblur = 0.5;
+static int lavc_param_vmax_b_frames = 0;
 static int lavc_param_keyint = -1;
 
 #include "cfgparser.h"
@@ -66,6 +67,7 @@
 	{"vqdiff", &lavc_param_vqdiff, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL},
 	{"vqcomp", &lavc_param_vqcompress, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL},
 	{"vqblur", &lavc_param_vqblur, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL},
+	{"vmax_b_frames", &lavc_param_vmax_b_frames, CONF_TYPE_INT, CONF_RANGE, 0, FF_MAX_B_FRAMES, NULL},
 	{"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
@@ -107,6 +109,7 @@
     lavc_venc_context.max_qdiff= lavc_param_vqdiff;
     lavc_venc_context.qcompress= lavc_param_vqcompress;
     lavc_venc_context.qblur= lavc_param_vqblur;
+    lavc_venc_context.max_b_frames= lavc_param_vmax_b_frames;
     /* keyframe interval */
     if (lavc_param_keyint >= 0) /* != -1 */
 	lavc_venc_context.gop_size = lavc_param_keyint;




More information about the MPlayer-cvslog mailing list