[Mplayer-cvslog] CVS: main cfg-mencoder.h, 1.74, 1.75 mencoder.c, 1.230, 1.231

Ivan Kalvachev CVS iive at mplayerhq.hu
Fri Jan 23 02:13:02 CET 2004


Update of /cvsroot/mplayer/main
In directory mail:/tmp/cvs-serv31751

Modified Files:
	cfg-mencoder.h mencoder.c 
Log Message:
add lame filter options

Index: cfg-mencoder.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mencoder.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- cfg-mencoder.h	8 Dec 2003 12:43:48 -0000	1.74
+++ cfg-mencoder.h	23 Jan 2004 01:13:00 -0000	1.75
@@ -32,6 +32,8 @@
 	{"br", &lame_param_br, CONF_TYPE_INT, CONF_RANGE, 0, 1024, NULL},
 	{"ratio", &lame_param_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
 	{"vol", &lame_param_scale, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10, NULL},
+	{"lowpassfreq",&lame_param_lowpassfreq, CONF_TYPE_INT, CONF_RANGE, -1, 48000,0},
+	{"highpassfreq",&lame_param_highpassfreq, CONF_TYPE_INT, CONF_RANGE, -1, 48000,0},
 #if HAVE_MP3LAME >= 392
 	{"fast", &lame_param_fast, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 	{"preset", &lame_param_preset, CONF_TYPE_STRING, 0, 0, 0, NULL},

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.230
retrieving revision 1.231
diff -u -r1.230 -r1.231
--- mencoder.c	12 Jan 2004 03:47:49 -0000	1.230
+++ mencoder.c	23 Jan 2004 01:13:00 -0000	1.231
@@ -216,6 +216,9 @@
 int lame_param_br=-1; // unset
 int lame_param_ratio=-1; // unset
 float lame_param_scale=-1; // unset
+int lame_param_lowpassfreq = 0; //auto
+int lame_param_highpassfreq = 0; //auto
+
 #if HAVE_MP3LAME >= 392
 int lame_param_fast=0; // unset
 static char* lame_param_preset=NULL; // unset
@@ -996,6 +999,8 @@
     printf("Setting audio input gain to %f\n", lame_param_scale);
     lame_set_scale(lame,lame_param_scale);
 }
+if(lame_param_lowpassfreq>=-1) lame_set_lowpassfreq(lame,lame_param_lowpassfreq);
+if(lame_param_highpassfreq>=-1) lame_set_highpassfreq(lame,lame_param_highpassfreq);
 #if HAVE_MP3LAME >= 392
 if(lame_param_preset != NULL){
   printf ("\npreset=%s\n\n",lame_param_preset);




More information about the MPlayer-cvslog mailing list