[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.90,1.91

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Feb 2 15:19:57 CET 2004


CVS change done by Michael Niedermayer CVS

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

Modified Files:
	ve_lavc.c 
Log Message:
quantizer noise shaping


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- ve_lavc.c	5 Jan 2004 23:44:51 -0000	1.90
+++ ve_lavc.c	2 Feb 2004 14:19:55 -0000	1.91
@@ -140,6 +140,7 @@
 static int lavc_param_cbp= 0;
 static int lavc_param_mv0= 0;
 static int lavc_param_noise_reduction= 0;
+static int lavc_param_qns= 0;
 static int lavc_param_qp_rd= 0;
 static int lavc_param_inter_threshold= 0;
 static int lavc_param_sc_threshold= 0;
@@ -286,6 +287,7 @@
 	{"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},
+        {"qns", &lavc_param_qns, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -402,6 +404,9 @@
 #if LIBAVCODEC_BUILD >= 4690
     lavc_venc_context->noise_reduction= lavc_param_noise_reduction;
 #endif
+#if LIBAVCODEC_BUILD >= 4700
+    lavc_venc_context->quantizer_noise_shaping= lavc_param_qns;
+#endif
 #if LIBAVCODEC_BUILD >= 4693
     lavc_venc_context->inter_threshold= lavc_param_inter_threshold;
 #endif




More information about the MPlayer-cvslog mailing list