[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.57,1.58

Michael Niedermayer CVS michael at mplayerhq.hu
Sat Mar 22 13:47:16 CET 2003


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

Modified Files:
	ve_lavc.c 
Log Message:
lavc 4663 / quantizer bias


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- ve_lavc.c	12 Mar 2003 15:44:24 -0000	1.57
+++ ve_lavc.c	22 Mar 2003 12:46:22 -0000	1.58
@@ -120,6 +120,10 @@
 static int lavc_param_pre_me= 1;
 static int lavc_param_me_subpel_quality= 8;
 static int lavc_param_me_range= 0;
+#if LIBAVCODEC_BUILD >= 4663
+static int lavc_param_ibias= FF_DEFAULT_QUANT_BIAS;
+static int lavc_param_pbias= FF_DEFAULT_QUANT_BIAS;
+#endif
 
 #include "cfgparser.h"
 
@@ -201,6 +205,10 @@
 	{"aic", &lavc_param_aic, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIC, NULL},
 	{"umv", &lavc_param_umv, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_UMV, NULL},
 #endif
+#if LIBAVCODEC_BUILD >= 4663
+	{"ibias", &lavc_param_ibias, CONF_TYPE_INT, CONF_RANGE, -512, 512, NULL},
+	{"pbias", &lavc_param_pbias, CONF_TYPE_INT, CONF_RANGE, -512, 512, NULL},
+#endif
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -295,6 +303,10 @@
 #if LIBAVCODEC_BUILD >= 4659
     lavc_venc_context->me_range= lavc_param_me_range;
 #endif
+#if LIBAVCODEC_BUILD >= 4663
+    lavc_venc_context->intra_quant_bias= lavc_param_ibias;
+    lavc_venc_context->inter_quant_bias= lavc_param_pbias;
+#endif
 
     p= lavc_param_rc_override_string;
     for(i=0; p; i++){
@@ -556,7 +568,6 @@
 #if LIBAVCODEC_BUILD >= 4643
     if(lavc_param_psnr){
         double f= lavc_venc_context->width*lavc_venc_context->height*255.0*255.0;
-        
         f*= lavc_venc_context->coded_frame->coded_picture_number;
         
         printf("PSNR: Y:%2.2f, Cb:%2.2f, Cr:%2.2f, All:%2.2f\n",



More information about the MPlayer-cvslog mailing list